/opt/imh-python/lib/python3.9/__pycache__
NameSizeModeActions
abc.cpython-39.opt-1.pyc57840644editdlrm
abc.cpython-39.opt-2.pyc32250644editdlrm
abc.cpython-39.pyc57840644editdlrm
aifc.cpython-39.opt-1.pyc252750644editdlrm
aifc.cpython-39.opt-2.pyc200680644editdlrm
aifc.cpython-39.pyc252750644editdlrm
antigravity.cpython-39.opt-1.pyc8280644editdlrm
antigravity.cpython-39.opt-2.pyc6840644editdlrm
antigravity.cpython-39.pyc8280644editdlrm
argparse.cpython-39.opt-1.pyc633120644editdlrm
argparse.cpython-39.opt-2.pyc539480644editdlrm
argparse.cpython-39.pyc634230644editdlrm
ast.cpython-39.opt-1.pyc522640644editdlrm
ast.cpython-39.opt-2.pyc437960644editdlrm
ast.cpython-39.pyc523150644editdlrm
asynchat.cpython-39.opt-1.pyc68310644editdlrm
asynchat.cpython-39.opt-2.pyc54560644editdlrm
asynchat.cpython-39.pyc68310644editdlrm
asyncore.cpython-39.opt-1.pyc160450644editdlrm
asyncore.cpython-39.opt-2.pyc148410644editdlrm
asyncore.cpython-39.pyc160450644editdlrm
base64.cpython-39.opt-1.pyc163320644editdlrm
base64.cpython-39.opt-2.pyc108120644editdlrm
base64.cpython-39.pyc164640644editdlrm
bdb.cpython-39.opt-1.pyc245490644editdlrm
bdb.cpython-39.opt-2.pyc155120644editdlrm
bdb.cpython-39.pyc245490644editdlrm
binhex.cpython-39.opt-1.pyc129740644editdlrm
binhex.cpython-39.opt-2.pyc124400644editdlrm
binhex.cpython-39.pyc129740644editdlrm
bisect.cpython-39.opt-1.pyc23590644editdlrm
bisect.cpython-39.opt-2.pyc10470644editdlrm
bisect.cpython-39.pyc23590644editdlrm
bz2.cpython-39.opt-1.pyc115540644editdlrm
bz2.cpython-39.opt-2.pyc65380644editdlrm
bz2.cpython-39.pyc115540644editdlrm
calendar.cpython-39.opt-1.pyc270400644editdlrm
calendar.cpython-39.opt-2.pyc224480644editdlrm
calendar.cpython-39.pyc270400644editdlrm
cgi.cpython-39.opt-1.pyc264910644editdlrm
cgi.cpython-39.opt-2.pyc180650644editdlrm
cgi.cpython-39.pyc264910644editdlrm
cgitb.cpython-39.opt-1.pyc101950644editdlrm
cgitb.cpython-39.opt-2.pyc85960644editdlrm
cgitb.cpython-39.pyc101950644editdlrm
chunk.cpython-39.opt-1.pyc48500644editdlrm
chunk.cpython-39.opt-2.pyc27060644editdlrm
chunk.cpython-39.pyc48500644editdlrm
cmd.cpython-39.opt-1.pyc126850644editdlrm
cmd.cpython-39.opt-2.pyc72600644editdlrm
cmd.cpython-39.pyc126850644editdlrm
code.cpython-39.opt-1.pyc99250644editdlrm
code.cpython-39.opt-2.pyc46540644editdlrm
code.cpython-39.pyc99250644editdlrm
codecs.cpython-39.opt-1.pyc338970644editdlrm
codecs.cpython-39.opt-2.pyc183250644editdlrm
codecs.cpython-39.pyc338970644editdlrm
codeop.cpython-39.opt-1.pyc64670644editdlrm
codeop.cpython-39.opt-2.pyc24070644editdlrm
codeop.cpython-39.pyc64670644editdlrm
colorsys.cpython-39.opt-1.pyc32690644editdlrm
colorsys.cpython-39.opt-2.pyc26630644editdlrm
colorsys.cpython-39.pyc32690644editdlrm
compileall.cpython-39.opt-1.pyc125970644editdlrm
compileall.cpython-39.opt-2.pyc93380644editdlrm
compileall.cpython-39.pyc125970644editdlrm
configparser.cpython-39.opt-1.pyc458780644editdlrm
configparser.cpython-39.opt-2.pyc307380644editdlrm
configparser.cpython-39.pyc458780644editdlrm
contextlib.cpython-39.opt-1.pyc195370644editdlrm
contextlib.cpython-39.opt-2.pyc139520644editdlrm
contextlib.cpython-39.pyc195470644editdlrm
contextvars.cpython-39.opt-1.pyc2540644editdlrm
contextvars.cpython-39.opt-2.pyc2540644editdlrm
contextvars.cpython-39.pyc2540644editdlrm
copy.cpython-39.opt-1.pyc69830644editdlrm
copy.cpython-39.opt-2.pyc46690644editdlrm
copy.cpython-39.pyc69830644editdlrm
copyreg.cpython-39.opt-1.pyc44200644editdlrm
copyreg.cpython-39.opt-2.pyc36180644editdlrm
copyreg.cpython-39.pyc44390644editdlrm
cProfile.cpython-39.opt-1.pyc51040644editdlrm
cProfile.cpython-39.opt-2.pyc46430644editdlrm
cProfile.cpython-39.pyc51040644editdlrm
crypt.cpython-39.opt-1.pyc35220644editdlrm
crypt.cpython-39.opt-2.pyc28600644editdlrm
crypt.cpython-39.pyc35220644editdlrm
csv.cpython-39.opt-1.pyc118580644editdlrm
csv.cpython-39.opt-2.pyc98170644editdlrm
csv.cpython-39.pyc118580644editdlrm
dataclasses.cpython-39.opt-1.pyc231940644editdlrm
dataclasses.cpython-39.opt-2.pyc197550644editdlrm
dataclasses.cpython-39.pyc231940644editdlrm
datetime.cpython-39.opt-1.pyc569650644editdlrm
datetime.cpython-39.opt-2.pyc485210644editdlrm
datetime.cpython-39.pyc581060644editdlrm
decimal.cpython-39.opt-1.pyc3680644editdlrm
decimal.cpython-39.opt-2.pyc3680644editdlrm
decimal.cpython-39.pyc3680644editdlrm
difflib.cpython-39.opt-1.pyc596080644editdlrm
difflib.cpython-39.opt-2.pyc250350644editdlrm
difflib.cpython-39.pyc596300644editdlrm
dis.cpython-39.opt-1.pyc158290644editdlrm
dis.cpython-39.opt-2.pyc120220644editdlrm
dis.cpython-39.pyc158290644editdlrm
doctest.cpython-39.opt-1.pyc758080644editdlrm
doctest.cpython-39.opt-2.pyc405020644editdlrm
doctest.cpython-39.pyc760150644editdlrm
enum.cpython-39.opt-1.pyc260290644editdlrm
enum.cpython-39.opt-2.pyc211070644editdlrm
enum.cpython-39.pyc260290644editdlrm
filecmp.cpython-39.opt-1.pyc86310644editdlrm
filecmp.cpython-39.opt-2.pyc60930644editdlrm
filecmp.cpython-39.pyc86310644editdlrm
fileinput.cpython-39.opt-1.pyc137990644editdlrm
fileinput.cpython-39.opt-2.pyc81910644editdlrm
fileinput.cpython-39.pyc137990644editdlrm
fnmatch.cpython-39.opt-1.pyc38790644editdlrm
fnmatch.cpython-39.opt-2.pyc26710644editdlrm
fnmatch.cpython-39.pyc39510644editdlrm
formatter.cpython-39.opt-1.pyc175480644editdlrm
formatter.cpython-39.opt-2.pyc151080644editdlrm
formatter.cpython-39.pyc175480644editdlrm
fractions.cpython-39.opt-1.pyc180580644editdlrm
fractions.cpython-39.opt-2.pyc108580644editdlrm
fractions.cpython-39.pyc180580644editdlrm
ftplib.cpython-39.opt-1.pyc287030644editdlrm
ftplib.cpython-39.opt-2.pyc185590644editdlrm
ftplib.cpython-39.pyc287030644editdlrm
functools.cpython-39.opt-1.pyc282850644editdlrm
functools.cpython-39.opt-2.pyc215640644editdlrm
functools.cpython-39.pyc282850644editdlrm
genericpath.cpython-39.opt-1.pyc40330644editdlrm
genericpath.cpython-39.opt-2.pyc28970644editdlrm
genericpath.cpython-39.pyc40330644editdlrm
getopt.cpython-39.opt-1.pyc62510644editdlrm
getopt.cpython-39.opt-2.pyc36970644editdlrm
getopt.cpython-39.pyc62690644editdlrm
getpass.cpython-39.opt-1.pyc42090644editdlrm
getpass.cpython-39.opt-2.pyc30230644editdlrm
getpass.cpython-39.pyc42090644editdlrm
gettext.cpython-39.opt-1.pyc180820644editdlrm
gettext.cpython-39.opt-2.pyc173910644editdlrm
gettext.cpython-39.pyc180820644editdlrm
glob.cpython-39.opt-1.pyc45140644editdlrm
glob.cpython-39.opt-2.pyc36540644editdlrm
glob.cpython-39.pyc45530644editdlrm
graphlib.cpython-39.opt-1.pyc75310644editdlrm
graphlib.cpython-39.opt-2.pyc40950644editdlrm
graphlib.cpython-39.pyc75770644editdlrm
gzip.cpython-39.opt-1.pyc185030644editdlrm
gzip.cpython-39.opt-2.pyc146360644editdlrm
gzip.cpython-39.pyc185030644editdlrm
hashlib.cpython-39.opt-1.pyc67000644editdlrm
hashlib.cpython-39.opt-2.pyc61320644editdlrm
hashlib.cpython-39.pyc67000644editdlrm
heapq.cpython-39.opt-1.pyc140490644editdlrm
heapq.cpython-39.opt-2.pyc110330644editdlrm
heapq.cpython-39.pyc140490644editdlrm
hmac.cpython-39.opt-1.pyc68090644editdlrm
hmac.cpython-39.opt-2.pyc42920644editdlrm
hmac.cpython-39.pyc68090644editdlrm
imaplib.cpython-39.opt-1.pyc402400644editdlrm
imaplib.cpython-39.opt-2.pyc275570644editdlrm
imaplib.cpython-39.pyc424210644editdlrm
imghdr.cpython-39.opt-1.pyc41490644editdlrm
imghdr.cpython-39.opt-2.pyc38340644editdlrm
imghdr.cpython-39.pyc41490644editdlrm
imp.cpython-39.opt-1.pyc98600644editdlrm
imp.cpython-39.opt-2.pyc74950644editdlrm
imp.cpython-39.pyc98600644editdlrm
inspect.cpython-39.opt-1.pyc811460644editdlrm
inspect.cpython-39.opt-2.pyc560400644editdlrm
inspect.cpython-39.pyc813880644editdlrm
io.cpython-39.opt-1.pyc34170644editdlrm
io.cpython-39.opt-2.pyc19280644editdlrm
io.cpython-39.pyc34170644editdlrm
ipaddress.cpython-39.opt-1.pyc625020644editdlrm
ipaddress.cpython-39.opt-2.pyc377390644editdlrm
ipaddress.cpython-39.pyc625020644editdlrm
keyword.cpython-39.opt-1.pyc9250644editdlrm
keyword.cpython-39.opt-2.pyc5210644editdlrm
keyword.cpython-39.pyc9250644editdlrm
linecache.cpython-39.opt-1.pyc40360644editdlrm
linecache.cpython-39.opt-2.pyc28040644editdlrm
linecache.cpython-39.pyc40360644editdlrm
locale.cpython-39.opt-1.pyc347050644editdlrm
locale.cpython-39.opt-2.pyc300870644editdlrm
locale.cpython-39.pyc347050644editdlrm
lzma.cpython-39.opt-1.pyc121030644editdlrm
lzma.cpython-39.opt-2.pyc59050644editdlrm
lzma.cpython-39.pyc121030644editdlrm
mailbox.cpython-39.opt-1.pyc605550644editdlrm
mailbox.cpython-39.opt-2.pyc539510644editdlrm
mailbox.cpython-39.pyc606090644editdlrm
mailcap.cpython-39.opt-1.pyc65180644editdlrm
mailcap.cpython-39.opt-2.pyc50010644editdlrm
mailcap.cpython-39.pyc65180644editdlrm
mimetypes.cpython-39.opt-1.pyc160520644editdlrm
mimetypes.cpython-39.opt-2.pyc100370644editdlrm
mimetypes.cpython-39.pyc160520644editdlrm
modulefinder.cpython-39.opt-1.pyc160910644editdlrm
modulefinder.cpython-39.opt-2.pyc151820644editdlrm
modulefinder.cpython-39.pyc161370644editdlrm
netrc.cpython-39.opt-1.pyc37920644editdlrm
netrc.cpython-39.opt-2.pyc35540644editdlrm
netrc.cpython-39.pyc37920644editdlrm
nntplib.cpython-39.opt-1.pyc317720644editdlrm
nntplib.cpython-39.opt-2.pyc201720644editdlrm
nntplib.cpython-39.pyc317720644editdlrm
ntpath.cpython-39.opt-1.pyc145510644editdlrm
ntpath.cpython-39.opt-2.pyc125000644editdlrm
ntpath.cpython-39.pyc145510644editdlrm
nturl2path.cpython-39.opt-1.pyc17550644editdlrm
nturl2path.cpython-39.opt-2.pyc13360644editdlrm
nturl2path.cpython-39.pyc17550644editdlrm
numbers.cpython-39.opt-1.pyc123280644editdlrm
numbers.cpython-39.opt-2.pyc83710644editdlrm
numbers.cpython-39.pyc123280644editdlrm
opcode.cpython-39.opt-1.pyc52320644editdlrm
opcode.cpython-39.opt-2.pyc50910644editdlrm
opcode.cpython-39.pyc52320644editdlrm
operator.cpython-39.opt-1.pyc137930644editdlrm
operator.cpython-39.opt-2.pyc114040644editdlrm
operator.cpython-39.pyc137930644editdlrm
optparse.cpython-39.opt-1.pyc478970644editdlrm
optparse.cpython-39.opt-2.pyc355820644editdlrm
optparse.cpython-39.pyc479520644editdlrm
os.cpython-39.opt-1.pyc316390644editdlrm
os.cpython-39.opt-2.pyc194490644editdlrm
os.cpython-39.pyc316550644editdlrm
pathlib.cpython-39.opt-1.pyc447340644editdlrm
pathlib.cpython-39.opt-2.pyc358740644editdlrm
pathlib.cpython-39.pyc447340644editdlrm
pdb.cpython-39.opt-1.pyc474820644editdlrm
pdb.cpython-39.opt-2.pyc334110644editdlrm
pdb.cpython-39.pyc475210644editdlrm
pickle.cpython-39.opt-1.pyc470220644editdlrm
pickle.cpython-39.opt-2.pyc411510644editdlrm
pickle.cpython-39.pyc471080644editdlrm
pickletools.cpython-39.opt-1.pyc663020644editdlrm
pickletools.cpython-39.opt-2.pyc572090644editdlrm
pickletools.cpython-39.pyc671160644editdlrm
pipes.cpython-39.opt-1.pyc78040644editdlrm
pipes.cpython-39.opt-2.pyc49370644editdlrm
pipes.cpython-39.pyc78040644editdlrm
pkgutil.cpython-39.opt-1.pyc185750644editdlrm
pkgutil.cpython-39.opt-2.pyc118760644editdlrm
pkgutil.cpython-39.pyc185750644editdlrm
platform.cpython-39.opt-1.pyc264250644editdlrm
platform.cpython-39.opt-2.pyc183570644editdlrm
platform.cpython-39.pyc264250644editdlrm
plistlib.cpython-39.opt-1.pyc235050644editdlrm
plistlib.cpython-39.opt-2.pyc211460644editdlrm
plistlib.cpython-39.pyc235560644editdlrm
poplib.cpython-39.opt-1.pyc136660644editdlrm
poplib.cpython-39.opt-2.pyc87360644editdlrm
poplib.cpython-39.pyc136660644editdlrm
posixpath.cpython-39.opt-1.pyc103380644editdlrm
posixpath.cpython-39.opt-2.pyc86230644editdlrm
posixpath.cpython-39.pyc103380644editdlrm
pprint.cpython-39.opt-1.pyc168060644editdlrm
pprint.cpython-39.opt-2.pyc146490644editdlrm
pprint.cpython-39.pyc168390644editdlrm
profile.cpython-39.opt-1.pyc142110644editdlrm
profile.cpython-39.opt-2.pyc112330644editdlrm
profile.cpython-39.pyc143990644editdlrm
pstats.cpython-39.opt-1.pyc237610644editdlrm
pstats.cpython-39.opt-2.pyc208520644editdlrm
pstats.cpython-39.pyc237610644editdlrm
pty.cpython-39.opt-1.pyc39650644editdlrm
pty.cpython-39.opt-2.pyc31200644editdlrm
pty.cpython-39.pyc39650644editdlrm
pyclbr.cpython-39.opt-1.pyc104580644editdlrm
pyclbr.cpython-39.opt-2.pyc68570644editdlrm
pyclbr.cpython-39.pyc104580644editdlrm
pydoc.cpython-39.opt-1.pyc852930644editdlrm
pydoc.cpython-39.opt-2.pyc754110644editdlrm
pydoc.cpython-39.pyc853250644editdlrm
py_compile.cpython-39.opt-1.pyc73730644editdlrm
py_compile.cpython-39.opt-2.pyc36350644editdlrm
py_compile.cpython-39.pyc73730644editdlrm
queue.cpython-39.opt-1.pyc108720644editdlrm
queue.cpython-39.opt-2.pyc65350644editdlrm
queue.cpython-39.pyc108720644editdlrm
quopri.cpython-39.opt-1.pyc56120644editdlrm
quopri.cpython-39.opt-2.pyc45760644editdlrm
quopri.cpython-39.pyc57560644editdlrm
random.cpython-39.opt-1.pyc220520644editdlrm
random.cpython-39.opt-2.pyc146050644editdlrm
random.cpython-39.pyc220520644editdlrm
re.cpython-39.opt-1.pyc143710644editdlrm
re.cpython-39.opt-2.pyc60330644editdlrm
re.cpython-39.pyc143710644editdlrm
reprlib.cpython-39.opt-1.pyc53160644editdlrm
reprlib.cpython-39.opt-2.pyc51600644editdlrm
reprlib.cpython-39.pyc53160644editdlrm
rlcompleter.cpython-39.opt-1.pyc58150644editdlrm
rlcompleter.cpython-39.opt-2.pyc31520644editdlrm
rlcompleter.cpython-39.pyc58150644editdlrm
runpy.cpython-39.opt-1.pyc85180644editdlrm
runpy.cpython-39.opt-2.pyc69520644editdlrm
runpy.cpython-39.pyc85180644editdlrm
sched.cpython-39.opt-1.pyc66420644editdlrm
sched.cpython-39.opt-2.pyc36140644editdlrm
sched.cpython-39.pyc66420644editdlrm
secrets.cpython-39.opt-1.pyc21890644editdlrm
secrets.cpython-39.opt-2.pyc11310644editdlrm
secrets.cpython-39.pyc21890644editdlrm
selectors.cpython-39.opt-1.pyc172540644editdlrm
selectors.cpython-39.opt-2.pyc131450644editdlrm
selectors.cpython-39.pyc172540644editdlrm
shelve.cpython-39.opt-1.pyc95530644editdlrm
shelve.cpython-39.opt-2.pyc54020644editdlrm
shelve.cpython-39.pyc95530644editdlrm
shlex.cpython-39.opt-1.pyc77430644editdlrm
shlex.cpython-39.opt-2.pyc71850644editdlrm
shlex.cpython-39.pyc77430644editdlrm
shutil.cpython-39.opt-1.pyc380230644editdlrm
shutil.cpython-39.opt-2.pyc262320644editdlrm
shutil.cpython-39.pyc380230644editdlrm
signal.cpython-39.opt-1.pyc28320644editdlrm
signal.cpython-39.opt-2.pyc26080644editdlrm
signal.cpython-39.pyc28320644editdlrm
site.cpython-39.opt-1.pyc167980644editdlrm
site.cpython-39.opt-2.pyc112620644editdlrm
site.cpython-39.pyc167980644editdlrm
smtpd.cpython-39.opt-1.pyc265330644editdlrm
smtpd.cpython-39.opt-2.pyc239130644editdlrm
smtpd.cpython-39.pyc265330644editdlrm
smtplib.cpython-39.opt-1.pyc358940644editdlrm
smtplib.cpython-39.opt-2.pyc195320644editdlrm
smtplib.cpython-39.pyc359390644editdlrm
sndhdr.cpython-39.opt-1.pyc70020644editdlrm
sndhdr.cpython-39.opt-2.pyc57270644editdlrm
sndhdr.cpython-39.pyc70020644editdlrm
socket.cpython-39.opt-1.pyc291580644editdlrm
socket.cpython-39.opt-2.pyc202630644editdlrm
socket.cpython-39.pyc291820644editdlrm
socketserver.cpython-39.opt-1.pyc255240644editdlrm
socketserver.cpython-39.opt-2.pyc148080644editdlrm
socketserver.cpython-39.pyc255240644editdlrm
sre_compile.cpython-39.opt-1.pyc148670644editdlrm
sre_compile.cpython-39.opt-2.pyc144530644editdlrm
sre_compile.cpython-39.pyc150620644editdlrm
sre_constants.cpython-39.opt-1.pyc63260644editdlrm
sre_constants.cpython-39.opt-2.pyc59010644editdlrm
sre_constants.cpython-39.pyc63260644editdlrm
sre_parse.cpython-39.opt-1.pyc215750644editdlrm
sre_parse.cpython-39.opt-2.pyc215270644editdlrm
sre_parse.cpython-39.pyc216120644editdlrm
ssl.cpython-39.opt-1.pyc446010644editdlrm
ssl.cpython-39.opt-2.pyc336230644editdlrm
ssl.cpython-39.pyc446010644editdlrm
stat.cpython-39.opt-1.pyc43810644editdlrm
stat.cpython-39.opt-2.pyc35980644editdlrm
stat.cpython-39.pyc43810644editdlrm
statistics.cpython-39.opt-1.pyc317940644editdlrm
statistics.cpython-39.opt-2.pyc159210644editdlrm
statistics.cpython-39.pyc319880644editdlrm
string.cpython-39.opt-1.pyc71740644editdlrm
string.cpython-39.opt-2.pyc60680644editdlrm
string.cpython-39.pyc71740644editdlrm
stringprep.cpython-39.opt-1.pyc99550644editdlrm
stringprep.cpython-39.opt-2.pyc97370644editdlrm
stringprep.cpython-39.pyc99950644editdlrm
struct.cpython-39.opt-1.pyc3150644editdlrm
struct.cpython-39.opt-2.pyc3150644editdlrm
struct.cpython-39.pyc3150644editdlrm
subprocess.cpython-39.opt-1.pyc440790644editdlrm
subprocess.cpython-39.opt-2.pyc320410644editdlrm
subprocess.cpython-39.pyc441550644editdlrm
sunau.cpython-39.opt-1.pyc168260644editdlrm
sunau.cpython-39.opt-2.pyc122360644editdlrm
sunau.cpython-39.pyc168260644editdlrm
symbol.cpython-39.opt-1.pyc25880644editdlrm
symbol.cpython-39.opt-2.pyc25120644editdlrm
symbol.cpython-39.pyc25880644editdlrm
symtable.cpython-39.opt-1.pyc110970644editdlrm
symtable.cpython-39.opt-2.pyc103680644editdlrm
symtable.cpython-39.pyc111750644editdlrm
sysconfig.cpython-39.opt-1.pyc160760644editdlrm
sysconfig.cpython-39.opt-2.pyc136980644editdlrm
sysconfig.cpython-39.pyc160760644editdlrm
tabnanny.cpython-39.opt-1.pyc70740644editdlrm
tabnanny.cpython-39.opt-2.pyc61410644editdlrm
tabnanny.cpython-39.pyc70740644editdlrm
tarfile.cpython-39.opt-1.pyc630680644editdlrm
tarfile.cpython-39.opt-2.pyc490170644editdlrm
tarfile.cpython-39.pyc630830644editdlrm
telnetlib.cpython-39.opt-1.pyc183400644editdlrm
telnetlib.cpython-39.opt-2.pyc108380644editdlrm
telnetlib.cpython-39.pyc183400644editdlrm
tempfile.cpython-39.opt-1.pyc233750644editdlrm
tempfile.cpython-39.opt-2.pyc168490644editdlrm
tempfile.cpython-39.pyc233750644editdlrm
textwrap.cpython-39.opt-1.pyc134720644editdlrm
textwrap.cpython-39.opt-2.pyc62630644editdlrm
textwrap.cpython-39.pyc135300644editdlrm
this.cpython-39.opt-1.pyc12680644editdlrm
this.cpython-39.opt-2.pyc12680644editdlrm
this.cpython-39.pyc12680644editdlrm
threading.cpython-39.opt-1.pyc416310644editdlrm
threading.cpython-39.opt-2.pyc244440644editdlrm
threading.cpython-39.pyc420940644editdlrm
timeit.cpython-39.opt-1.pyc117650644editdlrm
timeit.cpython-39.opt-2.pyc59110644editdlrm
timeit.cpython-39.pyc117650644editdlrm
token.cpython-39.opt-1.pyc25050644editdlrm
token.cpython-39.opt-2.pyc24720644editdlrm
token.cpython-39.pyc25050644editdlrm
tokenize.cpython-39.opt-1.pyc171460644editdlrm
tokenize.cpython-39.opt-2.pyc133820644editdlrm
tokenize.cpython-39.pyc171740644editdlrm
trace.cpython-39.opt-1.pyc197480644editdlrm
trace.cpython-39.opt-2.pyc167330644editdlrm
trace.cpython-39.pyc197480644editdlrm
traceback.cpython-39.opt-1.pyc204100644editdlrm
traceback.cpython-39.opt-2.pyc114570644editdlrm
traceback.cpython-39.pyc204100644editdlrm
tracemalloc.cpython-39.opt-1.pyc179440644editdlrm
tracemalloc.cpython-39.opt-2.pyc165310644editdlrm
tracemalloc.cpython-39.pyc179440644editdlrm
tty.cpython-39.opt-1.pyc10870644editdlrm
tty.cpython-39.opt-2.pyc9780644editdlrm
tty.cpython-39.pyc10870644editdlrm
turtle.cpython-39.opt-1.pyc1295450644editdlrm
turtle.cpython-39.opt-2.pyc679520644editdlrm
turtle.cpython-39.pyc1295450644editdlrm
types.cpython-39.opt-1.pyc92300644editdlrm
types.cpython-39.opt-2.pyc80080644editdlrm
types.cpython-39.pyc92300644editdlrm
typing.cpython-39.opt-1.pyc714510644editdlrm
typing.cpython-39.opt-2.pyc501970644editdlrm
typing.cpython-39.pyc715810644editdlrm
uu.cpython-39.opt-1.pyc36750644editdlrm
uu.cpython-39.opt-2.pyc34310644editdlrm
uu.cpython-39.pyc36750644editdlrm
uuid.cpython-39.opt-1.pyc224060644editdlrm
uuid.cpython-39.opt-2.pyc146930644editdlrm
uuid.cpython-39.pyc225190644editdlrm
warnings.cpython-39.opt-1.pyc131750644editdlrm
warnings.cpython-39.opt-2.pyc109000644editdlrm
warnings.cpython-39.pyc136140644editdlrm
wave.cpython-39.opt-1.pyc178530644editdlrm
wave.cpython-39.opt-2.pyc118610644editdlrm
wave.cpython-39.pyc178820644editdlrm
weakref.cpython-39.opt-1.pyc202800644editdlrm
weakref.cpython-39.opt-2.pyc169950644editdlrm
weakref.cpython-39.pyc202940644editdlrm
webbrowser.cpython-39.opt-1.pyc171260644editdlrm
webbrowser.cpython-39.opt-2.pyc147160644editdlrm
webbrowser.cpython-39.pyc171430644editdlrm
xdrlib.cpython-39.opt-1.pyc82520644editdlrm
xdrlib.cpython-39.opt-2.pyc77670644editdlrm
xdrlib.cpython-39.pyc82520644editdlrm
zipapp.cpython-39.opt-1.pyc59940644editdlrm
zipapp.cpython-39.opt-2.pyc48180644editdlrm
zipapp.cpython-39.pyc59940644editdlrm
zipfile.cpython-39.opt-1.pyc588820644editdlrm
zipfile.cpython-39.opt-2.pyc500240644editdlrm
zipfile.cpython-39.pyc589030644editdlrm
zipimport.cpython-39.opt-1.pyc171680644editdlrm
zipimport.cpython-39.opt-2.pyc136500644editdlrm
zipimport.cpython-39.pyc172460644editdlrm
_aix_support.cpython-39.opt-1.pyc30550644editdlrm
_aix_support.cpython-39.opt-2.pyc17000644editdlrm
_aix_support.cpython-39.pyc30550644editdlrm
_bootlocale.cpython-39.opt-1.pyc12260644editdlrm
_bootlocale.cpython-39.opt-2.pyc10010644editdlrm
_bootlocale.cpython-39.pyc12360644editdlrm
_bootsubprocess.cpython-39.opt-1.pyc22540644editdlrm
_bootsubprocess.cpython-39.opt-2.pyc20250644editdlrm
_bootsubprocess.cpython-39.pyc22540644editdlrm
_collections_abc.cpython-39.opt-1.pyc317470644editdlrm
_collections_abc.cpython-39.opt-2.pyc262570644editdlrm
_collections_abc.cpython-39.pyc317470644editdlrm
_compat_pickle.cpython-39.opt-1.pyc54440644editdlrm
_compat_pickle.cpython-39.opt-2.pyc54440644editdlrm
_compat_pickle.cpython-39.pyc54970644editdlrm
_compression.cpython-39.opt-1.pyc42070644editdlrm
_compression.cpython-39.opt-2.pyc39930644editdlrm
_compression.cpython-39.pyc42070644editdlrm
_markupbase.cpython-39.opt-1.pyc76290644editdlrm
_markupbase.cpython-39.opt-2.pyc72510644editdlrm
_markupbase.cpython-39.pyc77800644editdlrm
_osx_support.cpython-39.opt-1.pyc115920644editdlrm
_osx_support.cpython-39.opt-2.pyc89010644editdlrm
_osx_support.cpython-39.pyc115920644editdlrm
_pydecimal.cpython-39.opt-1.pyc1606220644editdlrm
_pydecimal.cpython-39.opt-2.pyc790050644editdlrm
_pydecimal.cpython-39.pyc1606220644editdlrm
_pyio.cpython-39.opt-1.pyc744720644editdlrm
_pyio.cpython-39.opt-2.pyc515790644editdlrm
_pyio.cpython-39.pyc744920644editdlrm
_py_abc.cpython-39.opt-1.pyc46430644editdlrm
_py_abc.cpython-39.opt-2.pyc34300644editdlrm
_py_abc.cpython-39.pyc46650644editdlrm
_sitebuiltins.cpython-39.opt-1.pyc35100644editdlrm
_sitebuiltins.cpython-39.opt-2.pyc29860644editdlrm
_sitebuiltins.cpython-39.pyc35100644editdlrm
_strptime.cpython-39.opt-1.pyc160240644editdlrm
_strptime.cpython-39.opt-2.pyc122960644editdlrm
_strptime.cpython-39.pyc160240644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-1.pyc227680644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.opt-2.pyc227680644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-39.pyc227680644editdlrm
_threading_local.cpython-39.opt-1.pyc65150644editdlrm
_threading_local.cpython-39.opt-2.pyc31950644editdlrm
_threading_local.cpython-39.pyc65150644editdlrm
_weakrefset.cpython-39.opt-1.pyc77330644editdlrm
_weakrefset.cpython-39.opt-2.pyc77330644editdlrm
_weakrefset.cpython-39.pyc77330644editdlrm
__future__.cpython-39.opt-1.pyc41350644editdlrm
__future__.cpython-39.opt-2.pyc21630644editdlrm
__future__.cpython-39.pyc41350644editdlrm
__phello__.foo.cpython-39.opt-1.pyc1380644editdlrm
__phello__.foo.cpython-39.opt-2.pyc1380644editdlrm
__phello__.foo.cpython-39.pyc1380644editdlrm
Edit: /opt/imh-python/lib/python3.9/__pycache__/pickletools.cpython-39.pyc (67116B)
a _h.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`t|tsJ||_t|tr8|dks<|tttttfvs>> import io >>> read_uint1(io.BytesIO(b'\xff')) 255 rz'not enough data in stream to read uint1N)read ValueErrorfdatarrr read_uint1s r)uint1r#zOne-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 r1z>> 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 %rr#zno string quotes around %rrascii)readlineendswithr% startswithcodecs escape_decodedecode)r'rB stripquotesr(qrrr read_stringnl;s"      rEstringnlzA newline-terminated string. This is a repr-style string, with embedded escapes, and bracketing quotes. cCs t|ddS)NF)rC)rEr'rrrread_stringnl_noescapetsrHstringnl_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)rHrGrrrread_stringnl_noescape_pairsrJstringnl_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. cCsLt|}|dksJ||}t||kr4|dStd|t|fdS)z >>> import io >>> read_string1(io.BytesIO(b"\x00")) '' >>> read_string1(io.BytesIO(b"\x03abcdef")) 'abc' rlatin-1z2expected %d bytes in a string1, but only %d remainN)r)r$r-rBr%r'r r(rrr read_string1s      rNstring1zA 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: %drLz2expected %d bytes in a string4, but only %d remainN)r2r%r$r-rBrMrrr read_string4s      rPstring4zA 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. cCsFt|}|dksJ||}t||kr.|Std|t|fdS)z >>> import io >>> read_bytes1(io.BytesIO(b"\x00")) b'' >>> read_bytes1(io.BytesIO(b"\x03abcdef")) b'abc' rz1expected %d bytes in a bytes1, but only %d remainN)r)r$r-r%rMrrr read_bytes1s     rRbytes1zA 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. cCs\t|}|dksJ|tjkr*td|||}t||krD|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 rz#bytes4 byte count > sys.maxsize: %dz1expected %d bytes in a bytes4, but only %d remainN)r4sysmaxsizer%r$r-rMrrr read_bytes4s       rVbytes4zA 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. cCs\t|}|dksJ|tjkr*td|||}t||krD|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 rz#bytes8 byte count > sys.maxsize: %dz1expected %d bytes in a bytes8, but only %d remainN)r7rTrUr%r$r-rMrrr read_bytes8s      rXbytes8zA 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. cCs`t|}|dksJ|tjkr*td|||}t||krHt|Std|t|fdS)a >>> 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 rz'bytearray8 byte count > sys.maxsize: %dz5expected %d bytes in a bytearray8, but only %d remainN)r7rTrUr%r$r- bytearrayrMrrrread_bytearray89s      r[ 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 r9z4no newline found when trying to read unicodestringnlNrzraw-unicode-escape)r=r>r%rr&rrrread_unicodestringnl[s   r]unicodestringnlzA newline-terminated Unicode string. This is raw-unicode-escape encoded, so consists of printable ASCII characters, and may contain embedded escape sequences. cCsNt|}|dksJ||}t||kr6t|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 rutf-8 surrogatepassz9expected %d bytes in a unicodestring1, but only %d remainN)r)r$r-rr%rMrrrread_unicodestring1us     raunicodestring1aAA 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. cCsdt|}|dksJ|tjkr*td|||}t||krLt|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 rz+unicodestring4 byte count > sys.maxsize: %dr_r`z9expected %d bytes in a unicodestring4, but only %d remainN)r4rTrUr%r$r-rrMrrrread_unicodestring4s       rcunicodestring4aAA 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. cCsdt|}|dksJ|tjkr*td|||}t||krLt|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 rz+unicodestring8 byte count > sys.maxsize: %dr_r`z9expected %d bytes in a unicodestring8, but only %d remainN)r7rTrUr%r$r-rrMrrrread_unicodestring8s       reunicodestring8aBA 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' FrBrCs00s01TrErr'srrrread_decimalnl_shorts rkcCs2t|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 FrgrNLrhrirrrread_decimalnl_longs  rmdecimalnl_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 Frg)rEfloatrirrr read_floatnl-srqfloatnlaA 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 r6z>drz(not enough data in stream to read float8Nr,r&rrr read_float8Cs  rsfloat8aAn 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)r$r-r%rurMrrr read_long1is   rvlong1aA 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)r2r%r$r-rurMrrr read_long4s   rxlong4aA 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 obtypercCslt|tsJ||_t|ts,t|ts,Jt|trN|D]}t|ts:Jq:||_t|tsbJ||_dSN)rrr typetupler|r)rr r|rZ containedrrrrs zStackObject.__init__cCs|jSr}r )rrrr__repr__szStackObject.__repr__N)rrr r!rrrrrrrzs  rzrzA Python integer object.r{Z int_or_boolz#A Python integer or boolean object.boolzA Python boolean object.rpzA Python float object.Z bytes_or_strz*A Python bytes or (Unicode) string object.byteszA Python bytes object.rZzA Python bytearray object.rz!A Python (Unicode) string object.NonezThe Python None object.rzA 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 Cst|tsJ||_t|ts"Jt|dks2J||_|dusNt|tsNJ||_t|tsbJ|D]}t|tsfJqf||_ t|tsJ|D]}t|tsJq||_ t|t rd|krt j ksnJ||_t|tsJ||_dS)Nr#r)rrr r-rr rrrzrrrpickleHIGHEST_PROTOCOLrr) rr rrrrrrxrrrrds&&zOpcodeInfo.__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'} SETITEMrjzAdd 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 namer#z5skipping %r: value %r doesn't look like a pickle coderLz+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 )code2opcopyr__all__rematchprintgetattrrrr-rBr r%itemsappendjoin)verboser r 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.|j d ksJqq.dS) NtellcSsdSr}rrrrrz_genops..r#rLr.z#pickle exhausted before seeing STOPz!at position %s, opcode %r unknownz .r)r bytes_typesioBytesIOhasattrr,r$rgetrBr%rrr )r( yield_end_posZgetposposropcoderrrr_genopss0        r8cCst|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. )r8)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)r5rrNrr1Fr#)force)rr8r addr'r-rr1r2writer_Picklerframer start_framingputr4_FRAME_SIZE_TARGET commit_frame file_write end_framinggetvalue)rr?r4ZoldidsZnewidsopcodesrZ protoheaderr7rr6Zend_posidxoutZpickleropZ framelessr(rrrr sl                    rc Cslg}|duri}d}g}d|}d} |} t|D]\} } } | durVtd| d|ddt| jdd|t|| jf}t|| j}| j}| j }t|}d}t |vs| jdkrv|rv|dt urvt |vsJt |vr|dt usJ|rn| }|dur d }nd |}|dt ur,| q| z| t }Wn(tyj| jdksbJd }Yn0nd } }| jd vr| jdkrt|}d|}n| dusJ| }||vrd| } n,|sd} n |dt urd} n |d||<n<| jdvr0| |vr(t|dksJ|| g}nd| } | dus@|r|ddt| j7}| durp|dt| 7}|r|d|7}|r|d| t|7}t|} | dkr|} |d| jddd 7}t||d| rt| t||krtd|t|f|r|| d=t |vr>> 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}|Sr)doctesttestmod)r]rrr_test sr___main__z$disassemble one or more pickle files) description pickle_filebr*zthe pickle file)r~nargshelpz-oz--outputwz+the file where the output should be written)defaultr~rfz-mz--memo store_truez#preserve memo between disassemblies)actionrfz-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)rhrfz-tz--testzrun self-test suitez-vz)run verbosely; only affects self-test runrr)TT)F)F)NNr1r)__doc__r@r1rr"rTr!r0rrrrrobjectr structr"r.r)r*r/r0r2r3r4r5r7r8rErFrHrIrJrKrNrOrPrQrRrSrVrWrXrYr[r\r]r^rarbrcrdrerfrkrmrnrorqrrrsrtrurvrwrxryrzrZpyintZpylongrZpyinteger_or_boolZpyboolrpZpyfloatrrZpybytes_or_strZpystringZpybytesrZZ pybytearrayZ pyunicoder~ZpynonerZpytuplerZpylistrZpydictrZpysetZ pyfrozensetZpybufferZ anyobjectrPrrrrEZname2iZcode2i enumerater rr r%rrr+r8rrrr[Z _dis_testZ _memo_testZ__test__r_rargparseArgumentParserparser add_argumentFileTypestdout parse_argsargstestrWrb print_helpr-outputrVrUr'Zpreambleformatr;rrrrs< $   /                     ;                    2     &  C