Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
§ àÀ f¥nã ó(— ddlZddlZddlZddlZddlZgd¢ZejZdZdZdZ dZ dZ Gd„d e ¦«Z dd lmZd „Ze d d ed¬¦«Zd„Ze dded¬¦«Zd„Ze dded¬¦«Zd„Ze dded¬¦«Zd„Ze dded¬¦«Z�dˆd „Ze d!eed"¬¦«Zd#„Ze d$eed%¬¦«Zd&„Ze d'eed(¬¦«Z d)„Z!e d*ee!d+¬¦«Z"d,„Z#e d-e e#d.¬¦«Z$d/„Z%e d0ee%d1¬¦«Z&d2„Z'e d3e e'd4¬¦«Z(d5„Z)e d6e e)d7¬¦«Z*d8„Z+e d9e e+d:¬¦«Z,d;„Z-e d„Z/e d?ee/d@¬¦«Z0dA„Z1e dBe e1dC¬¦«Z2dD„Z3e dEe e3dF¬¦«Z4dG„Z5dH„Z6e dIee5dJ¬¦«Z7e dKee6dL¬¦«Z8dM„Z9e dNee9dO¬¦«Z:dP„Z;e dQde;dR¬¦«Ze dUee>dV¬¦«Z?dW„Z@e dXe e@dY¬¦«ZAGdZ„d[e ¦«ZBeBd\eCd]¬^¦«xZDZEeBd_eCeFfd`¬^¦«ZGeBdaeFdb¬^¦«ZHeBdceIdd¬^¦«ZJeBdeeKeLfdf¬^¦«xZMZNeBdgeKdh¬^¦«ZOeBdiePdj¬^¦«ZQeBdkeLdl¬^¦«ZReBdmeSd¦«dn¬^¦«ZTeBdoeUdp¬^¦«ZVeBdqeWdr¬^¦«ZXeBdseYdt¬^¦«ZZeBdue[dv¬^¦«Z\eBdwe[dx¬^¦«Z]eBdye dz¬^¦«Z^eBd{e d|¬^¦«Z_eBd}eBd~¬^¦«Z`eBdeBd€¬^¦«ZaGd�„d‚e ¦«ZbebZcgecdƒd„e7geGgdd…¬†¦«‘ecd‡dˆegeDgd d‰¬†¦«‘ecdŠd‹egeDgd dŒ¬†¦«‘ecd�dŽegeDgd d�¬†¦«‘ecd�d‘e8geDgdd’¬†¦«‘ecd“d”e?geDgdd•¬†¦«‘ecd–d—eAgeDgdd˜¬†¦«‘ecd™dšegeMgdd›¬†¦«‘ecdœd�e$geMgd dž¬†¦«‘ecdŸd e"geMgd d¡¬†¦«‘ecd¢d£e(geOgd¤d¥¬†¦«‘ecd¦d§e&geOgd¤d¨¬†¦«‘ecd©dªe*geOgdd«¬†¦«‘ecd¬d­e,geQgd®d¯¬†¦«‘ecd°d±dge^gd®d²¬†¦«‘ecd³d´de^ge^gd®dµ¬†¦«‘ecd¶d·dgeTgdd¸¬†¦«‘ecd¹dºdgeHgdd»¬†¦«‘ecd¼d½dgeHgdd¾¬†¦«‘ecd¿dÀe.geRgddÁ¬†¦«‘ecdÂdÃe0geRgddĬ†¦«‘ecdÅdÆe2geRgd dǬ†¦«‘ecdÈdÉe4geRgddʬ†¦«‘ecdËdÌe:geJgddͬ†¦«‘ecdÎdÏede_e_ge_gd�d?¬†¦«‘ec�d@�dAde_e_e_ge_gd�dB¬†¦«‘ec�dC�dDeggd�dE¬†¦«‘ec�dF�dGde_ggd�dH¬†¦«‘ec�dI�dJeggd�dK¬†¦«‘ec�dL�dMege_gd�dN¬†¦«‘ec�dO�dPde_ge_gd �dQ¬†¦«‘Zd[ciZeiZfeged¦«D]o\ZhZieijjeevr"ek�dReijjeeeijjehfz¦«‚eijlefvr"ek�dSeijlefeijlehfz¦«‚eheeeijj<ehefeijl<Œp[e[f[h[iiZmedD] Zieiemeijl<Œ [i�d‰�dU„Znen¦«[n�d‰�dV„Zo�dW„Zp�dX„Zq�dŠ�dY„ZrG�dZ„�d[¦«Zs�d\Zt�d]Zueteu�d^œZv�d_„Zwex�d`k�r�ddlyZyeyjz�da�¬b¦«Z{e{ |�dc�dd�de�¬f¦«e{ |�dg�dh�di�¬j¦«e{ |�dk�dl�dm�dn�¬o¦«e{ |�dp�dqdeC�dr�¬s¦«e{ |�dt�du�dm�dv�¬o¦«e{ |�dw�dx�dy�dz�¬{¦«e{ |�d|�d}�dm�d~�¬o¦«e{ |�d�dm�d€�¬o¦«e{ }¦«Z~e~jr ew¦«dSe~j€se{ �¦«dSe~j‚r�d�ndZ‚e~jƒrindZƒe~j„€ej…Z„ne†e~j„�d‚¦«Z„ e~j€D]¶Z‡eˆe~j€¦«d krAe‡�dƒkr�d„ne‡Zje~j‰ Šej�¬…¦«Z‰e„ ‹e‰�d†z¦«e‡�dƒkrerejŒj�e„eƒe~jŽe‚¦«Œ}e†e‡�d‡¦«5Z�ere�e„eƒe~jŽe‚¦«ddd¦«n #1swxYwYŒ· e„ej…ure„ �¦«dSdS#e„ej…ure„ �¦«wwxYwdS(‹éN)ÚdisÚgenopsÚoptimizeéÿÿÿÿéþÿÿÿéýÿÿÿéüÿÿÿéûÿÿÿcó—eZdZdZd„ZdS)ÚArgumentDescriptor©ÚnameÚnÚreaderÚdoccó>—||_||_||_||_dS©Nr )Úselfrrrrs ú2/opt/alt/python311/lib64/python3.11/pickletools.pyÚ__init__zArgumentDescriptor.__init__Ás&€àˆŒ ðˆŒàˆŒ ðˆŒˆˆóN©Ú__name__Ú __module__Ú __qualname__Ú __slots__r©rrr r ®s*€€€€€ð€Ið$ððððrr )Úunpackcó`— | d¦«}|r|dStd¦«‚)Nérz'not enough data in stream to read uint1)ÚreadÚ ValueError©ÚfÚdatas rÚ read_uint1r&Ôs8€ðð �6Š6�!‰9Œ9€DØ ðØ�AŒwˆÝ Ð>Ñ ?Ô ?Ð?rÚuint1r zOne-byte unsigned integer.r cóž— | d¦«}t|¦«dkrtd|¦«dStd¦«‚)NézÑ ?Ô ?Ð?rÚuint2r)z)Two-byte unsigned integer, little-endian.cóž— | d¦«}t|¦«dkrtd|¦«dStd¦«‚)NézÔ >Ð>rÚint4r1z8Four-byte signed integer, little-endian, 2's complement.cóž— | d¦«}t|¦«dkrtd|¦«dStd¦«‚)Nr1zñ?ô?ð?à˜A˜b˜D”z�Ø�ð  õÐ9¸DÑ@ÑAÔAÐ Aà ð=ÝÔ# DÑ)Ô)¨!Ô,×3Ò3°GÑ<Ô<ˆØ €KrÚstringnlz¢A newline-terminated string. This is a repr-style string, with embedded escapes, and bracketing quotes. có$—t|d¬¦«S)NF)rF)rH©r$s rÚread_stringnl_noescaperLts€Ý ˜¨Ð .Ñ .Ô .Ð.rÚ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. cóF— t|¦«›dt|¦«›�S)Nú )rLrKs rÚread_stringnl_noescape_pairrP‚s.€ðõ -¨QÑ/Ô/Ð/Ð/Õ1GÈÑ1JÔ1JÐ1JÐ KÐKrÚstringnl_noescape_paira¶A 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. cóÞ— t|¦«}| |¦«}t|¦«|kr| d¦«St d|t|¦«fz¦«‚)Núlatin-1z2expected %d bytes in a string1, but only %d remain)r&r!r+rEr"©r$rr%s rÚ read_string1rU™sk€ðõ �1‰ Œ €Aà �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~Ø�{Š{˜9Ñ%Ô%Ð%Ý ÐIØ�˜T™œ�^ñ$ñ %ô %ð%rÚstring1zÍA 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. có— t|¦«}|dkrtd|z¦«‚| |¦«}t|¦«|kr| d¦«Std|t|¦«fz¦«‚)Nrzstring4 byte count < 0: %drSz2expected %d bytes in a string4, but only %d remain)r2r"r!r+rErTs rÚ read_string4rX¶sˆ€ð õ �!‰ Œ €A؈1‚u€uÝÐ5¸Ñ9Ñ:Ô:Ð:Ø �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~Ø�{Š{˜9Ñ%Ô%Ð%Ý ÐIØ�˜T™œ�^ñ$ñ %ô %ð%rÚstring4zÙA 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. có¸— t|¦«}| |¦«}t|¦«|kr|Std|t|¦«fz¦«‚)Nz1expected %d bytes in a bytes1, but only %d remain)r&r!r+r"rTs rÚ read_bytes1r[Øs^€ðõ �1‰ Œ €Aà �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~؈ Ý ÐHØ�˜T™œ�^ñ$ñ %ô %ð%rÚbytes1z·A 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. cóü— t|¦«}|tjkrtd|z¦«‚| |¦«}t |¦«|kr|Std|t |¦«fz¦«‚)Nz#bytes4 byte count > sys.maxsize: %dz1expected %d bytes in a bytes4, but only %d remain)r5ÚsysÚmaxsizer"r!r+rTs rÚ read_bytes4r`ôs}€ð õ �1‰ Œ €Aà�3Œ;‚€ÝÐ>ÀÑBÑCÔCÐCØ �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~؈ Ý ÐHØ�˜T™œ�^ñ$ñ %ô %ð%rÚbytes4zÅA 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. cóü— t|¦«}|tjkrtd|z¦«‚| |¦«}t |¦«|kr|Std|t |¦«fz¦«‚)Nz#bytes8 byte count > sys.maxsize: %dz1expected %d bytes in a bytes8, but only %d remain)r9r^r_r"r!r+rTs rÚ read_bytes8rcs}€ð õ �1‰ Œ €Aà�3Œ;‚€ÝÐ>ÀÑBÑCÔCÐCØ �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~؈ Ý ÐHØ�˜T™œ�^ñ$ñ %ô %ð%rÚbytes8zÆA 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. có— t|¦«}|tjkrtd|z¦«‚| |¦«}t |¦«|krt |¦«Std|t |¦«fz¦«‚)Nz'bytearray8 byte count > sys.maxsize: %dz5expected %d bytes in a bytearray8, but only %d remain)r9r^r_r"r!r+Ú bytearrayrTs rÚread_bytearray8rg9s„€ð õ �1‰ Œ €Aà�3Œ;‚€ÝÐBÀQÑFÑGÔGÐGØ �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~ݘ‰ŒÐÝ ÐLØ�˜T™œ�^ñ$ñ %ô %ð%rÚ bytearray8zÃA 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. có¨— | ¦«}| d¦«std¦«‚|dd…}t|d¦«S)Nr<z4no newline found when trying to read unicodestringnlrzraw-unicode-escape)r@rAr"Ústrr#s rÚread_unicodestringnlrk[s_€ðð �:Š:‰<Œ<€DØ �=Š=˜Ñ Ô ð,Ýð+ñ,ô,ð ,à ���Œ9€DÝ ˆtÐ)Ñ *Ô *Ð*rÚunicodestringnlzøA newline-terminated Unicode string. This is raw-unicode-escape encoded, so consists of printable ASCII characters, and may contain embedded escape sequences. cóÖ— t|¦«}| |¦«}t|¦«|krt|dd¦«St d|t|¦«fz¦«‚)Núutf-8Ú surrogatepassz9expected %d bytes in a unicodestring1, but only %d remain)r&r!r+rjr"rTs rÚread_unicodestring1rpusm€ðõ" �1‰ Œ €Aà �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~Ý�4˜ /Ñ2Ô2Ð2Ý ðØ!"¥C¨¡I¤I ñ/ñ 0ô 0ð0rÚunicodestring1aAA 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. có— t|¦«}|tjkrtd|z¦«‚| |¦«}t |¦«|krt |dd¦«Std|t |¦«fz¦«‚)Nz+unicodestring4 byte count > sys.maxsize: %drnroz9expected %d bytes in a unicodestring4, but only %d remain)r5r^r_r"r!r+rjrTs rÚread_unicodestring4rsœóŒ€ðõ" �1‰ Œ €Aà�3Œ;‚€ÝÐFÈÑJÑKÔKÐKØ �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~Ý�4˜ /Ñ2Ô2Ð2Ý ðØ!"¥C¨¡I¤I ñ/ñ 0ô 0ð0rÚ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. có— t|¦«}|tjkrtd|z¦«‚| |¦«}t |¦«|krt |dd¦«Std|t |¦«fz¦«‚)Nz+unicodestring8 byte count > sys.maxsize: %drnroz9expected %d bytes in a unicodestring8, but only %d remain)r9r^r_r"r!r+rjrTs rÚread_unicodestring8rwÅrtrÚ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. cóf— t|dd¬¦«}|dkrdS|dkrdSt|¦«S)NF©rErFs00s01T©rHÚint©r$Úss rÚread_decimalnl_shortrîsF€ð õ �a °5Ð9Ñ9Ô9€Að ˆE‚z€z؈uØ ˆeŠˆØˆtå ˆq‰6Œ6€Mrcóv— t|dd¬¦«}|dd…dkr |dd…}t|¦«S)NFrzróLr{r}s rÚread_decimalnl_longr‚sF€ðõ �a °5Ð9Ñ9Ô9€A؈ˆˆ„v�‚~€~Ø ˆcˆrˆcŒFˆÝ ˆq‰6Œ6€MrÚdecimalnl_shortaŸA 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_longz»A newline-terminated decimal integer literal. This has a trailing 'L', and can represent integers of any size. cóF— t|dd¬¦«}t|¦«S)NFrz)rHÚfloatr}s rÚ read_floatnlr‡-s(€ðõ �a °5Ð9Ñ9Ô9€AÝ �‰8Œ8€OrÚfloatnla�A 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). cóž— | d¦«}t|¦«dkrtd|¦«dStd¦«‚)Nr8z>drz(not enough data in stream to read float8r*r#s rÚ read_float8rŠCsK€ðð �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~Ý�t˜TÑ"Ô" 1Ô%Ð%Ý Ð?Ñ @Ô @Ð@rÚfloat8aAn 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_longcó®— t|¦«}| |¦«}t|¦«|krtd¦«‚t |¦«S)Nz'not enough data in stream to read long1)r&r!r+r"rŒrTs rÚ read_long1rŽisO€ð õ �1‰ Œ €AØ �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~ÝÐBÑCÔCÐCÝ �tÑ Ô ÐrÚlong1aA 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. cóÞ— t|¦«}|dkrtd|z¦«‚| |¦«}t|¦«|krtd¦«‚t |¦«S)Nrzlong4 byte count < 0: %dz'not enough data in stream to read long4)r2r"r!r+rŒrTs rÚ read_long4r‘‰sl€ð õ �!‰ Œ €A؈1‚u€uÝÐ3°aÑ7Ñ8Ô8Ð8Ø �6Š6�!‰9Œ9€DÝ ˆ4�y„y�A‚~€~ÝÐBÑCÔCÐCÝ �tÑ Ô ÐrÚlong4aŒA 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ó—eZdZdZd„Zd„ZdS)Ú StackObject©rÚobtypercód—||_t|t¦«r|D]}Œ||_||_dSr)rÚ isinstanceÚtupler–r)rrr–rÚ containeds rrzStackObject.__init__ÁsB€àˆŒ õ �f�eÑ $Ô $ð 3Ø#ð 3ð 3� � àˆŒ ðˆŒˆˆrcó—|jSr©r)rs rÚ__repr__zStackObject.__repr__Îs €ØŒyÐrN)rrrrrr�rrrr”r”´s9€€€€€ð €Ið ð ð ðððððrr”r|zA Python integer object.r•Ú int_or_boolz#A Python integer or boolean object.ÚboolzA Python boolean object.r†zA Python float object.Ú bytes_or_strz*A Python bytes or (Unicode) string object.ÚbyteszA Python bytes object.rfzA Python bytearray object.rjz!A Python (Unicode) string object.ÚNonezThe Python None object.r™zA 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.Úmarkaz'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. Ú stackslicea¢An 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ó—eZdZdZd„ZdS)Ú OpcodeInfo©rÚcodeÚargÚ stack_beforeÚ stack_afterÚprotorcó|—||_||_||_|D]}Œ||_|D]}Œ||_||_||_dSrr­) rrr®r¯r°r±r²rÚxs rrzOpcodeInfo.__init__dsi€ðˆŒ ðˆŒ ðˆŒðð .ð .ˆAˆAà(ˆÔðð .ð .ˆAˆAà&ˆÔðˆŒ ðˆŒˆˆrNrrrrr¬r¬Es*€€€€€ð€Ið:ððððrr¬ÚINTÚIa¤Push 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. r­ÚBININTÚJa1Push 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. ÚBININT1ÚKzŒPush a one-byte unsigned integer. This is a space optimization for pickling very small non-negative ints, in range(256). ÚBININT2ÚMzëPush 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. ÚLONGÚLaÇPush 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 four-byte length. A more efficient encoding of a Python long; the long4 encoding says it all.ÚSTRINGÚSa¾Push 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. Ú BINSTRINGÚTaíPush 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_BINSTRINGÚUaáPush 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. ÚBINBYTESÚBézïPush 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_BINBYTESÚCzâPush 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õÂŽzñPush 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õ–ézûPush 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.ÚNONEÚNzPush None on the stack.ÚNEWTRUEõˆzPush True onto the stack.ÚNEWFALSEõ‰zPush False onto the stack.ÚUNICODEÚVzçPush 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. Ú BINUNICODEÚXaPush 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. ÚFLOATÚFa�Newline-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. ÚBINFLOATÚGaÜFloat 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.ÚAPPENDÚaz­Append an object to a list. Stack before: ... pylist anyobject Stack after: ... pylist+[anyobject] although pylist is really extended in-place. ÚAPPENDSÚezÇExtend a list by a slice of stack objects. Stack before: ... pylist markobject stackslice Stack after: ... pylist+stackslice although pylist is really extended in-place. ÚLISTÚlasBuild 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.ÚTUPLEÚtavBuild 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õÂ…züBuild 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.ÚDICTÚda²Build 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'} ÚSETITEMr~zºAdd 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. ÚSETITEMSÚua\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}) ÚPOPÚ0z. ÚBUILDÚbaÕFinish 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) ÚINSTÚiaqBuild 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. ÚOBJÚoa§Build 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õ€z®Protocol 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ú.zÏStop 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õ•z�Indicate the beginning of a new frame. The unpickler may use this opcode to safely prefetch data from its underlying stream. ÚPERSIDÚPaPush 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. Ú BINPERSIDÚQaXPush 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 %dFc ó —t ¦«}tjD]ü}t jd|¦«s|rt d|z¦«Œ,tt|¦«}t|t¦«rt|¦«dkr|rt d|›d|›d�¦«Œ‚|  d¦«}||vrL|rt d|›d |›d �¦«||}|j |krtd |›d |›d |j ›�¦«‚||=Œçtd|›d|›d�¦«‚|r_dg}| ¦«D]%\}}| d|j ›d|›�¦«Œ&td |¦«¦«‚dS)Nz[A-Z][A-Z0-9_]+$z0skipping %r: it doesn't look like an opcode namer z skipping z: value z doesn't look like a pickle coderSzchecking name z w/ code z for consistencyzfor pickle code z, pickle.py uses name z but we're using name z4pickle.py appears to have a pickle opcode with name z and code z, but we don'tz=we appear to have pickle opcodes that pickle.py doesn't have:z name z with code ú )Úcode2opÚcopyÚpickleÚ__all__ÚreÚmatchÚprintÚgetattrr˜r¡r+rErr"ÚitemsÚappendÚjoin)Úverboser@rÚ picklecoderþÚmsgr®s rÚassure_pickle_consistencyrM°sò€å �<Š<‰>Œ>€DÝ”ð1ð1ˆÝŒxÐ*¨DÑ1Ô1ð Øð QÝÐHÈ4ÑOÑPÔPÐPØ Ý�V TÑ*Ô*ˆ ݘ*¥eÑ,Ô,ð µ°J±´À1Ò0DÐ0DØð 5Ý�Ø!%   z z zð3ñ5ô5ð5à Ø×&Ò& yÑ1Ô1ˆ Ø ˜Ð Ð Øð )Ý�Ø�d�d˜J˜J˜Jð(ñ)ô)ð)à�ZÔ ˆAØŒv˜Š~ˆ~Ý �jØ>H¸j¸jØ>B¸d¸dØ>?¼f¸fð"FñGôGðGð �ZÐ Ð å�*à"˜d˜d J J Jð0ñ1ô1ð 1ð ð)ØNÐOˆØ—z’z‘|”|ð Dð D‰GˆD�!Ø �JŠJˆJ°Q´V°V°V¸T¸TÐBÑ CÔ CÐ CÐ CݘŸš 3™œÑ(Ô(Ð(ð )ð)rc#óK—t|t¦«rtj|¦«}t |d¦«r|j}nd„} |¦«}| d¦«}t |  d¦«¦«}|€/|dkrtd¦«‚td|€d n|›d |›d �¦«‚|j €d}n|j   |¦«}|r||||¦«fV—n|||fV—|d krdSŒÄ) NÚtellcó—dSrrrrrúz_genops..ãs€˜€rTr rSrz#pickle exhausted before seeing STOPz at position z z , opcode z unknownó.) r˜Ú bytes_typesÚioÚBytesIOÚhasattrrOr!r?ÚgetrEr"r¯r)r%Ú yield_end_posÚgetposÚposr®Úopcoder¯s rÚ_genopsr\ÜsEèè€Ý�$� Ñ$Ô$ð ÝŒz˜$ÑÔˆåˆt�VÑÔðØ”ˆˆà�ˆð؈f‰hŒhˆØ�yŠy˜‰|Œ|ˆÝ—’˜TŸ[š[¨Ñ3Ô3Ñ4Ô4ˆØ ˆ>Ø�sŠ{ˆ{Ý Ð!FÑGÔGÐGå �jØ03°   ÀÐ!DÐ!DØ!%  ð"'ñ(ô(ð(ð Œ:Р؈CˆCà”*×#Ò# DÑ)Ô)ˆCØ ð #ؘ#˜s F F¡H¤HÐ,Ð ,Ð ,Ð ,Ð ,à˜#˜sÐ"Ð "Ð "Ð "Ø �4Š<ˆ<à ˆEð+rcó"— t|¦«Sr)r\)rAs rrrüs€ðõ, �6‰?Œ?Ðrcó:— d}d}t¦«}i}g}d}d}t|d¬¦«D�]\}} } } d|jvr-| | ¦«| || f¦«Œ>|jdkrÑ *Ô *Ð *Ñ *Øõ Œ*‰,Œ,€Cà‡I‚IˆkÑÔÐÝŒo˜c 5Ñ)Ô)€GØ �‚z€zØŒ×$Ò$Ñ&Ô&Ð&Ø €CØð 𠉈ˆC؈ Ø �ˆ9ˆ9ؘ&Ð Ð ØØ—;’;˜sÑ#Ô#ˆD؈F�3‰KØ �1‰HˆCˆCØ �3ˆYˆYØ—;’;˜v cœ{Ñ+Ô+ˆDˆDà�R˜�V”9ˆDݘD™ œ  G¤NÔ$EÒEˆIØŒ×#Ò#¨)Ð#Ñ4Ô4Ð4Ø ð Ø ŒN× %Ò % dÑ +Ô +Ð +Ð +à �MŠM˜$Ñ Ô Ð Ð Ø „N×ÒÑ Ô Ð Ø �<Š<‰>Œ>Ðrcól— g}|€i}d}g}d|z}d} |} t|¦«D�]è\} } } | �td| zd|¬¦«t| j¦«dd…d›d|t |¦«z›| j›�}t || j¦«}| j}| j }t |¦«}d}t|vs| jdkrª|r¨|dtur™ |r’|  ¦«}|€d }nd |z}|dtur#|  ¦«|dtu°#|  ¦« |  t¦«}n#t$rd }YnwxYwd x} }| jd vrO| jdkrt |¦«}d|z}n| }||vrd| z} n?|sd} n:|dturd} n(|d||<n| jdvr| |vr || g}nd| z} | €|r>|ddt | j¦«z zz }| �|dt| ¦«zz }|r|d|zz }|rV|d| t |¦«z zz }t |¦«} | dkr|} |d| j dd¦«d zz }t||¬¦«| rt| ¦«‚t |¦«|kr!td|t |¦«fz¦«‚|r|| d…=t|vr| | ¦«| |¦«�Œêtd||¬¦«|rtd|z¦«‚dS)NrrOz%5d:)ÚendÚfiler Ú4rFz(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>)rwz3tries to pop %d items from stack with only %d itemsz highest protocol among opcodes =zstack not empty after STOP: %r)rrEÚreprr®r+rÚmaxr²r°r±Ú markobjectÚpopÚindexr"rÚsplitrHÚextend)rArqÚmemoÚ indentlevelÚannotateÚstackÚmaxprotoÚ markstackÚ indentchunkÚerrormsgÚannocolr[r¯rZÚlineÚbeforeÚafterÚnumtopopÚmarkmsgÚmarkposÚmemo_idxs rrr[ s(€ð&ðX €EØ €|؈؀HØ€Iؘ Ñ#€KØ€HØ€GÝ" 6™NœNð_ñ_ш��SØ ˆ?Ý �&˜3‘, C¨cÐ 2Ñ 2Ô 2Ð 2å" 6¤;Ñ/Ô/°°"°Ô5Ð5Ð5Ð5Ø)­C° ©N¬NÑ:Ð:Ø$œk˜kð+ˆõ�x ¤Ñ.Ô.ˆØÔ$ˆØÔ"ˆÝ�v‘;”;ˆðˆÝ ˜Ð Ð  F¤K°5Ò$8Ð$8Ø$)ð%9à$)¨"¤IµÐ$;Ð$;ð 4ðð ?Ø#Ÿ-š-™/œ/�Ø�?Ø?�G�Gà,¨wÑ6�Gà˜B”i¥zÐ1Ð1Ø—I’I‘K”K�Kð˜B”i¥zÐ1Ð1à— ’ ‘ ” � ð!Ø%Ÿ|š|­JÑ7Ô7�H�HøÝ!ð!ð!ð!à �H�H�Hð!øøøð&?Ð>�˜7ð Œ;ÐEÐ EÐ EØŒ{˜iÒ'Ð'ݘt™9œ9�Ø# hÑ.��ð�ؘ4ÐÐØ8¸3Ñ>��Øð +ØD��Ø�r”�jÐ(Ð(Ø?��à!& r¤��X‘�Ø Œ[Ð<Ð <Ð <Ø�dˆ{ˆ{à˜cœ˜ ��àCÀcÑI�à ˆ?˜gˆ?à �C˜2¥ F¤KÑ 0Ô 0Ñ0Ñ1Ñ 1ˆD؈ؘ�d 3™iœi™Ñ'�Øð &ؘ˜g™ Ñ%�Ø ð 7Ø �C˜7¥S¨¡Y¤YÑ.Ñ/Ñ /ˆDå˜$‘i”iˆGؘŠ|ˆ|Ø"�Ø �C˜&œ*×*Ò*¨4°Ñ3Ô3°AÔ6Ñ6Ñ 6ˆDÝ ˆd˜ÐÑÔÐà ð 'õ˜XÑ&Ô&Ð &õ ˆu‰:Œ:˜Ò Ð Ýð-Ø08½#¸e¹*¼*Ð/EñFñGôGð Gà ð "Ø�x�i�j�jÐ!Ý ˜Ð Ð à × Ò ˜SÑ !Ô !Ð !à � Š �UÑÔÐÑå Ð ,¨h¸SÐAÑAÔAÐAØ ðCÝÐ9¸EÑAÑBÔBÐBðCðCsÄ<EÅ E&Å%E&có—eZdZd„ZdS)Ú_Examplecó—||_dSr)Úvalue)rr•s rrz_Example.__init__÷ s €ØˆŒ ˆ ˆ rN)rrrrrrrr“r“ö s#€€€€€ðððððrr“aî >>> 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 )Údisassembler_testÚdisassembler_memo_testcó2—ddl}| ¦«S)Nr)ÚdoctestÚtestmod)r™s rÚ_testr› s€Ø€N€N€NØ �?Š?Ñ Ô ÐrÚ__main__z$disassemble one or more pickle files)Ú descriptionÚ pickle_fileÚ*zthe pickle file)ÚnargsÚhelpz-oz--outputz+the file where the output should be written)r¡z-mz--memoÚ store_truez#preserve memo between disassemblies)Úactionr¡z-lz --indentlevelz8the number of blanks by which to indent a new MARK level)ÚdefaultÚtyper¡z-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)r¤r¡z-tz--testzrun self-test suitez-vz)run verbosely; only affects self-test runéÚwú-zrœr>Úrb)TT)F)NNr1r)‘rCrTrArCr^rBrSÚ UP_TO_NEWLINEÚTAKEN_FROM_ARGUMENT1ÚTAKEN_FROM_ARGUMENT4ÚTAKEN_FROM_ARGUMENT4UÚTAKEN_FROM_ARGUMENT8UÚobjectr Ústructrr,r&r'r-r/r2r3r5r6r9r:rHrIrLrMrPrQrUrVrXrYr[r\r`rarcrdrgrhrkrlrprqrsrurwrxrr‚rƒr„r‡rˆrŠr‹rŒrŽr�r‘r’r”r|ÚpyintÚpylongrŸÚpyinteger_or_boolÚpyboolr†Úpyfloatr¡rjÚpybytes_or_strÚpystringÚpybytesrfÚ pybytearrayÚ pyunicoder¥Úpynoner™Úpytupler£Úpylistr¤Úpydictr¥ÚpysetÚ pyfrozensetÚpybufferÚ anyobjectr}rªr¬r¶rmÚname2iÚcode2iÚ enumerater,rþrr"r®r?rMr\rrrr“Ú _dis_testÚ _memo_testÚ__test__r›rÚargparseÚArgumentParserÚparserÚ add_argumentÚ parse_argsÚargsÚtestržÚ print_helpr„r‚ÚoutputÚstdoutÚopenr¯r+ÚpreambleÚformatraÚstdinr§rƒr$ÚcloserrrúrØsÐðð ð€ € € Ø € € € Ø € € € Ø € € € Ø € € € à 'Ð 'Ð '€àÔ € ð`€ ðÐØÐØÐØÐð"ð"ð"ð"ð"˜ñ"ô"ð"ðH%Ð$Ð$Ð$Ð$Ð$ð @ð @ð @ð ÐØØØØ,ð  .ñ .ô .€ð @ð @ð @ð ÐØØØØ;ð  =ñ =ô =€ð ?ð ?ð ?ðÐØØ ØØIð KñKôK€ð @ð @ð @ð ÐØØØØ<ð  >ñ >ô >€ð @ð @ð @ð ÐØØØØ=ð  ?ñ ?ô ?€ñ-ð-ð-ð-ð^ Ð ØØØ#ðð  ñ ô €ð/ð/ð/ð'Ð&Ø0Ø'Ø5ðð ñ ô ÐðLðLðLð,Ð+Ø":Ø,Ø$?ð"!ð "ñ "ô "Ðð%ð%ð%ð" Ð ØØ$Ø!ðð ñ ô €ð%ð%ð%ð, Ð ØØ$Ø!ðð ñ ô €ð%ð%ð%ð" Ð ØØ$Ø ðð  ñ ô €ð%ð%ð%ð. Ð ØØ%Ø ðð  ñ ô €ð%ð%ð%ð0 Ð ØØ%Ø ðð  ñ ô €ð%ð%ð%ð0 Ð ØØ%Ø$ðð ñô€ ð +ð +ð +ð%Ð$Ø,Ø%Ø1ðð ñ ô €ð0ð0ð0ð4$Ð#Ø)Ø*Ø.ðð ñ ô €ð0ð0ð0ð8$Ð#Ø)Ø+Ø.ðð ñ ô €ð0ð0ð0ð8$Ð#Ø)Ø+Ø.ðð ñ ô €ðððð,ððð"%Ð$Ø,Ø%Ø1ðð ñ ô €ð$Ð#Ø*Ø$Ø/ðð ñô€ðððð Ð ØØØ!ðð ñ ô €ð Að Að Að Ð ØØØð ð  ñ ô €ð(ÐÐÐÐÐðððð* ÐØ ØØ ð ð ñ ô €ðððð. ÐØ ØØ ð ð ñ ô €ð(ðððð�&ñôðð<�Ø Ø Ø"ð$ñ$ô$ð$€ˆð  �KØ Ø �ˆ;Ø-ð/ñ/ô/Ðð ˆØ Ø Ø"ð $ñ $ô $€ð ˆ+Ø Ø Ø ð "ñ "ô "€ð (˜KØ Ø �3ˆ<Ø4ð6ñ6ô6ð6€�ð ˆ+Ø Ø Ø ð "ñ "ô "€ð ˆkØ Ø Ø$ð&ñ&ô&€ ð ˆKØ Ø Ø+ð -ñ -ô -€ ð ˆØ Ø ˆ4�‰:Œ:Ø!ð #ñ #ô #€ð ˆ+Ø Ø Ø ð "ñ "ô "€ð ˆØ Ø Øð !ñ !ô !€ð ˆØ Ø Øð !ñ !ô !€ð ˆ Ø Ø Øð ñ ô €ð ˆkØ Ø Ø$ð&ñ&ô&€ ð ˆ;Ø Ø Ø&ð (ñ (ô (€ð ˆKØ Ø Ø(ð *ñ *ô *€ ð ˆ[Ø Ø ð ð ñ ô € ðˆ[Ø Ø ð ðñô€ ð*9ð9ð9ð9ð9�ñ9ô9ð9ðv€ðQ ð€Aˆ5Ø Ø ØØ$Ð%Ø ð ð  ñ ô ð Q ð:€Aˆ8Ø Ø ØØ�'Ø ð ð  ñ  ô  ð;Q ðV€Aˆ9Ø Ø ØØ�'Ø ð ð  ñ  ô  ðWQ ðn€Aˆ9Ø Ø ØØ�'Ø ð ð  ñ  ô  ðoQ ðH€Aˆ6Ø Ø ØØ�'Ø ð ð  ñ ô ðIQ ðl€Aˆ7Ø Ø ØØ�'Ø ð ð ñ ô ðmQ ðB€Aˆ7Ø Ø ØØ�'Ø ð ð ñ ô ðCQ ð\€Aˆ8Ø Ø ØØ!Ð"Ø ð ð  ñ ô ð]Q ð|€Aˆ;Ø Ø ØØ!Ð"Ø ð ð  ñ ô ð}Q ð^€AÐ Ø Ø ØØ!Ð"Ø ð ð  ñ ô ð_Q ðD€Aˆ:Ø Ø ØØ�)Ø ð ð  ñ  ô  ðEQ ð^€AÐ Ø Ø ØØ�)Ø ð ð  ñ  ô  ð_Q ðx€Aˆ;Ø Ø ØØ�)Ø ð ð  ñ  ô  ðyQ ðV€Aˆ<Ø Ø ØØ�-Ø ð ð  ñ  ô  ðWQ ðt€Aˆ=Ø Ø ØØ�*Ø Ø .ð 0ñ0ô0ðuQ ðD€AÐ Ø Ø Ø�:Ø�*Ø Ø 8ð :ñ:ô:ðEQ ðX€Aˆ6Ø Ø ØØ�(Ø Ø #ð %ñ%ô%ðYQ ðn€Aˆ9Ø Ø ØØ�(Ø Ø %ð 'ñ'ô'ðoQ ð~€Aˆ:Ø Ø ØØ�(Ø Ø &ð (ñ(ô(ðQ ðR€Aˆ9Ø Ø ØØ�+Ø ð ð  ñ  ô  ðSQ ðl€AÐ Ø Ø ØØ�+Ø ð ð  ñ  ô  ðmQ ðF €Aˆ<Ø Ø ØØ�+Ø ð ð  ñ  ô  ðG Q ð` €Aˆ=Ø Ø ØØ�+Ø ð ð  ñ  ô  ða Q ð~ €Aˆ7Ø Ø ØØ�)Ø ð ð  ñ ô ð Q ðf €Aˆ:Ø Ø ØØ�)Ø ð ð  ñ ô ðg Q ðJ €Aˆ<Ø Ø ØØ�(Ø Ø ð !ñ!ô!ðK Q ðZ €Aˆ8Ø Ø Ø˜IÐ&Ø�(Ø ð ð  ñ  ô  ð[ Q ðv €Aˆ9Ø Ø Ø˜J¨ Ð3Ø�(Ø ð ð  ñ  ô  ðw Q ðR €Aˆ6Ø Ø Ø  Ð+Ø�(Ø ð ð  ñ ô ðS Q ðv €Aˆ=Ø Ø ØØ�)Ø Ø ð "ñ"ô"ðw Q ðF €Aˆ7Ø Ø Ø  Ð+Ø�)Ø ð ð  ñ ô ðG Q ðf €Aˆ8Ø Ø Ø�;Ø�)Ø ð ð  ñ  ô  ðg Q ðD€Aˆ8Ø Ø Ø˜yÐ)Ø�)Ø ð ð  ñ  ô  ðEQ ðb€Aˆ8Ø Ø Ø˜y¨)Ð4Ø�)Ø ð ð  ñ  ô  ðcQ ðD€Aˆ<Ø Ø ØØ�(Ø Ø ð !ñ!ô!ðEQ ðT€Aˆ6Ø Ø Ø  Ð+Ø�(Ø ð ð  ñ ô ðUQ ðv€Aˆ9Ø Ø Ø˜I yÐ1Ø�(Ø ð ð  ñ  ô  ðwQ ðR€Aˆ:Ø Ø Ø˜J¨ Ð3Ø�(Ø ð ð  ñ ô ðSQ ð@€Aˆ;Ø Ø ØØ�'Ø Ø ð  ñ ô ðAQ ðP€Aˆ:Ø Ø Ø˜: zÐ2Ø�'Ø ð ð  ñ ô ðQQ ð|€Aˆ;Ø Ø Ø  Ð+Ø�-Ø ñ ð  ñ ô ð}Q ð`€A‰5Ù Ø Ø�;ØØ Ù Hð JñJôJðaQ ðp€A‰5Ù Ø Ø�;ؘiÐ(Ø Ù Ið KñKôKðqQ ð@€A‰6Ù Ø ØØ�,Ø ñ ð  ñ  ô  ðAQ ðZ€A‰:Ù Ø Ø  Ð+ØØ ñ ð  ñ  ô  ð[Q ðz€A‰5Ù Ø ØØ�+Ø ñ ð  ñ  ô  ð{Q ðT€A‰8Ù Ø ØØ�+Ø ñ ð  ñ  ô  ðUQ ðl€A‰=Ù Ø ØØ�+Ø ñ ð  ñ  ô  ðmQ ðD€A‰5Ù Ø ØØØ ñ ð  ñ  ô  ðEQ ð^€A‰8Ù Ø ØØØ ñ ð  ñ  ô  ð_Q ðv€A‰=Ù Ø ØØØ ñ ð  ñ  ô  ðwQ ðN€A‰9Ù Ø Ø�;Ø�+Ø ñ ð  ñ  ô  ðOQ ðl€A‰6Ù Ø ØØ�+Ø ñ ð  ñ ô ðmQ ðX€A‰6Ù Ø ØØ�+Ø ñ ð  ñ  ô  ðYQ ðn€A‰6Ù Ø ØØ�+Ø ñ ð  ñ  ô  ðoQ ðJ€A‰8Ù Ø ØØ�+Ø ñ ð  ñ  ô  ðKQ ðh€A‰>Ù Ø Ø˜yÐ)Ø�+Ø ñ ð  ñ ô ðiQ ðD€A‰8Ù Ø Ø˜yÐ)Ø�+Ø ñ ð  ñ ô ðEQ ð~€A‰7Ù Ø Ø˜yÐ)Ø�+Ø ñ ð  ñ ô ðQ ðp€A‰6Ù Ø Ø  Ð+Ø�+Ø ñ* ð 0 ñ0 ô0 ðqQ ðT€A‰5Ù Ø Ø  ¨:Ð6Ø�+Ø ñ ð  ñ ô ðUQ ðT€A‰8Ù Ø Ø˜yÐ)Ø�+Ø ñ ð  ñ  ô  ðUQ ðr€A‰;Ù Ø Ø˜y¨)Ð4Ø�+Ø ñ ð  ñ  ô  ðsQ ðT€A‰7Ù Ø ØØØ ñ ð  ñ  ô  ðUQ ðl€A‰6Ù Ø Ø�;ØØ ñ ð  ñ  ô  ðmQ ðJ€A‰7Ù Ø ØØØ ñ ð  ñ  ô  ðKQ ðf€A‰8Ù Ø ØØ�+Ø ñ ð  ñ ô ðgQ ðH €A‰;Ù Ø Ø�;Ø�+Ø ñ ð  ñ  ô  ðI Q €ðd ð €Ø €à ˆI�gÑ Ô ð ð �D€A€qØ„v�ÐÐØˆjÑ@Øœ& &¨¬¤.°!Ð4ñ5ñ6ô6ð 6à„v�ÐÐØˆjÑ@Øœ& &¨¬¤.°!Ð4ñ5ñ6ô6ð 6ð€Fˆ1Œ6�NØ€Fˆ1Œ6�N€Nà ˆF�A�qð €Ø ðð€AØ€GˆAŒF�O€OØñ$)ñ$)ð$)ð$)ðLÐÑÔÐØñ ñððñ@ððñ8>ð>ð>ñFXCñXCðXCðXCðvðñðññôðñ} € ñ~€ ð:"+Ø&0ñ ð €ñððð ‰zÒÑØ€O€O€OØ $ˆXÔ $Ù:ñ<ñ<ô<€Fà ×ÒÙÙÑ)ññ+ô+ð+ð ×ÒÙ ‰jÙ :ññ<ô<ð<ð ×ÒÙ ‰h™|Ù 2ññ4ô4ð4ð ×ÒÙ ‰o q¨sÙ GññIôIðIð ×ÒÙ ‰l¡LÙ AññCôCðCð ×ÒÙ ‰lÑ$4ñññôðð ×ÒÙ ‰h™|Ù "ññ$ô$ð$ð ×ÒÙ ‘\Ù 8ññ:ô:ð:ð × Ò Ñ Ô €DØ „yð#Ø ˆ‰ŒˆˆˆàÔð #Ø × Ò Ñ Ô Ð Ð Ð à!œ]Ð1‘r�r°ˆHØœÐ,�2�2¨ˆDØŒ{Ð"Øœ��à˜˜dœk©3Ñ/Ô/�ð #ØÔ+ð Mð M�CØ�s˜4Ô+Ñ,Ô,¨qÒ0Ð0Ø,/±3ªJ¨J™y˜y¸C˜Ø#'¤=×#7Ò#7¸TÑ#7Ñ#BÔ#B˜ØŸ š  X±¡_Ñ5Ô5Ð5Ø™c’z�zؘ˜CœIÔ,¨f°d¸DÔ