/usr/lib64/python3.9/__pycache__
NameSizeModeActions
abc.cpython-39.opt-1.pyc57750644editdlrm
abc.cpython-39.opt-2.pyc32160644editdlrm
abc.cpython-39.pyc57750644editdlrm
aifc.cpython-39.opt-1.pyc252660644editdlrm
aifc.cpython-39.opt-2.pyc200590644editdlrm
aifc.cpython-39.pyc252660644editdlrm
antigravity.cpython-39.opt-1.pyc8190644editdlrm
antigravity.cpython-39.opt-2.pyc6750644editdlrm
antigravity.cpython-39.pyc8190644editdlrm
argparse.cpython-39.opt-1.pyc635430644editdlrm
argparse.cpython-39.opt-2.pyc541790644editdlrm
argparse.cpython-39.pyc636540644editdlrm
ast.cpython-39.opt-1.pyc523320644editdlrm
ast.cpython-39.opt-2.pyc437870644editdlrm
ast.cpython-39.pyc523830644editdlrm
asynchat.cpython-39.opt-1.pyc68220644editdlrm
asynchat.cpython-39.opt-2.pyc54470644editdlrm
asynchat.cpython-39.pyc68220644editdlrm
asyncore.cpython-39.opt-1.pyc160360644editdlrm
asyncore.cpython-39.opt-2.pyc148320644editdlrm
asyncore.cpython-39.pyc160360644editdlrm
base64.cpython-39.opt-1.pyc163230644editdlrm
base64.cpython-39.opt-2.pyc108030644editdlrm
base64.cpython-39.pyc164550644editdlrm
bdb.cpython-39.opt-1.pyc245400644editdlrm
bdb.cpython-39.opt-2.pyc155030644editdlrm
bdb.cpython-39.pyc245400644editdlrm
binhex.cpython-39.opt-1.pyc129650644editdlrm
binhex.cpython-39.opt-2.pyc124310644editdlrm
binhex.cpython-39.pyc129650644editdlrm
bisect.cpython-39.opt-1.pyc23500644editdlrm
bisect.cpython-39.opt-2.pyc10380644editdlrm
bisect.cpython-39.pyc23500644editdlrm
bz2.cpython-39.opt-1.pyc115450644editdlrm
bz2.cpython-39.opt-2.pyc65290644editdlrm
bz2.cpython-39.pyc115450644editdlrm
calendar.cpython-39.opt-1.pyc270310644editdlrm
calendar.cpython-39.opt-2.pyc224390644editdlrm
calendar.cpython-39.pyc270310644editdlrm
cgi.cpython-39.opt-1.pyc264820644editdlrm
cgi.cpython-39.opt-2.pyc180560644editdlrm
cgi.cpython-39.pyc264820644editdlrm
cgitb.cpython-39.opt-1.pyc101860644editdlrm
cgitb.cpython-39.opt-2.pyc85870644editdlrm
cgitb.cpython-39.pyc101860644editdlrm
chunk.cpython-39.opt-1.pyc48410644editdlrm
chunk.cpython-39.opt-2.pyc26970644editdlrm
chunk.cpython-39.pyc48410644editdlrm
cmd.cpython-39.opt-1.pyc126760644editdlrm
cmd.cpython-39.opt-2.pyc72510644editdlrm
cmd.cpython-39.pyc126760644editdlrm
code.cpython-39.opt-1.pyc99160644editdlrm
code.cpython-39.opt-2.pyc46450644editdlrm
code.cpython-39.pyc99160644editdlrm
codecs.cpython-39.opt-1.pyc338880644editdlrm
codecs.cpython-39.opt-2.pyc183160644editdlrm
codecs.cpython-39.pyc338880644editdlrm
codeop.cpython-39.opt-1.pyc64580644editdlrm
codeop.cpython-39.opt-2.pyc23980644editdlrm
codeop.cpython-39.pyc64580644editdlrm
colorsys.cpython-39.opt-1.pyc32600644editdlrm
colorsys.cpython-39.opt-2.pyc26540644editdlrm
colorsys.cpython-39.pyc32600644editdlrm
compileall.cpython-39.opt-1.pyc125890644editdlrm
compileall.cpython-39.opt-2.pyc93300644editdlrm
compileall.cpython-39.pyc125890644editdlrm
configparser.cpython-39.opt-1.pyc458690644editdlrm
configparser.cpython-39.opt-2.pyc307290644editdlrm
configparser.cpython-39.pyc458690644editdlrm
contextlib.cpython-39.opt-1.pyc195280644editdlrm
contextlib.cpython-39.opt-2.pyc139430644editdlrm
contextlib.cpython-39.pyc195380644editdlrm
contextvars.cpython-39.opt-1.pyc2450644editdlrm
contextvars.cpython-39.opt-2.pyc2450644editdlrm
contextvars.cpython-39.pyc2450644editdlrm
copy.cpython-39.opt-1.pyc69630644editdlrm
copy.cpython-39.opt-2.pyc46600644editdlrm
copy.cpython-39.pyc69630644editdlrm
copyreg.cpython-39.opt-1.pyc44110644editdlrm
copyreg.cpython-39.opt-2.pyc36090644editdlrm
copyreg.cpython-39.pyc44300644editdlrm
cProfile.cpython-39.opt-1.pyc51160644editdlrm
cProfile.cpython-39.opt-2.pyc46550644editdlrm
cProfile.cpython-39.pyc51160644editdlrm
crypt.cpython-39.opt-1.pyc35130644editdlrm
crypt.cpython-39.opt-2.pyc28510644editdlrm
crypt.cpython-39.pyc35130644editdlrm
csv.cpython-39.opt-1.pyc118490644editdlrm
csv.cpython-39.opt-2.pyc98080644editdlrm
csv.cpython-39.pyc118490644editdlrm
dataclasses.cpython-39.opt-1.pyc232170644editdlrm
dataclasses.cpython-39.opt-2.pyc197780644editdlrm
dataclasses.cpython-39.pyc232170644editdlrm
datetime.cpython-39.opt-1.pyc569740644editdlrm
datetime.cpython-39.opt-2.pyc485300644editdlrm
datetime.cpython-39.pyc581150644editdlrm
decimal.cpython-39.opt-1.pyc3590644editdlrm
decimal.cpython-39.opt-2.pyc3590644editdlrm
decimal.cpython-39.pyc3590644editdlrm
difflib.cpython-39.opt-1.pyc585580644editdlrm
difflib.cpython-39.opt-2.pyc250240644editdlrm
difflib.cpython-39.pyc585800644editdlrm
dis.cpython-39.opt-1.pyc158200644editdlrm
dis.cpython-39.opt-2.pyc120130644editdlrm
dis.cpython-39.pyc158200644editdlrm
doctest.cpython-39.opt-1.pyc758320644editdlrm
doctest.cpython-39.opt-2.pyc405260644editdlrm
doctest.cpython-39.pyc760390644editdlrm
enum.cpython-39.opt-1.pyc260200644editdlrm
enum.cpython-39.opt-2.pyc210980644editdlrm
enum.cpython-39.pyc260200644editdlrm
filecmp.cpython-39.opt-1.pyc86220644editdlrm
filecmp.cpython-39.opt-2.pyc60840644editdlrm
filecmp.cpython-39.pyc86220644editdlrm
fileinput.cpython-39.opt-1.pyc137900644editdlrm
fileinput.cpython-39.opt-2.pyc81820644editdlrm
fileinput.cpython-39.pyc137900644editdlrm
fnmatch.cpython-39.opt-1.pyc38700644editdlrm
fnmatch.cpython-39.opt-2.pyc26620644editdlrm
fnmatch.cpython-39.pyc39420644editdlrm
formatter.cpython-39.opt-1.pyc175390644editdlrm
formatter.cpython-39.opt-2.pyc150990644editdlrm
formatter.cpython-39.pyc175390644editdlrm
fractions.cpython-39.opt-1.pyc180490644editdlrm
fractions.cpython-39.opt-2.pyc108490644editdlrm
fractions.cpython-39.pyc180490644editdlrm
ftplib.cpython-39.opt-1.pyc286940644editdlrm
ftplib.cpython-39.opt-2.pyc185500644editdlrm
ftplib.cpython-39.pyc286940644editdlrm
functools.cpython-39.opt-1.pyc287230644editdlrm
functools.cpython-39.opt-2.pyc220020644editdlrm
functools.cpython-39.pyc287230644editdlrm
genericpath.cpython-39.opt-1.pyc45410644editdlrm
genericpath.cpython-39.opt-2.pyc33580644editdlrm
genericpath.cpython-39.pyc45410644editdlrm
getopt.cpython-39.opt-1.pyc62420644editdlrm
getopt.cpython-39.opt-2.pyc36880644editdlrm
getopt.cpython-39.pyc62600644editdlrm
getpass.cpython-39.opt-1.pyc42000644editdlrm
getpass.cpython-39.opt-2.pyc30140644editdlrm
getpass.cpython-39.pyc42000644editdlrm
gettext.cpython-39.opt-1.pyc180730644editdlrm
gettext.cpython-39.opt-2.pyc173820644editdlrm
gettext.cpython-39.pyc180730644editdlrm
glob.cpython-39.opt-1.pyc45050644editdlrm
glob.cpython-39.opt-2.pyc36450644editdlrm
glob.cpython-39.pyc45440644editdlrm
graphlib.cpython-39.opt-1.pyc75220644editdlrm
graphlib.cpython-39.opt-2.pyc40860644editdlrm
graphlib.cpython-39.pyc75680644editdlrm
gzip.cpython-39.opt-1.pyc184940644editdlrm
gzip.cpython-39.opt-2.pyc146270644editdlrm
gzip.cpython-39.pyc184940644editdlrm
hashlib.cpython-39.opt-1.pyc52050644editdlrm
hashlib.cpython-39.opt-2.pyc48800644editdlrm
hashlib.cpython-39.pyc52050644editdlrm
heapq.cpython-39.opt-1.pyc140400644editdlrm
heapq.cpython-39.opt-2.pyc110240644editdlrm
heapq.cpython-39.pyc140400644editdlrm
hmac.cpython-39.opt-1.pyc71230644editdlrm
hmac.cpython-39.opt-2.pyc46040644editdlrm
hmac.cpython-39.pyc71230644editdlrm
imaplib.cpython-39.opt-1.pyc405070644editdlrm
imaplib.cpython-39.opt-2.pyc278240644editdlrm
imaplib.cpython-39.pyc426880644editdlrm
imghdr.cpython-39.opt-1.pyc41400644editdlrm
imghdr.cpython-39.opt-2.pyc38250644editdlrm
imghdr.cpython-39.pyc41400644editdlrm
imp.cpython-39.opt-1.pyc98510644editdlrm
imp.cpython-39.opt-2.pyc74860644editdlrm
imp.cpython-39.pyc98510644editdlrm
inspect.cpython-39.opt-1.pyc812300644editdlrm
inspect.cpython-39.opt-2.pyc561020644editdlrm
inspect.cpython-39.pyc814720644editdlrm
io.cpython-39.opt-1.pyc34080644editdlrm
io.cpython-39.opt-2.pyc19190644editdlrm
io.cpython-39.pyc34080644editdlrm
ipaddress.cpython-39.opt-1.pyc656820644editdlrm
ipaddress.cpython-39.opt-2.pyc397020644editdlrm
ipaddress.cpython-39.pyc656820644editdlrm
keyword.cpython-39.opt-1.pyc9160644editdlrm
keyword.cpython-39.opt-2.pyc5120644editdlrm
keyword.cpython-39.pyc9160644editdlrm
linecache.cpython-39.opt-1.pyc40280644editdlrm
linecache.cpython-39.opt-2.pyc27950644editdlrm
linecache.cpython-39.pyc40280644editdlrm
locale.cpython-39.opt-1.pyc346960644editdlrm
locale.cpython-39.opt-2.pyc300780644editdlrm
locale.cpython-39.pyc346960644editdlrm
lzma.cpython-39.opt-1.pyc120940644editdlrm
lzma.cpython-39.opt-2.pyc58960644editdlrm
lzma.cpython-39.pyc120940644editdlrm
mailbox.cpython-39.opt-1.pyc605460644editdlrm
mailbox.cpython-39.opt-2.pyc539420644editdlrm
mailbox.cpython-39.pyc606000644editdlrm
mailcap.cpython-39.opt-1.pyc72390644editdlrm
mailcap.cpython-39.opt-2.pyc56690644editdlrm
mailcap.cpython-39.pyc72390644editdlrm
mimetypes.cpython-39.opt-1.pyc160150644editdlrm
mimetypes.cpython-39.opt-2.pyc100000644editdlrm
mimetypes.cpython-39.pyc160150644editdlrm
modulefinder.cpython-39.opt-1.pyc160820644editdlrm
modulefinder.cpython-39.opt-2.pyc151730644editdlrm
modulefinder.cpython-39.pyc161280644editdlrm
netrc.cpython-39.opt-1.pyc37830644editdlrm
netrc.cpython-39.opt-2.pyc35450644editdlrm
netrc.cpython-39.pyc37830644editdlrm
nntplib.cpython-39.opt-1.pyc317630644editdlrm
nntplib.cpython-39.opt-2.pyc201630644editdlrm
nntplib.cpython-39.pyc317630644editdlrm
ntpath.cpython-39.opt-1.pyc142710644editdlrm
ntpath.cpython-39.opt-2.pyc122200644editdlrm
ntpath.cpython-39.pyc142710644editdlrm
nturl2path.cpython-39.opt-1.pyc17460644editdlrm
nturl2path.cpython-39.opt-2.pyc13270644editdlrm
nturl2path.cpython-39.pyc17460644editdlrm
numbers.cpython-39.opt-1.pyc123190644editdlrm
numbers.cpython-39.opt-2.pyc83620644editdlrm
numbers.cpython-39.pyc123190644editdlrm
opcode.cpython-39.opt-1.pyc52230644editdlrm
opcode.cpython-39.opt-2.pyc50820644editdlrm
opcode.cpython-39.pyc52230644editdlrm
operator.cpython-39.opt-1.pyc137840644editdlrm
operator.cpython-39.opt-2.pyc113950644editdlrm
operator.cpython-39.pyc137840644editdlrm
optparse.cpython-39.opt-1.pyc478880644editdlrm
optparse.cpython-39.opt-2.pyc355730644editdlrm
optparse.cpython-39.pyc479430644editdlrm
os.cpython-39.opt-1.pyc316300644editdlrm
os.cpython-39.opt-2.pyc194400644editdlrm
os.cpython-39.pyc316460644editdlrm
pathlib.cpython-39.opt-1.pyc435280644editdlrm
pathlib.cpython-39.opt-2.pyc346680644editdlrm
pathlib.cpython-39.pyc435280644editdlrm
pdb.cpython-39.opt-1.pyc475470644editdlrm
pdb.cpython-39.opt-2.pyc334760644editdlrm
pdb.cpython-39.pyc475860644editdlrm
pickle.cpython-39.opt-1.pyc470120644editdlrm
pickle.cpython-39.opt-2.pyc411420644editdlrm
pickle.cpython-39.pyc470980644editdlrm
pickletools.cpython-39.opt-1.pyc662930644editdlrm
pickletools.cpython-39.opt-2.pyc572000644editdlrm
pickletools.cpython-39.pyc671070644editdlrm
pipes.cpython-39.opt-1.pyc77950644editdlrm
pipes.cpython-39.opt-2.pyc49280644editdlrm
pipes.cpython-39.pyc77950644editdlrm
pkgutil.cpython-39.opt-1.pyc185660644editdlrm
pkgutil.cpython-39.opt-2.pyc118670644editdlrm
pkgutil.cpython-39.pyc185660644editdlrm
platform.cpython-39.opt-1.pyc264160644editdlrm
platform.cpython-39.opt-2.pyc183480644editdlrm
platform.cpython-39.pyc264160644editdlrm
plistlib.cpython-39.opt-1.pyc234960644editdlrm
plistlib.cpython-39.opt-2.pyc211370644editdlrm
plistlib.cpython-39.pyc235470644editdlrm
poplib.cpython-39.opt-1.pyc137540644editdlrm
poplib.cpython-39.opt-2.pyc88240644editdlrm
poplib.cpython-39.pyc137540644editdlrm
posixpath.cpython-39.opt-1.pyc106420644editdlrm
posixpath.cpython-39.opt-2.pyc89270644editdlrm
posixpath.cpython-39.pyc106420644editdlrm
pprint.cpython-39.opt-1.pyc167970644editdlrm
pprint.cpython-39.opt-2.pyc146400644editdlrm
pprint.cpython-39.pyc168300644editdlrm
profile.cpython-39.opt-1.pyc142230644editdlrm
profile.cpython-39.opt-2.pyc112450644editdlrm
profile.cpython-39.pyc144110644editdlrm
pstats.cpython-39.opt-1.pyc237520644editdlrm
pstats.cpython-39.opt-2.pyc208430644editdlrm
pstats.cpython-39.pyc237520644editdlrm
pty.cpython-39.opt-1.pyc39560644editdlrm
pty.cpython-39.opt-2.pyc31110644editdlrm
pty.cpython-39.pyc39560644editdlrm
pyclbr.cpython-39.opt-1.pyc104490644editdlrm
pyclbr.cpython-39.opt-2.pyc68480644editdlrm
pyclbr.cpython-39.pyc104490644editdlrm
pydoc.cpython-39.opt-1.pyc854280644editdlrm
pydoc.cpython-39.opt-2.pyc755460644editdlrm
pydoc.cpython-39.pyc854600644editdlrm
py_compile.cpython-39.opt-1.pyc73960644editdlrm
py_compile.cpython-39.opt-2.pyc36580644editdlrm
py_compile.cpython-39.pyc73960644editdlrm
queue.cpython-39.opt-1.pyc108760644editdlrm
queue.cpython-39.opt-2.pyc65260644editdlrm
queue.cpython-39.pyc108760644editdlrm
quopri.cpython-39.opt-1.pyc56030644editdlrm
quopri.cpython-39.opt-2.pyc45670644editdlrm
quopri.cpython-39.pyc57470644editdlrm
random.cpython-39.opt-1.pyc220430644editdlrm
random.cpython-39.opt-2.pyc145960644editdlrm
random.cpython-39.pyc220430644editdlrm
re.cpython-39.opt-1.pyc143620644editdlrm
re.cpython-39.opt-2.pyc60240644editdlrm
re.cpython-39.pyc143620644editdlrm
reprlib.cpython-39.opt-1.pyc53070644editdlrm
reprlib.cpython-39.opt-2.pyc51510644editdlrm
reprlib.cpython-39.pyc53070644editdlrm
rlcompleter.cpython-39.opt-1.pyc58060644editdlrm
rlcompleter.cpython-39.opt-2.pyc31430644editdlrm
rlcompleter.cpython-39.pyc58060644editdlrm
runpy.cpython-39.opt-1.pyc93850644editdlrm
runpy.cpython-39.opt-2.pyc69430644editdlrm
runpy.cpython-39.pyc93850644editdlrm
sched.cpython-39.opt-1.pyc66330644editdlrm
sched.cpython-39.opt-2.pyc36050644editdlrm
sched.cpython-39.pyc66330644editdlrm
secrets.cpython-39.opt-1.pyc21800644editdlrm
secrets.cpython-39.opt-2.pyc11220644editdlrm
secrets.cpython-39.pyc21800644editdlrm
selectors.cpython-39.opt-1.pyc172450644editdlrm
selectors.cpython-39.opt-2.pyc131360644editdlrm
selectors.cpython-39.pyc172450644editdlrm
shelve.cpython-39.opt-1.pyc95440644editdlrm
shelve.cpython-39.opt-2.pyc53930644editdlrm
shelve.cpython-39.pyc95440644editdlrm
shlex.cpython-39.opt-1.pyc77340644editdlrm
shlex.cpython-39.opt-2.pyc71760644editdlrm
shlex.cpython-39.pyc77340644editdlrm
shutil.cpython-39.opt-1.pyc384970644editdlrm
shutil.cpython-39.opt-2.pyc264290644editdlrm
shutil.cpython-39.pyc384970644editdlrm
signal.cpython-39.opt-1.pyc30060644editdlrm
signal.cpython-39.opt-2.pyc27820644editdlrm
signal.cpython-39.pyc30060644editdlrm
site.cpython-39.opt-1.pyc172290644editdlrm
site.cpython-39.opt-2.pyc115550644editdlrm
site.cpython-39.pyc172290644editdlrm
smtpd.cpython-39.opt-1.pyc265240644editdlrm
smtpd.cpython-39.opt-2.pyc239040644editdlrm
smtpd.cpython-39.pyc265240644editdlrm
smtplib.cpython-39.opt-1.pyc358850644editdlrm
smtplib.cpython-39.opt-2.pyc195230644editdlrm
smtplib.cpython-39.pyc359300644editdlrm
sndhdr.cpython-39.opt-1.pyc69930644editdlrm
sndhdr.cpython-39.opt-2.pyc57180644editdlrm
sndhdr.cpython-39.pyc69930644editdlrm
socket.cpython-39.opt-1.pyc289760644editdlrm
socket.cpython-39.opt-2.pyc204370644editdlrm
socket.cpython-39.pyc290000644editdlrm
socketserver.cpython-39.opt-1.pyc255150644editdlrm
socketserver.cpython-39.opt-2.pyc147990644editdlrm
socketserver.cpython-39.pyc255150644editdlrm
sre_compile.cpython-39.opt-1.pyc149590644editdlrm
sre_compile.cpython-39.opt-2.pyc145450644editdlrm
sre_compile.cpython-39.pyc151540644editdlrm
sre_constants.cpython-39.opt-1.pyc63360644editdlrm
sre_constants.cpython-39.opt-2.pyc59110644editdlrm
sre_constants.cpython-39.pyc63360644editdlrm
sre_parse.cpython-39.opt-1.pyc217720644editdlrm
sre_parse.cpython-39.opt-2.pyc217240644editdlrm
sre_parse.cpython-39.pyc218090644editdlrm
ssl.cpython-39.opt-1.pyc451060644editdlrm
ssl.cpython-39.opt-2.pyc341220644editdlrm
ssl.cpython-39.pyc451060644editdlrm
stat.cpython-39.opt-1.pyc43720644editdlrm
stat.cpython-39.opt-2.pyc35890644editdlrm
stat.cpython-39.pyc43720644editdlrm
statistics.cpython-39.opt-1.pyc317840644editdlrm
statistics.cpython-39.opt-2.pyc159110644editdlrm
statistics.cpython-39.pyc319780644editdlrm
string.cpython-39.opt-1.pyc71650644editdlrm
string.cpython-39.opt-2.pyc60590644editdlrm
string.cpython-39.pyc71650644editdlrm
stringprep.cpython-39.opt-1.pyc99460644editdlrm
stringprep.cpython-39.opt-2.pyc97280644editdlrm
stringprep.cpython-39.pyc99860644editdlrm
struct.cpython-39.opt-1.pyc3060644editdlrm
struct.cpython-39.opt-2.pyc3060644editdlrm
struct.cpython-39.pyc3060644editdlrm
subprocess.cpython-39.opt-1.pyc443100644editdlrm
subprocess.cpython-39.opt-2.pyc322720644editdlrm
subprocess.cpython-39.pyc443860644editdlrm
sunau.cpython-39.opt-1.pyc168170644editdlrm
sunau.cpython-39.opt-2.pyc122270644editdlrm
sunau.cpython-39.pyc168170644editdlrm
symbol.cpython-39.opt-1.pyc25790644editdlrm
symbol.cpython-39.opt-2.pyc25030644editdlrm
symbol.cpython-39.pyc25790644editdlrm
symtable.cpython-39.opt-1.pyc110880644editdlrm
symtable.cpython-39.opt-2.pyc103590644editdlrm
symtable.cpython-39.pyc111660644editdlrm
sysconfig.cpython-39.opt-1.pyc162040644editdlrm
sysconfig.cpython-39.opt-2.pyc138260644editdlrm
sysconfig.cpython-39.pyc162040644editdlrm
tabnanny.cpython-39.opt-1.pyc70650644editdlrm
tabnanny.cpython-39.opt-2.pyc61320644editdlrm
tabnanny.cpython-39.pyc70650644editdlrm
tarfile.cpython-39.opt-1.pyc737630644editdlrm
tarfile.cpython-39.opt-2.pyc585050644editdlrm
tarfile.cpython-39.pyc737780644editdlrm
telnetlib.cpython-39.opt-1.pyc183310644editdlrm
telnetlib.cpython-39.opt-2.pyc108290644editdlrm
telnetlib.cpython-39.pyc183310644editdlrm
tempfile.cpython-39.opt-1.pyc236560644editdlrm
tempfile.cpython-39.opt-2.pyc171300644editdlrm
tempfile.cpython-39.pyc236560644editdlrm
textwrap.cpython-39.opt-1.pyc134630644editdlrm
textwrap.cpython-39.opt-2.pyc62540644editdlrm
textwrap.cpython-39.pyc135210644editdlrm
this.cpython-39.opt-1.pyc12590644editdlrm
this.cpython-39.opt-2.pyc12590644editdlrm
this.cpython-39.pyc12590644editdlrm
threading.cpython-39.opt-1.pyc417160644editdlrm
threading.cpython-39.opt-2.pyc245290644editdlrm
threading.cpython-39.pyc421810644editdlrm
timeit.cpython-39.opt-1.pyc117560644editdlrm
timeit.cpython-39.opt-2.pyc59020644editdlrm
timeit.cpython-39.pyc117560644editdlrm
token.cpython-39.opt-1.pyc24960644editdlrm
token.cpython-39.opt-2.pyc24630644editdlrm
token.cpython-39.pyc24960644editdlrm
tokenize.cpython-39.opt-1.pyc171370644editdlrm
tokenize.cpython-39.opt-2.pyc133730644editdlrm
tokenize.cpython-39.pyc171650644editdlrm
trace.cpython-39.opt-1.pyc197590644editdlrm
trace.cpython-39.opt-2.pyc167440644editdlrm
trace.cpython-39.pyc197590644editdlrm
traceback.cpython-39.opt-1.pyc204400644editdlrm
traceback.cpython-39.opt-2.pyc114870644editdlrm
traceback.cpython-39.pyc204400644editdlrm
tracemalloc.cpython-39.opt-1.pyc179350644editdlrm
tracemalloc.cpython-39.opt-2.pyc165220644editdlrm
tracemalloc.cpython-39.pyc179350644editdlrm
tty.cpython-39.opt-1.pyc10780644editdlrm
tty.cpython-39.opt-2.pyc9690644editdlrm
tty.cpython-39.pyc10780644editdlrm
types.cpython-39.opt-1.pyc92360644editdlrm
types.cpython-39.opt-2.pyc80140644editdlrm
types.cpython-39.pyc92360644editdlrm
typing.cpython-39.opt-1.pyc718050644editdlrm
typing.cpython-39.opt-2.pyc505570644editdlrm
typing.cpython-39.pyc719350644editdlrm
uu.cpython-39.opt-1.pyc38470644editdlrm
uu.cpython-39.opt-2.pyc36030644editdlrm
uu.cpython-39.pyc38470644editdlrm
uuid.cpython-39.opt-1.pyc223970644editdlrm
uuid.cpython-39.opt-2.pyc146840644editdlrm
uuid.cpython-39.pyc225100644editdlrm
warnings.cpython-39.opt-1.pyc131660644editdlrm
warnings.cpython-39.opt-2.pyc108910644editdlrm
warnings.cpython-39.pyc136050644editdlrm
wave.cpython-39.opt-1.pyc178440644editdlrm
wave.cpython-39.opt-2.pyc118520644editdlrm
wave.cpython-39.pyc178730644editdlrm
weakref.cpython-39.opt-1.pyc202710644editdlrm
weakref.cpython-39.opt-2.pyc169860644editdlrm
weakref.cpython-39.pyc202850644editdlrm
webbrowser.cpython-39.opt-1.pyc175650644editdlrm
webbrowser.cpython-39.opt-2.pyc150860644editdlrm
webbrowser.cpython-39.pyc175820644editdlrm
xdrlib.cpython-39.opt-1.pyc82430644editdlrm
xdrlib.cpython-39.opt-2.pyc77580644editdlrm
xdrlib.cpython-39.pyc82430644editdlrm
zipapp.cpython-39.opt-1.pyc59850644editdlrm
zipapp.cpython-39.opt-2.pyc48090644editdlrm
zipapp.cpython-39.pyc59850644editdlrm
zipfile.cpython-39.opt-1.pyc598670644editdlrm
zipfile.cpython-39.opt-2.pyc508790644editdlrm
zipfile.cpython-39.pyc598880644editdlrm
zipimport.cpython-39.opt-1.pyc171590644editdlrm
zipimport.cpython-39.opt-2.pyc136410644editdlrm
zipimport.cpython-39.pyc172370644editdlrm
_aix_support.cpython-39.opt-1.pyc30460644editdlrm
_aix_support.cpython-39.opt-2.pyc16910644editdlrm
_aix_support.cpython-39.pyc30460644editdlrm
_bootlocale.cpython-39.opt-1.pyc12170644editdlrm
_bootlocale.cpython-39.opt-2.pyc9920644editdlrm
_bootlocale.cpython-39.pyc12270644editdlrm
_bootsubprocess.cpython-39.opt-1.pyc22450644editdlrm
_bootsubprocess.cpython-39.opt-2.pyc20160644editdlrm
_bootsubprocess.cpython-39.pyc22450644editdlrm
_collections_abc.cpython-39.opt-1.pyc317310644editdlrm
_collections_abc.cpython-39.opt-2.pyc262410644editdlrm
_collections_abc.cpython-39.pyc317310644editdlrm
_compat_pickle.cpython-39.opt-1.pyc54350644editdlrm
_compat_pickle.cpython-39.opt-2.pyc54350644editdlrm
_compat_pickle.cpython-39.pyc54880644editdlrm
_compression.cpython-39.opt-1.pyc41980644editdlrm
_compression.cpython-39.opt-2.pyc39840644editdlrm
_compression.cpython-39.pyc41980644editdlrm
_markupbase.cpython-39.opt-1.pyc76260644editdlrm
_markupbase.cpython-39.opt-2.pyc72480644editdlrm
_markupbase.cpython-39.pyc77770644editdlrm
_osx_support.cpython-39.opt-1.pyc115820644editdlrm
_osx_support.cpython-39.opt-2.pyc88920644editdlrm
_osx_support.cpython-39.pyc115820644editdlrm
_pydecimal.cpython-39.opt-1.pyc1606130644editdlrm
_pydecimal.cpython-39.opt-2.pyc789960644editdlrm
_pydecimal.cpython-39.pyc1606130644editdlrm
_pyio.cpython-39.opt-1.pyc743670644editdlrm
_pyio.cpython-39.opt-2.pyc515700644editdlrm
_pyio.cpython-39.pyc743870644editdlrm
_py_abc.cpython-39.opt-1.pyc46340644editdlrm
_py_abc.cpython-39.opt-2.pyc34210644editdlrm
_py_abc.cpython-39.pyc46560644editdlrm
_sitebuiltins.cpython-39.opt-1.pyc35010644editdlrm
_sitebuiltins.cpython-39.opt-2.pyc29770644editdlrm
_sitebuiltins.cpython-39.pyc35010644editdlrm
_strptime.cpython-39.opt-1.pyc160150644editdlrm
_strptime.cpython-39.opt-2.pyc122870644editdlrm
_strptime.cpython-39.pyc160150644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-1.pyc307880644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-2.pyc307880644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.pyc307880644editdlrm
_threading_local.cpython-39.opt-1.pyc65060644editdlrm
_threading_local.cpython-39.opt-2.pyc31860644editdlrm
_threading_local.cpython-39.pyc65060644editdlrm
_weakrefset.cpython-39.opt-1.pyc77240644editdlrm
_weakrefset.cpython-39.opt-2.pyc77240644editdlrm
_weakrefset.cpython-39.pyc77240644editdlrm
__future__.cpython-39.opt-1.pyc41260644editdlrm
__future__.cpython-39.opt-2.pyc21540644editdlrm
__future__.cpython-39.pyc41260644editdlrm
__phello__.foo.cpython-39.opt-1.pyc1290644editdlrm
__phello__.foo.cpython-39.opt-2.pyc1290644editdlrm
__phello__.foo.cpython-39.pyc1290644editdlrm
Edit: /usr/lib64/python3.9/__pycache__/pickletools.cpython-39.opt-1.pyc (66293B)
a i.mL@s dZddlZddlZddlZddlZddlZgdZejZdZdZ dZ dZ dZ Gd d d e Zdd lmZd d ZeddeddZddZeddeddZddZeddeddZddZeddeddZd d!Zed"d#ed$dZdd&d'Zed(eed)dZd*d+Zed,eed-dZd.d/Z ed0ee d1dZ!d2d3Z"ed4e e"d5dZ#d6d7Z$ed8e e$d9dZ%d:d;Z&edd?Z(ed@e e(dAdZ)dBdCZ*edDe e*dEdZ+dFdGZ,edHe e,dIdZ-dJdKZ.edLee.dMdZ/dNdOZ0edPe e0dQdZ1dRdSZ2edTe e2dUdZ3dVdWZ4edXe e4dYdZ5dZd[Z6d\d]Z7ed^ee6d_dZ8ed`ee7dadZ9dbdcZ:eddee:dedZ;dfdgZZ>dkdlZ?edme e?dndZ@dodpZAedqe eAdrdZBGdsdtdte ZCeCdueDdvdwZEZFeCdxeDeGfdydwZHeCdzeGd{dwZIeCd|eJd}dwZKeCd~eLeMfddwZNZOeCdeLddwZPeCdeQddwZReCdeMddwZSeCdeTdddwZUeCdeVddwZWeCdeXddwZYeCdeZddwZ[eCde\ddwZ]eCde\ddwZ^eCde ddwZ_eCde ddwZ`eCdeCddwZaeCdeCddwZbGddde ZcecZdeddde8geHgdddedddegeEgdddedddegeEgdddedddegeEgdddeddde9geEgdddeddde@geEgdddedddeBgeEgdddedddegeNgdddeddde%geNgdddeddde#geNgdddeddde)gePgdddeddde'gePgdddeddde+gePgdddeddde-geRgdddeddddge_gdddedddde_ge_gdddeddddgeUgdddeddddgeIgdddeddddgeIgdddeddde/geSgdddeddde1geSgdddeddde3geSgdddeddde5geSgdddeddde;geKgdddeddde=geKgdddeddddgeYgdddeddddeYe`geYgdddeddddeYeaebgeYgdddeddddeaebgeYgdddeddddgeWgdddeddddeaebgeWgdddedddde`geWgdddedddde`e`geWgdddedddde`e`e`geWgdddeddddge[gdddeddd deaebge[gdd dedd d de[e`e`ge[gdd dedddde[eaebge[gdddeddddge]gdddedddde]eaebge]gdddeddddeaebge^gdddedddde`ggdddedddde`ge`e`gdddedd d!dgeagdd"dedd#d$deaebggdd%dedd&d'e8ge`gdd(dedd)d*ege`gdd+dedd,d-ege`gdd.dedd/d0e8ggdd1dedd2d3eggdd4dedd5d6eggdd7dedd8d9de`ge`gdd:dedd;dd?ege`gdd@deddAdBege`gddCdeddDdEe!ge`gddFdeddGdHdeSeSge`gddIdeddJdKde`e`ge`gddLdeddMdNde`e`ge`gddOdeddPdQe!eaebge`gddRdeddSdTdeae`ebge`gddUdeddVdWde`e`ge`gddXdeddYdZde`e`e`ge`gdd[dedd\d]eggdd^dedd_d`de`ggddadeddbdceggddddeddedfege`gddgdeddhdide`ge`gddjdgDZe[diZfiZgeheeD]n\ZiZjejjkefv rZejjejkdZejedeseejeeje qdS(ar"Executable documentation" for the pickle module. Extensive comments about the pickle protocols and pickle-machine opcodes can be found here. Some functions meant for external use: genops(pickle) Generate all the opcodes in a pickle, as (opcode, arg, position) triples. dis(pickle, out=None, memo=None, indentlevel=4) Print a symbolic disassembly of a pickle. N)disgenopsoptimizec@seZdZdZddZdS)ArgumentDescriptornamenreaderdoccCs||_||_||_||_dSNr )selfr r rrr#/usr/lib64/python3.9/pickletools.py__init__szArgumentDescriptor.__init__N__name__ __module__ __qualname__ __slots__rrrrrr sr )unpackcCs"|d}|r|dStddS)zG >>> import io >>> read_uint1(io.BytesIO(b'\xff')) 255 rz'not enough data in stream to read uint1N)read ValueErrorfdatarrr read_uint1s r!uint1rzOne-byte unsigned integer.r cCs0|d}t|dkr$td|dStddS)z >>> import io >>> read_uint2(io.BytesIO(b'\xff\x00')) 255 >>> read_uint2(io.BytesIO(b'\xff\xff')) 65535 z>> import io >>> read_int4(io.BytesIO(b'\xff\x00\x00\x00')) 255 >>> read_int4(io.BytesIO(b'\x00\x00\x00\x80')) == -(2**31) True z>> import io >>> read_uint4(io.BytesIO(b'\xff\x00\x00\x00')) 255 >>> read_uint4(io.BytesIO(b'\x00\x00\x00\x80')) == 2**31 True r)z>> import io >>> read_uint8(io.BytesIO(b'\xff\x00\x00\x00\x00\x00\x00\x00')) 255 >>> read_uint8(io.BytesIO(b'\xff' * 8)) == 2**64-1 True z>> import io >>> read_stringnl(io.BytesIO(b"'abcd'\nefg\n")) 'abcd' >>> read_stringnl(io.BytesIO(b"\n")) Traceback (most recent call last): ... ValueError: no string quotes around b'' >>> read_stringnl(io.BytesIO(b"\n"), stripquotes=False) '' >>> read_stringnl(io.BytesIO(b"''\n")) '' >>> read_stringnl(io.BytesIO(b'"abcd"')) Traceback (most recent call last): ... ValueError: no newline found when trying to read stringnl Embedded escapes are undone in the result. >>> read_stringnl(io.BytesIO(br"'a\n\\b\x00c\td'" + b"\n'e'")) 'a\n\\b\x00c\td'  z-no newline found when trying to read stringnlNr)"'z,strinq quote %r not found at both ends of %rrzno string quotes around %rrascii)readlineendswithr startswithcodecs escape_decodedecode)rr: stripquotesr qrrr read_stringnl;s"      r=stringnlzA newline-terminated string. This is a repr-style string, with embedded escapes, and bracketing quotes. cCs t|ddS)NF)r;)r=rrrrread_stringnl_noescapetsr@stringnl_noescapeaA newline-terminated string. This is a str-style string, without embedded escapes, or bracketing quotes. It should consist solely of printable ASCII characters. cCsdt|t|fS)zp >>> import io >>> read_stringnl_noescape_pair(io.BytesIO(b"Queue\nEmpty\njunk")) 'Queue Empty' z%s %s)r@r?rrrread_stringnl_noescape_pairsrBstringnl_noescape_pairaA pair of newline-terminated strings. These are str-style strings, without embedded escapes, or bracketing quotes. They should consist solely of printable ASCII characters. The pair is returned as a single string, with a single blank separating the two strings. cCs@t|}||}t||kr(|dStd|t|fdS)z >>> import io >>> read_string1(io.BytesIO(b"\x00")) '' >>> read_string1(io.BytesIO(b"\x03abcdef")) 'abc' latin-1z2expected %d bytes in a string1, but only %d remainN)r!rr%r:rrr r rrr read_string1s     rFstring1zA counted string. The first argument is a 1-byte unsigned int giving the number of bytes in the string, and the second argument is that many bytes. cCsTt|}|dkrtd|||}t||kr<|dStd|t|fdS)aP >>> import io >>> read_string4(io.BytesIO(b"\x00\x00\x00\x00abc")) '' >>> read_string4(io.BytesIO(b"\x03\x00\x00\x00abcdef")) 'abc' >>> read_string4(io.BytesIO(b"\x00\x00\x00\x03abcdef")) Traceback (most recent call last): ... ValueError: expected 50331648 bytes in a string4, but only 6 remain rzstring4 byte count < 0: %drDz2expected %d bytes in a string4, but only %d remainN)r*rrr%r:rErrr read_string4s      rHstring4zA counted string. The first argument is a 4-byte little-endian signed int giving the number of bytes in the string, and the second argument is that many bytes. cCs:t|}||}t||kr"|Std|t|fdS)z >>> import io >>> read_bytes1(io.BytesIO(b"\x00")) b'' >>> read_bytes1(io.BytesIO(b"\x03abcdef")) b'abc' z1expected %d bytes in a bytes1, but only %d remainN)r!rr%rrErrr read_bytes1s    rJbytes1zA counted bytes string. The first argument is a 1-byte unsigned int giving the number of bytes, and the second argument is that many bytes. cCsPt|}|tjkrtd|||}t||kr8|Std|t|fdS)aN >>> import io >>> read_bytes4(io.BytesIO(b"\x00\x00\x00\x00abc")) b'' >>> read_bytes4(io.BytesIO(b"\x03\x00\x00\x00abcdef")) b'abc' >>> read_bytes4(io.BytesIO(b"\x00\x00\x00\x03abcdef")) Traceback (most recent call last): ... ValueError: expected 50331648 bytes in a bytes4, but only 6 remain z#bytes4 byte count > sys.maxsize: %dz1expected %d bytes in a bytes4, but only %d remainN)r,sysmaxsizerrr%rErrr read_bytes4s      rNbytes4zA counted bytes string. The first argument is a 4-byte little-endian unsigned int giving the number of bytes, and the second argument is that many bytes. cCsPt|}|tjkrtd|||}t||kr8|Std|t|fdS)a >>> import io, struct, sys >>> read_bytes8(io.BytesIO(b"\x00\x00\x00\x00\x00\x00\x00\x00abc")) b'' >>> read_bytes8(io.BytesIO(b"\x03\x00\x00\x00\x00\x00\x00\x00abcdef")) b'abc' >>> bigsize8 = struct.pack(">> read_bytes8(io.BytesIO(bigsize8 + b"abcdef")) #doctest: +ELLIPSIS Traceback (most recent call last): ... ValueError: expected ... bytes in a bytes8, but only 6 remain z#bytes8 byte count > sys.maxsize: %dz1expected %d bytes in a bytes8, but only %d remainN)r/rLrMrrr%rErrr read_bytes8s     rPbytes8zA counted bytes string. The first argument is an 8-byte little-endian unsigned int giving the number of bytes, and the second argument is that many bytes. cCsTt|}|tjkrtd|||}t||kr>> import io, struct, sys >>> read_bytearray8(io.BytesIO(b"\x00\x00\x00\x00\x00\x00\x00\x00abc")) bytearray(b'') >>> read_bytearray8(io.BytesIO(b"\x03\x00\x00\x00\x00\x00\x00\x00abcdef")) bytearray(b'abc') >>> bigsize8 = struct.pack(">> read_bytearray8(io.BytesIO(bigsize8 + b"abcdef")) #doctest: +ELLIPSIS Traceback (most recent call last): ... ValueError: expected ... bytes in a bytearray8, but only 6 remain z'bytearray8 byte count > sys.maxsize: %dz5expected %d bytes in a bytearray8, but only %d remainN)r/rLrMrrr% bytearrayrErrrread_bytearray89s     rS bytearray8zA counted bytearray. The first argument is an 8-byte little-endian unsigned int giving the number of bytes, and the second argument is that many bytes. cCs0|}|dstd|dd}t|dS)zm >>> import io >>> read_unicodestringnl(io.BytesIO(b"abc\\uabcd\njunk")) == 'abc\uabcd' True r1z4no newline found when trying to read unicodestringnlNrzraw-unicode-escape)r5r6rstrrrrrread_unicodestringnl[s   rVunicodestringnlzA newline-terminated Unicode string. This is raw-unicode-escape encoded, so consists of printable ASCII characters, and may contain embedded escape sequences. cCsBt|}||}t||kr*t|ddStd|t|fdS)a >>> import io >>> s = 'abcd\uabcd' >>> enc = s.encode('utf-8') >>> enc b'abcd\xea\xaf\x8d' >>> n = bytes([len(enc)]) # little-endian 1-byte length >>> t = read_unicodestring1(io.BytesIO(n + enc + b'junk')) >>> s == t True >>> read_unicodestring1(io.BytesIO(n + enc[:-1])) Traceback (most recent call last): ... ValueError: expected 7 bytes in a unicodestring1, but only 6 remain utf-8 surrogatepassz9expected %d bytes in a unicodestring1, but only %d remainN)r!rr%rUrrErrrread_unicodestring1us    rZunicodestring1aAA counted Unicode string. The first argument is a 1-byte little-endian signed int giving the number of bytes in the string, and the second argument-- the UTF-8 encoding of the Unicode string -- contains that many bytes. cCsXt|}|tjkrtd|||}t||kr@t|ddStd|t|fdS)a >>> import io >>> s = 'abcd\uabcd' >>> enc = s.encode('utf-8') >>> enc b'abcd\xea\xaf\x8d' >>> n = bytes([len(enc), 0, 0, 0]) # little-endian 4-byte length >>> t = read_unicodestring4(io.BytesIO(n + enc + b'junk')) >>> s == t True >>> read_unicodestring4(io.BytesIO(n + enc[:-1])) Traceback (most recent call last): ... ValueError: expected 7 bytes in a unicodestring4, but only 6 remain z+unicodestring4 byte count > sys.maxsize: %drXrYz9expected %d bytes in a unicodestring4, but only %d remainN)r,rLrMrrr%rUrErrrread_unicodestring4s      r\unicodestring4aAA counted Unicode string. The first argument is a 4-byte little-endian signed int giving the number of bytes in the string, and the second argument-- the UTF-8 encoding of the Unicode string -- contains that many bytes. cCsXt|}|tjkrtd|||}t||kr@t|ddStd|t|fdS)a >>> import io >>> s = 'abcd\uabcd' >>> enc = s.encode('utf-8') >>> enc b'abcd\xea\xaf\x8d' >>> n = bytes([len(enc)]) + b'\0' * 7 # little-endian 8-byte length >>> t = read_unicodestring8(io.BytesIO(n + enc + b'junk')) >>> s == t True >>> read_unicodestring8(io.BytesIO(n + enc[:-1])) Traceback (most recent call last): ... ValueError: expected 7 bytes in a unicodestring8, but only 6 remain z+unicodestring8 byte count > sys.maxsize: %drXrYz9expected %d bytes in a unicodestring8, but only %d remainN)r/rLrMrrr%rUrErrrread_unicodestring8s      r^unicodestring8aBA counted Unicode string. The first argument is an 8-byte little-endian signed int giving the number of bytes in the string, and the second argument-- the UTF-8 encoding of the Unicode string -- contains that many bytes. cCs.t|ddd}|dkrdS|dkr&dSt|S)z >>> import io >>> read_decimalnl_short(io.BytesIO(b"1234\n56")) 1234 >>> read_decimalnl_short(io.BytesIO(b"1234L\n56")) Traceback (most recent call last): ... ValueError: invalid literal for int() with base 10: b'1234L' Fr:r;s00s01Tr=intrsrrrread_decimalnl_shorts recCs2t|ddd}|dddkr*|dd}t|S)z >>> import io >>> read_decimalnl_long(io.BytesIO(b"1234L\n56")) 1234 >>> read_decimalnl_long(io.BytesIO(b"123456789012345678901234L\n6")) 123456789012345678901234 Fr`rNLrarcrrrread_decimalnl_longs  rgdecimalnl_shortaA newline-terminated decimal integer literal. This never has a trailing 'L', and the integer fit in a short Python int on the box where the pickle was written -- but there's no guarantee it will fit in a short Python int on the box where the pickle is read. decimalnl_longzA newline-terminated decimal integer literal. This has a trailing 'L', and can represent integers of any size. cCst|ddd}t|S)zO >>> import io >>> read_floatnl(io.BytesIO(b"-1.25\n6")) -1.25 Fr`)r=floatrcrrr read_floatnl-srkfloatnlaA newline-terminated decimal floating literal. In general this requires 17 significant digits for roundtrip identity, and pickling then unpickling infinities, NaNs, and minus zero doesn't work across boxes, or on some boxes even on itself (e.g., Windows can't read the strings it produces for infinities or NaNs). cCs0|d}t|dkr$td|dStddS)z >>> import io, struct >>> raw = struct.pack(">d", -1.25) >>> raw b'\xbf\xf4\x00\x00\x00\x00\x00\x00' >>> read_float8(io.BytesIO(raw + b"\n")) -1.25 r.z>drz(not enough data in stream to read float8Nr$rrrr read_float8Cs  rmfloat8aAn 8-byte binary representation of a float, big-endian. The format is unique to Python, and shared with the struct module (format string '>d') "in theory" (the struct and pickle implementations don't share the code -- they should). It's strongly related to the IEEE-754 double format, and, in normal cases, is in fact identical to the big-endian 754 double format. On other boxes the dynamic range is limited to that of a 754 double, and "add a half and chop" rounding is used to reduce the precision to 53 bits. However, even on a 754 box, infinities, NaNs, and minus zero may not be handled correctly (may not survive roundtrip pickling intact). ) decode_longcCs.t|}||}t||kr&tdt|S)a+ >>> import io >>> read_long1(io.BytesIO(b"\x00")) 0 >>> read_long1(io.BytesIO(b"\x02\xff\x00")) 255 >>> read_long1(io.BytesIO(b"\x02\xff\x7f")) 32767 >>> read_long1(io.BytesIO(b"\x02\x00\xff")) -256 >>> read_long1(io.BytesIO(b"\x02\x00\x80")) -32768 z'not enough data in stream to read long1)r!rr%rrorErrr read_long1is   rplong1aA binary long, little-endian, using 1-byte size. This first reads one byte as an unsigned size, then reads that many bytes and interprets them as a little-endian 2's-complement long. If the size is 0, that's taken as a shortcut for the long 0L. cCsBt|}|dkrtd|||}t||kr:tdt|S)ag >>> import io >>> read_long4(io.BytesIO(b"\x02\x00\x00\x00\xff\x00")) 255 >>> read_long4(io.BytesIO(b"\x02\x00\x00\x00\xff\x7f")) 32767 >>> read_long4(io.BytesIO(b"\x02\x00\x00\x00\x00\xff")) -256 >>> read_long4(io.BytesIO(b"\x02\x00\x00\x00\x00\x80")) -32768 >>> read_long1(io.BytesIO(b"\x00\x00\x00\x00")) 0 rzlong4 byte count < 0: %dz'not enough data in stream to read long4)r*rrr%rorErrr read_long4s   rrlong4aA binary representation of a long, little-endian. This first reads four bytes as a signed size (but requires the size to be >= 0), then reads that many bytes and interprets them as a little-endian 2's-complement long. If the size is 0, that's taken as a shortcut for the int 0, although LONG1 should really be used then instead (and in any case where # of bytes < 256). c@s eZdZdZddZddZdS) StackObjectr obtypercCs*||_t|tr|D]}q||_||_dSr)r isinstancetuplervr)rr rvrZ containedrrrrs  zStackObject.__init__cCs|jSrr )rrrr__repr__szStackObject.__repr__N)rrrrrrzrrrrrts  rtrbzA Python integer object.ruZ int_or_boolz#A Python integer or boolean object.boolzA Python boolean object.rjzA Python float object.Z bytes_or_strz*A Python bytes or (Unicode) string object.byteszA Python bytes object.rRzA Python bytearray object.rUz!A Python (Unicode) string object.NonezThe Python None object.rxzA Python tuple object.listzA Python list object.dictzA Python dict object.setzA Python set object. frozensetzA Python frozenset object.bufferzA Python buffer-like object.anyzAny kind of object whatsoever.Zmarkaz'The mark' is a unique object. Opcodes that operate on a variable number of objects generally don't embed the count of objects in the opcode, or pull it off the stack. Instead the MARK opcode is used to push a special marker object on the stack, and then some other opcodes grab all the objects from the top of the stack down to (but not including) the topmost marker object. stacksliceaAn object representing a contiguous slice of the stack. This is used in conjunction with markobject, to represent all of the stack following the topmost markobject. For example, the POP_MARK opcode changes the stack from [..., markobject, stackslice] to [...] No matter how many object are on the stack after the topmost markobject, POP_MARK gets rid of all of them (including the topmost markobject too). c@seZdZdZddZdS) OpcodeInfor codearg stack_before stack_afterprotorc CsB||_||_||_|D]}q||_|D]}q&||_||_||_dSrr) rr rrrrrrxrrrrdszOpcodeInfo.__init__NrrrrrrEsrINTIaPush an integer or bool. The argument is a newline-terminated decimal literal string. The intent may have been that this always fit in a short Python int, but INT can be generated in pickles written on a 64-bit box that require a Python long on a 32-bit box. The difference between this and LONG then is that INT skips a trailing 'L', and produces a short int whenever possible. Another difference is due to that, when bool was introduced as a distinct type in 2.3, builtin names True and False were also added to 2.2.2, mapping to ints 1 and 0. For compatibility in both directions, True gets pickled as INT + "I01\n", and False as INT + "I00\n". Leading zeroes are never produced for a genuine integer. The 2.3 (and later) unpicklers special-case these and return bool instead; earlier unpicklers ignore the leading "0" and return the int. rBININTJa1Push a four-byte signed integer. This handles the full range of Python (short) integers on a 32-bit box, directly as binary bytes (1 for the opcode and 4 for the integer). If the integer is non-negative and fits in 1 or 2 bytes, pickling via BININT1 or BININT2 saves space. BININT1KzPush a one-byte unsigned integer. This is a space optimization for pickling very small non-negative ints, in range(256). BININT2MzPush a two-byte unsigned integer. This is a space optimization for pickling small positive ints, in range(256, 2**16). Integers in range(256) can also be pickled via BININT2, but BININT1 instead saves a byte. LONGLaPush a long integer. The same as INT, except that the literal ends with 'L', and always unpickles to a Python long. There doesn't seem a real purpose to the trailing 'L'. Note that LONG takes time quadratic in the number of digits when unpickling (this is simply due to the nature of decimal->binary conversion). Proto 2 added linear-time (in C; still quadratic-time in Python) LONG1 and LONG4 opcodes. LONG1Šz|Long integer using one-byte length. A more efficient encoding of a Python long; the long1 encoding says it all.LONG4‹z~Long integer using found-byte length. A more efficient encoding of a Python long; the long4 encoding says it all.STRINGSaPush a Python string object. The argument is a repr-style string, with bracketing quote characters, and perhaps embedded escapes. The argument extends until the next newline character. These are usually decoded into a str instance using the encoding given to the Unpickler constructor. or the default, 'ASCII'. If the encoding given was 'bytes' however, they will be decoded as bytes object instead. BINSTRINGTaPush a Python string object. There are two arguments: the first is a 4-byte little-endian signed int giving the number of bytes in the string, and the second is that many bytes, which are taken literally as the string content. These are usually decoded into a str instance using the encoding given to the Unpickler constructor. or the default, 'ASCII'. If the encoding given was 'bytes' however, they will be decoded as bytes object instead. SHORT_BINSTRINGUaPush a Python string object. There are two arguments: the first is a 1-byte unsigned int giving the number of bytes in the string, and the second is that many bytes, which are taken literally as the string content. These are usually decoded into a str instance using the encoding given to the Unpickler constructor. or the default, 'ASCII'. If the encoding given was 'bytes' however, they will be decoded as bytes object instead. BINBYTESBzPush a Python bytes object. There are two arguments: the first is a 4-byte little-endian unsigned int giving the number of bytes, and the second is that many bytes, which are taken literally as the bytes content. SHORT_BINBYTESCzPush a Python bytes object. There are two arguments: the first is a 1-byte unsigned int giving the number of bytes, and the second is that many bytes, which are taken literally as the string content. BINBYTES8ŽzPush a Python bytes object. There are two arguments: the first is an 8-byte unsigned int giving the number of bytes in the string, and the second is that many bytes, which are taken literally as the string content. BYTEARRAY8–zPush a Python bytearray object. There are two arguments: the first is an 8-byte unsigned int giving the number of bytes in the bytearray, and the second is that many bytes, which are taken literally as the bytearray content. NEXT_BUFFER—z"Push an out-of-band buffer object.READONLY_BUFFER˜z,Make an out-of-band buffer object read-only.NONENzPush None on the stack.NEWTRUEˆzPush True onto the stack.NEWFALSE‰zPush False onto the stack.UNICODEVzPush a Python Unicode string object. The argument is a raw-unicode-escape encoding of a Unicode string, and so may contain embedded escape sequences. The argument extends until the next newline character. SHORT_BINUNICODEŒaPush a Python Unicode string object. There are two arguments: the first is a 1-byte little-endian signed int giving the number of bytes in the string. The second is that many bytes, and is the UTF-8 encoding of the Unicode string. BINUNICODEXaPush a Python Unicode string object. There are two arguments: the first is a 4-byte little-endian unsigned int giving the number of bytes in the string. The second is that many bytes, and is the UTF-8 encoding of the Unicode string. BINUNICODE8aPush a Python Unicode string object. There are two arguments: the first is an 8-byte little-endian signed int giving the number of bytes in the string. The second is that many bytes, and is the UTF-8 encoding of the Unicode string. FLOATFaNewline-terminated decimal float literal. The argument is repr(a_float), and in general requires 17 significant digits for roundtrip conversion to be an identity (this is so for IEEE-754 double precision values, which is what Python float maps to on most boxes). In general, FLOAT cannot be used to transport infinities, NaNs, or minus zero across boxes (or even on a single box, if the platform C library can't read the strings it produces for such things -- Windows is like that), but may do less damage than BINFLOAT on boxes with greater precision or dynamic range than IEEE-754 double. BINFLOATGaFloat stored in binary form, with 8 bytes of data. This generally requires less than half the space of FLOAT encoding. In general, BINFLOAT cannot be used to transport infinities, NaNs, or minus zero, raises an exception if the exponent exceeds the range of an IEEE-754 double, and retains no more than 53 bits of precision (if there are more than that, "add a half and chop" rounding is used to cut it back to 53 significant bits). EMPTY_LIST]zPush an empty list.APPENDazAppend an object to a list. Stack before: ... pylist anyobject Stack after: ... pylist+[anyobject] although pylist is really extended in-place. APPENDSezExtend a list by a slice of stack objects. Stack before: ... pylist markobject stackslice Stack after: ... pylist+stackslice although pylist is really extended in-place. LISTlasBuild a list out of the topmost stack slice, after markobject. All the stack entries following the topmost markobject are placed into a single Python list, which single list object replaces all of the stack from the topmost markobject onward. For example, Stack before: ... markobject 1 2 3 'abc' Stack after: ... [1, 2, 3, 'abc'] EMPTY_TUPLE)zPush an empty tuple.TUPLEtavBuild a tuple out of the topmost stack slice, after markobject. All the stack entries following the topmost markobject are placed into a single Python tuple, which single tuple object replaces all of the stack from the topmost markobject onward. For example, Stack before: ... markobject 1 2 3 'abc' Stack after: ... (1, 2, 3, 'abc') TUPLE1…zBuild a one-tuple out of the topmost item on the stack. This code pops one value off the stack and pushes a tuple of length 1 whose one item is that value back onto it. In other words: stack[-1] = tuple(stack[-1:]) TUPLE2†aBuild a two-tuple out of the top two items on the stack. This code pops two values off the stack and pushes a tuple of length 2 whose items are those values back onto it. In other words: stack[-2:] = [tuple(stack[-2:])] TUPLE3‡aBuild a three-tuple out of the top three items on the stack. This code pops three values off the stack and pushes a tuple of length 3 whose items are those values back onto it. In other words: stack[-3:] = [tuple(stack[-3:])] EMPTY_DICT}zPush an empty dict.DICTdaBuild a dict out of the topmost stack slice, after markobject. All the stack entries following the topmost markobject are placed into a single Python dict, which single dict object replaces all of the stack from the topmost markobject onward. The stack slice alternates key, value, key, value, .... For example, Stack before: ... markobject 1 2 3 'abc' Stack after: ... {1: 2, 3: 'abc'} SETITEMrdzAdd a key+value pair to an existing dict. Stack before: ... pydict key value Stack after: ... pydict where pydict has been modified via pydict[key] = value. SETITEMSua\Add an arbitrary number of key+value pairs to an existing dict. The slice of the stack following the topmost markobject is taken as an alternating sequence of keys and values, added to the dict immediately under the topmost markobject. Everything at and after the topmost markobject is popped, leaving the mutated dict at the top of the stack. Stack before: ... pydict markobject key_1 value_1 ... key_n value_n Stack after: ... pydict where pydict has been modified via pydict[key_i] = value_i for i in 1, 2, ..., n, and in that order. EMPTY_SETzPush an empty set.ADDITEMSa$Add an arbitrary number of items to an existing set. The slice of the stack following the topmost markobject is taken as a sequence of items, added to the set immediately under the topmost markobject. Everything at and after the topmost markobject is popped, leaving the mutated set at the top of the stack. Stack before: ... pyset markobject item_1 ... item_n Stack after: ... pyset where pyset has been modified via pyset.add(item_i) = item_i for i in 1, 2, ..., n, and in that order. FROZENSET‘azBuild a frozenset out of the topmost slice, after markobject. All the stack entries following the topmost markobject are placed into a single Python frozenset, which single frozenset object replaces all of the stack from the topmost markobject onward. For example, Stack before: ... markobject 1 2 3 Stack after: ... frozenset({1, 2, 3}) POP0z. BUILDbaFinish building an object, via __setstate__ or dict update. Stack before: ... anyobject argument Stack after: ... anyobject where anyobject may have been mutated, as follows: If the object has a __setstate__ method, anyobject.__setstate__(argument) is called. Else the argument must be a dict, the object must have a __dict__, and the object is updated via anyobject.__dict__.update(argument) INSTiaqBuild a class instance. This is the protocol 0 version of protocol 1's OBJ opcode. INST is followed by two newline-terminated strings, giving a module and class name, just as for the GLOBAL opcode (and see GLOBAL for more details about that). self.find_class(module, name) is used to get a class object. In addition, all the objects on the stack following the topmost markobject are gathered into a tuple and popped (along with the topmost markobject), just as for the TUPLE opcode. Now it gets complicated. If all of these are true: + The argtuple is empty (markobject was at the top of the stack at the start). + The class object does not have a __getinitargs__ attribute. then we want to create an old-style class instance without invoking its __init__() method (pickle has waffled on this over the years; not calling __init__() is current wisdom). In this case, an instance of an old-style dummy class is created, and then we try to rebind its __class__ attribute to the desired class object. If this succeeds, the new instance object is pushed on the stack, and we're done. Else (the argtuple is not empty, it's not an old-style class object, or the class object does have a __getinitargs__ attribute), the code first insists that the class object have a __safe_for_unpickling__ attribute. Unlike as for the __safe_for_unpickling__ check in REDUCE, it doesn't matter whether this attribute has a true or false value, it only matters whether it exists (XXX this is a bug). If __safe_for_unpickling__ doesn't exist, UnpicklingError is raised. Else (the class object does have a __safe_for_unpickling__ attr), the class object obtained from INST's arguments is applied to the argtuple obtained from the stack, and the resulting instance object is pushed on the stack. NOTE: checks for __safe_for_unpickling__ went away in Python 2.3. NOTE: the distinction between old-style and new-style classes does not make sense in Python 3. OBJoaBuild a class instance. This is the protocol 1 version of protocol 0's INST opcode, and is very much like it. The major difference is that the class object is taken off the stack, allowing it to be retrieved from the memo repeatedly if several instances of the same class are created. This can be much more efficient (in both time and space) than repeatedly embedding the module and class names in INST opcodes. Unlike INST, OBJ takes no arguments from the opcode stream. Instead the class object is taken off the stack, immediately above the topmost markobject: Stack before: ... markobject classobject stackslice Stack after: ... new_instance_object As for INST, the remainder of the stack above the markobject is gathered into an argument tuple, and then the logic seems identical, except that no __safe_for_unpickling__ check is done (XXX this is a bug). See INST for the gory details. NOTE: In Python 2.3, INST and OBJ are identical except for how they get the class object. That was always the intent; the implementations had diverged for accidental reasons. NEWOBJaLBuild an object instance. The stack before should be thought of as containing a class object followed by an argument tuple (the tuple being the stack top). Call these cls and args. They are popped off the stack, and the value returned by cls.__new__(cls, *args) is pushed back onto the stack. NEWOBJ_EX’auBuild an object instance. The stack before should be thought of as containing a class object followed by an argument tuple and by a keyword argument dict (the dict being the stack top). Call these cls and args. They are popped off the stack, and the value returned by cls.__new__(cls, *args, *kwargs) is pushed back onto the stack. PROTO€zProtocol version indicator. For protocol 2 and above, a pickle must start with this opcode. The argument is the protocol version, an int in range(2, 256). STOP.zStop the unpickling machine. Every pickle ends with this opcode. The object at the top of the stack is popped, and that's the result of unpickling. The stack should be empty then. FRAME•zIndicate the beginning of a new frame. The unpickler may use this opcode to safely prefetch data from its underlying stream. PERSIDPaPush an object identified by a persistent ID. The pickle module doesn't define what a persistent ID means. PERSID's argument is a newline-terminated str-style (no embedded escapes, no bracketing quote characters) string, which *is* "the persistent ID". The unpickler passes this string to self.persistent_load(). Whatever object that returns is pushed on the stack. There is no implementation of persistent_load() in Python's unpickler: it must be supplied by an unpickler subclass. BINPERSIDQaXPush an object identified by a persistent ID. Like PERSID, except the persistent ID is popped off the stack (instead of being a string embedded in the opcode bytestream). The persistent ID is passed to self.persistent_load(), and whatever object that returns is pushed on the stack. See PERSID for more detail. z%repeated name %r at indices %d and %dz%repeated code %r at indices %d and %dFcCst}tjD]}td|s0|rtd|qtt|}t|t rPt |dkrf|rtd||fq| d}||vr|rtd||f||}|j |krt d|||j f||=qt d||fq|r d g}|D]\}}|d |j |fqt d |dS) Nz[A-Z][A-Z0-9_]+$z0skipping %r: it doesn't look like an opcode namerz5skipping %r: value %r doesn't look like a pickle coderDz+checking name %r w/ code %r for consistencyzBfor pickle code %r, pickle.py uses name %r but we're using name %rzPpickle.py appears to have a pickle opcode with name %r and code %r, but we don'tz=we appear to have pickle opcodes that pickle.py doesn't have:z name %r with code %r )code2opcopypickle__all__rematchprintgetattrrwr|r%r:r ritemsappendjoin)verboserr Z picklecodermsgrrrrassure_pickle_consistencysH      r#ccst|trt|}t|dr&|j}ndd}|}|d}t| d}|dur|dkrht dnt d|durxd n||f|j durd}n |j |}|r||||fVn |||fV|d kr.qq.dS) NtellcSsdSrrrrrrz_genops..rrDr&z#pickle exhausted before seeing STOPz!at position %s, opcode %r unknownz .) rw bytes_typesioBytesIOhasattrr$rrgetr:rrr)r yield_end_posZgetposposropcoderrrr_genopss.        r0cCst|S)axGenerate all the opcodes in a pickle. 'pickle' is a file-like object, or string, containing the pickle. Each opcode in the pickle is generated, from the current pickle position, stopping after a STOP opcode is delivered. A triple is generated for each opcode: opcode, arg, pos opcode is an OpcodeInfo record, describing the current opcode. If the opcode has an argument embedded in the pickle, arg is its decoded value, as a Python object. If the opcode doesn't have an argument, arg is None. If the pickle has a tell() method, pos was the value of pickle.tell() before reading the current opcode. If the pickle is a bytes object, it's wrapped in a BytesIO object, and the latter's tell() result is used. Else (the pickle doesn't have a tell(), and it's not obvious how to query its current position) pos is None. )r0)rrrrrsrcCsd}d}t}i}g}d}d}t|ddD]\}} } } d|jvrZ|| ||| fq*|jdkrt|} || ||| fq*d|jvrq*d|jvr|j|kr|j}d || <||| fq*|jd kr| |kr| }| dkr|| | }n|| | fq*|| | fq*~t} | |t | |}|d krF|j d} |D]\}} d }||ur| |vrrqN|| }| || <| d 7} n6||ur||| }n||| }t||j jk}|j j|d|r|j |n | |qN|j | S)z7Optimize a pickle string by removing unused PUT opcodesrrrr&T)r-rrNr r)Fr)force)rr0r addrr%rr)r*writer_Picklerframer start_framingputr,_FRAME_SIZE_TARGET commit_frame file_write end_framinggetvalue)rr7r,ZoldidsZnewidsopcodesrZ protoheaderr/rr.Zend_posidxoutZpickleropZ framelessr rrrr sl                    rc Csg}|duri}d}g}d|}d} |} t|D]\} } } | durVtd| d|ddt| jdd|t|| jf}t|| j}| j}| j }t|}d}t |vs| jdkr>|r>|dt ur>|r6| }|durd }nd |}|dt ur| q| z| t }Wnt y2d }Yn0nd } }| jd vr| jdkrht|}d|}n| }||vrd| } n,|sd} n |dt urd} n |d||<n*| jdvr| |vr|| g}nd| } | dus|r*|ddt| j7}| dur|dt| 7}|r*|d|7}|rt|d| t|7}t|} | dkrZ|} |d| jddd 7}t||d| rt | t||krt d|t|f|r|| d=t |vr|| ||q0td||d|rt d|dS)aKProduce a symbolic disassembly of a pickle. 'pickle' is a file-like object, or string, containing a (at least one) pickle. The pickle is disassembled from the current position, through the first STOP opcode encountered. Optional arg 'out' is a file-like object to which the disassembly is printed. It defaults to sys.stdout. Optional arg 'memo' is a Python dict, used as the pickle's memo. It may be mutated by dis(), if the pickle contains PUT or BINPUT opcodes. Passing the same memo object to another dis() call then allows disassembly to proceed across multiple pickles that were all created by the same pickler with the same memo. Ordinarily you don't need to worry about this. Optional arg 'indentlevel' is the number of blanks by which to indent a new MARK level. It defaults to 4. Optional arg 'annotate' if nonzero instructs dis() to add short description of the opcode on each line of disassembled output. The value given to 'annotate' must be an integer and is used as a hint for the column where annotation should start. The default value is 0, meaning no annotations. In addition to printing the disassembly, some sanity checks are made: + All embedded opcode arguments "make sense". + Explicit and implicit pop operations have enough items on the stack. + When an opcode implicitly refers to a markobject, a markobject is actually on the stack. + A memo entry isn't referenced before it's defined. + The markobject isn't stored in the memo. + A memo entry isn't redefined. Nr z%5d:)endfilez %-4s %s%srrz(MARK at unknown opcode offset)z (MARK at %d)rzno MARK exists on stack)rrrrrz(as %d)zmemo key %r already definedz'stack is empty -- can't store into memoz"can't store markobject in the memo)rrrz&memo key %r has never been stored into 2r)rCz3tries to pop %d items from stack with only %d itemsz highest protocol among opcodes =zstack not empty after STOP: %r)rrreprrr%r maxrrr markobjectpopindexrrsplitrextend)rr?memo indentlevelannotatestackZmaxprotoZ markstackZ indentchunkZerrormsgZannocolr/rr.linebeforeZafterZnumtopopZmarkmsgZmarkposZmemo_idxrrrr[ s-                      rc@seZdZddZdS)_ExamplecCs ||_dSr)value)rrTrrrr sz_Example.__init__N)rrrrrrrrrS srSa >>> import pickle >>> x = [1, 2, (3, 4), {b'abc': "def"}] >>> pkl0 = pickle.dumps(x, 0) >>> dis(pkl0) 0: ( MARK 1: l LIST (MARK at 0) 2: p PUT 0 5: I INT 1 8: a APPEND 9: I INT 2 12: a APPEND 13: ( MARK 14: I INT 3 17: I INT 4 20: t TUPLE (MARK at 13) 21: p PUT 1 24: a APPEND 25: ( MARK 26: d DICT (MARK at 25) 27: p PUT 2 30: c GLOBAL '_codecs encode' 46: p PUT 3 49: ( MARK 50: V UNICODE 'abc' 55: p PUT 4 58: V UNICODE 'latin1' 66: p PUT 5 69: t TUPLE (MARK at 49) 70: p PUT 6 73: R REDUCE 74: p PUT 7 77: V UNICODE 'def' 82: p PUT 8 85: s SETITEM 86: a APPEND 87: . STOP highest protocol among opcodes = 0 Try again with a "binary" pickle. >>> pkl1 = pickle.dumps(x, 1) >>> dis(pkl1) 0: ] EMPTY_LIST 1: q BINPUT 0 3: ( MARK 4: K BININT1 1 6: K BININT1 2 8: ( MARK 9: K BININT1 3 11: K BININT1 4 13: t TUPLE (MARK at 8) 14: q BINPUT 1 16: } EMPTY_DICT 17: q BINPUT 2 19: c GLOBAL '_codecs encode' 35: q BINPUT 3 37: ( MARK 38: X BINUNICODE 'abc' 46: q BINPUT 4 48: X BINUNICODE 'latin1' 59: q BINPUT 5 61: t TUPLE (MARK at 37) 62: q BINPUT 6 64: R REDUCE 65: q BINPUT 7 67: X BINUNICODE 'def' 75: q BINPUT 8 77: s SETITEM 78: e APPENDS (MARK at 3) 79: . STOP highest protocol among opcodes = 1 Exercise the INST/OBJ/BUILD family. >>> import pickletools >>> dis(pickle.dumps(pickletools.dis, 0)) 0: c GLOBAL 'pickletools dis' 17: p PUT 0 20: . STOP highest protocol among opcodes = 0 >>> from pickletools import _Example >>> x = [_Example(42)] * 2 >>> dis(pickle.dumps(x, 0)) 0: ( MARK 1: l LIST (MARK at 0) 2: p PUT 0 5: c GLOBAL 'copy_reg _reconstructor' 30: p PUT 1 33: ( MARK 34: c GLOBAL 'pickletools _Example' 56: p PUT 2 59: c GLOBAL '__builtin__ object' 79: p PUT 3 82: N NONE 83: t TUPLE (MARK at 33) 84: p PUT 4 87: R REDUCE 88: p PUT 5 91: ( MARK 92: d DICT (MARK at 91) 93: p PUT 6 96: V UNICODE 'value' 103: p PUT 7 106: I INT 42 110: s SETITEM 111: b BUILD 112: a APPEND 113: g GET 5 116: a APPEND 117: . STOP highest protocol among opcodes = 0 >>> dis(pickle.dumps(x, 1)) 0: ] EMPTY_LIST 1: q BINPUT 0 3: ( MARK 4: c GLOBAL 'copy_reg _reconstructor' 29: q BINPUT 1 31: ( MARK 32: c GLOBAL 'pickletools _Example' 54: q BINPUT 2 56: c GLOBAL '__builtin__ object' 76: q BINPUT 3 78: N NONE 79: t TUPLE (MARK at 31) 80: q BINPUT 4 82: R REDUCE 83: q BINPUT 5 85: } EMPTY_DICT 86: q BINPUT 6 88: X BINUNICODE 'value' 98: q BINPUT 7 100: K BININT1 42 102: s SETITEM 103: b BUILD 104: h BINGET 5 106: e APPENDS (MARK at 3) 107: . STOP highest protocol among opcodes = 1 Try "the canonical" recursive-object test. >>> L = [] >>> T = L, >>> L.append(T) >>> L[0] is T True >>> T[0] is L True >>> L[0][0] is L True >>> T[0][0] is T True >>> dis(pickle.dumps(L, 0)) 0: ( MARK 1: l LIST (MARK at 0) 2: p PUT 0 5: ( MARK 6: g GET 0 9: t TUPLE (MARK at 5) 10: p PUT 1 13: a APPEND 14: . STOP highest protocol among opcodes = 0 >>> dis(pickle.dumps(L, 1)) 0: ] EMPTY_LIST 1: q BINPUT 0 3: ( MARK 4: h BINGET 0 6: t TUPLE (MARK at 3) 7: q BINPUT 1 9: a APPEND 10: . STOP highest protocol among opcodes = 1 Note that, in the protocol 0 pickle of the recursive tuple, the disassembler has to emulate the stack in order to realize that the POP opcode at 16 gets rid of the MARK at 0. >>> dis(pickle.dumps(T, 0)) 0: ( MARK 1: ( MARK 2: l LIST (MARK at 1) 3: p PUT 0 6: ( MARK 7: g GET 0 10: t TUPLE (MARK at 6) 11: p PUT 1 14: a APPEND 15: 0 POP 16: 0 POP (MARK at 0) 17: g GET 1 20: . STOP highest protocol among opcodes = 0 >>> dis(pickle.dumps(T, 1)) 0: ( MARK 1: ] EMPTY_LIST 2: q BINPUT 0 4: ( MARK 5: h BINGET 0 7: t TUPLE (MARK at 4) 8: q BINPUT 1 10: a APPEND 11: 1 POP_MARK (MARK at 0) 12: h BINGET 1 14: . STOP highest protocol among opcodes = 1 Try protocol 2. >>> dis(pickle.dumps(L, 2)) 0: \x80 PROTO 2 2: ] EMPTY_LIST 3: q BINPUT 0 5: h BINGET 0 7: \x85 TUPLE1 8: q BINPUT 1 10: a APPEND 11: . STOP highest protocol among opcodes = 2 >>> dis(pickle.dumps(T, 2)) 0: \x80 PROTO 2 2: ] EMPTY_LIST 3: q BINPUT 0 5: h BINGET 0 7: \x85 TUPLE1 8: q BINPUT 1 10: a APPEND 11: 0 POP 12: h BINGET 1 14: . STOP highest protocol among opcodes = 2 Try protocol 3 with annotations: >>> dis(pickle.dumps(T, 3), annotate=1) 0: \x80 PROTO 3 Protocol version indicator. 2: ] EMPTY_LIST Push an empty list. 3: q BINPUT 0 Store the stack top into the memo. The stack is not popped. 5: h BINGET 0 Read an object from the memo and push it on the stack. 7: \x85 TUPLE1 Build a one-tuple out of the topmost item on the stack. 8: q BINPUT 1 Store the stack top into the memo. The stack is not popped. 10: a APPEND Append an object to a list. 11: 0 POP Discard the top stack item, shrinking the stack by one item. 12: h BINGET 1 Read an object from the memo and push it on the stack. 14: . STOP Stop the unpickling machine. highest protocol among opcodes = 2 a= >>> import pickle >>> import io >>> f = io.BytesIO() >>> p = pickle.Pickler(f, 2) >>> x = [1, 2, 3] >>> p.dump(x) >>> p.dump(x) >>> f.seek(0) 0 >>> memo = {} >>> dis(f, memo=memo) 0: \x80 PROTO 2 2: ] EMPTY_LIST 3: q BINPUT 0 5: ( MARK 6: K BININT1 1 8: K BININT1 2 10: K BININT1 3 12: e APPENDS (MARK at 5) 13: . STOP highest protocol among opcodes = 2 >>> dis(f, memo=memo) 14: \x80 PROTO 2 16: h BINGET 0 18: . STOP highest protocol among opcodes = 2 )Zdisassembler_testZdisassembler_memo_testcCsddl}|S)Nr)doctesttestmod)rUrrr_test srW__main__z$disassemble one or more pickle files) description pickle_filebr*zthe pickle file)typenargshelpz-oz--outputwz+the file where the output should be written)defaultr]r_z-mz--memo store_truez#preserve memo between disassemblies)actionr_z-lz --indentlevelz8the number of blanks by which to indent a new MARK levelz-az --annotatez2annotate each line with a short opcode descriptionz-pz --preamblez==> {name} <==zMif more than one pickle file is specified, print this before each disassembly)rar_z-tz--testzrun self-test suitez-vz)run verbosely; only affects self-test runryr)TT)F)F)NNr)r)__doc__r8r)rrrLrr(Z UP_TO_NEWLINEZTAKEN_FROM_ARGUMENT1ZTAKEN_FROM_ARGUMENT4ZTAKEN_FROM_ARGUMENT4UZTAKEN_FROM_ARGUMENT8Uobjectr structrr&r!r"r'r(r*r+r,r-r/r0r=r>r@rArBrCrFrGrHrIrJrKrNrOrPrQrSrTrVrWrZr[r\r]r^r_rergrhrirkrlrmrnrorprqrrrsrtrbZpyintZpylongr{Zpyinteger_or_boolZpyboolrjZpyfloatr|rUZpybytes_or_strZpystringZpybytesrRZ pybytearrayZ pyunicoder]ZpynonerxZpytupler~ZpylistrZpydictrZpysetZ pyfrozensetZpybufferZ anyobjectrHrrrr=Zname2iZcode2i enumeraterrr rrrr#r0rrrrSZ _dis_testZ _memo_testZ__test__rWrargparseArgumentParserparser add_argumentFileTypestdout parse_argsargstestrOrZ print_helpr%outputrNrMrZpreambleformatr3rrrrs< $   /                     ;                    2     &  C