/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc290340644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc423120644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc135730644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc715780644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc174630644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /usr/lib/python3.10/__pycache__/dis.cpython-310.pyc (15656B)
o 9j4N @sdZddlZddlZddlZddlZddlTddlmZgdeZ[ejej ej e e e fZedZdedfed fed ffZed Zd Zd dZdVdddddZdVddddZddddddddddd Zd d!Zd"d#Zd$d%Zd&d'Zddd(d)Ze d*d+Z!d,e!j"_d-e!j_d.e!j#_d/e!j$_d0e!j%_d1e!j&_d2e!j'_d3e!j(_d4Z)d5Z*Gd6d7d7e!Z+dd8d9d:Z,d;d<Z-d=d>Z.  dWd?d@Z/dXdddBdCZ0ddddDdEZ1  dYdddFdGdHZ2dIdJZ3e0Z4dKdLZ5dMdNZ6dOdPZ7GdQdRdRZ8dSdTZ9e:dUkre9dSdS)Zz0Disassembler of Python byte code into mnemonics.N)*)__all__) code_infodis disassembledistbdiscofindlinestarts findlabels show_codeget_instructions InstructionBytecode FORMAT_VALUE)Nstrreprascii MAKE_FUNCTION)defaults kwdefaults annotationsclosurecCs4z t||d}W|Styt||d}Y|Sw)zAttempts to compile the given source, first as an expression and then as a statement if the first approach fails. Utility function to accept strings in functions that otherwise expect code objects evalexec)compile SyntaxError)sourcenamecr /usr/lib/python3.10/dis.py _try_compiles r"filedepthc Csh|dur t|ddSt|dr|j}t|dr|j}nt|dr%|j}nt|dr.|j}nt|dr6|j}t|drt|j }|D]9\}}t |t r}t d ||dz t |||d Wntyw}z t d ||dWYd}~nd}~wwt |dqDdSt|d rt|||d dSt |ttfrt||ddSt |trt|||d dStd t|j)a0Disassemble classes, methods, functions, and other compiled objects. With no argument, disassemble the last traceback. Compiled objects currently include generator objects, async generator objects, and coroutine objects, all of which store their code object in a special attribute. Nr$__func____code__gi_codeag_codecr_code__dict__zDisassembly of %s:r#zSorry:co_code(don't know how to disassemble %s objects)rhasattrr'r(r)r*r+sortedr,items isinstance _have_codeprintr TypeError_disassemble_recursivebytes bytearray_disassemble_bytesr_disassemble_strtype__name__)xr$r%r1rx1msgr r r!r+sH            rr&cCsV|durztj}Wn tytddw|jr|j}|jst|jj|j|ddS)z2Disassemble a traceback (default: last traceback).Nz no last traceback to disassembler&) syslast_tracebackAttributeError RuntimeErrortb_nextrtb_framef_codetb_lasti)tbr$r r r!rXs   r OPTIMIZED NEWLOCALSVARARGS VARKEYWORDSNESTED GENERATORNOFREE COROUTINEITERABLE_COROUTINEASYNC_GENERATOR)  @icCs`g}tdD]}d|>}||@r#|t|t|||N}|s#nq|t|d|S)z+Return pretty representation of code flags.rXrS, )rangeappendCOMPILER_FLAG_NAMESgethexjoin)flagsnamesiflagr r r! pretty_flagsrs  rgcCst|dr|j}t|dr|j}nt|dr|j}nt|dr#|j}nt|dr+|j}t|tr5t|d}t|dr<|St dt |j ) zDHelper to handle methods, compiled or raw code objects, and strings.r'r(r)r*r+z r-r.) r/r'r(r)r*r+r2rr"r5r;r<r=r r r!_get_code_objects"        ricCs tt|S)z1Formatted details of methods, functions, or code.)_format_code_inforirhr r r!rs rcCsxg}|d|j|d|j|d|j|d|j|d|j|d|j|d|j|dt|j |j r[|d t |j D] }|d |qQ|j rr|d t |j D] }|d |qh|j r|d t |j D] }|d |q|jr|dt |jD] }|d |q|jr|dt |jD] }|d |qd|S)NzName: %szFilename: %szArgument count: %szPositional-only arguments: %szKw-only arguments: %szNumber of locals: %szStack size: %szFlags: %sz Constants:z%4d: %rzNames:z%4d: %szVariable names:zFree variables:zCell variables: )r^co_name co_filename co_argcountco_posonlyargcountco_kwonlyargcount co_nlocals co_stacksizergco_flags co_consts enumerateco_names co_varnames co_freevars co_cellvarsrb)colinesi_ci_nr r r!rjs<      rjcCstt||ddS)z}Print details of methods, functions, or code to *file*. If *file* is not provided, the output is printed on stdout. r&N)r4r)rzr$r r r!r sr _InstructionzBopname opcode arg argval argrepr offset starts_line is_jump_targetz!Human readable name for operationzNumeric code for operationz6Numeric argument to operation (if any), otherwise Nonez4Resolved arg value (if known), otherwise same as argz0Human readable description of operation argumentz1Start index of operation within bytecode sequencez4Line started by this opcode (if any), otherwise Nonez1True if other code jumps to here, otherwise Falsec@seZdZdZdddZdS) r aKDetails for a bytecode operation Defined fields: opname - human readable name for operation opcode - numeric code for operation arg - numeric argument to operation (if any), otherwise None argval - resolved arg value (if known), otherwise same as arg argrepr - human readable description of operation argument offset - start index of operation within bytecode sequence starts_line - line started by this opcode (if any), otherwise None is_jump_target - True if other code jumps to here, otherwise False FrUcCsg}|r|jdurd|}|||jn|d||r%|dn|d|jr3|dn|d|t|j|||jt|j duri|t|j t |j ri|d|j d d | S) a%Format instruction details for inclusion in disassembly output *lineno_width* sets the width of the line number field (0 omits it) *mark_as_current* inserts a '-->' marker arrow as part of the line *offset_width* sets the width of the instruction offset field Nz%%%dd z-->z z>>z ()) starts_liner^is_jump_targetroffsetrjustopnameljust _OPNAME_WIDTHarg _OPARG_WIDTHargreprrbrstrip)self lineno_widthmark_as_current offset_widthfields lineno_fmtr r r! _disassembles&      zInstruction._disassembleN)rFrU)r< __module__ __qualname____doc__rr r r r!r s r ) first_linecCsTt|}|j|j}tt|}|dur||j}nd}t|j|j|j |j |||S)aIterator for the opcodes in methods, functions or code Generates a series of Instruction named tuples giving the details of each operations in the supplied code. If *first_line* is not None, it indicates the line number that should be reported for the first source line in the disassembled code. Otherwise, the source line information (if any) is taken directly from the disassembled code object. Nr) riryrxdictr co_firstlineno_get_instructions_bytesr-rwrvrt)r=rrz cell_names linestarts line_offsetr r r!r s   r cCs |}|dur ||}|t|fS)zHelper to get optional details about const references Returns the dereferenced constant and its repr if the constant list is defined. Otherwise returns the constant index and its repr(). Nr) const_index const_listargvalr r r!_get_const_infos rcCs0|}|dur||}|}||fSt|}||fS)zHelper to get optional details about named references Returns the dereferenced name as both value and repr if the name list is defined. Otherwise returns the name index and its repr(). Nr) name_index name_listrrr r r!_get_name_info'src #st|}d}t|D]\} } |dur"|| d}|dur"||7}| |v} d} d} durˆ} | tvr@r|VqdS)rSNr ).0resrr r! js z*_get_instructions_bytes..)r _unpack_opargsr`hasconstrhasnamerhasjabsrhasjrelhaslocal hascomparecmp_ophasfreerFORMAT_VALUE_CONVERTERSboolrrbruMAKE_FUNCTION_FLAGSr r)codevarnamesrd constantscellsrrlabelsrroprrrr rr!r7sZ   rc Cs<|j|j}tt|}t|j||j|j|j|||ddS)zDisassemble a code object.r&N) ryrxrr r9r-rwrvrt)rzlastir$rrr r r!rps    rcCstt||d|dus|dkr6|dur|d}|jD]}t|dr5t|dtd|f|dt|||dqdSdS)Nr&rrSr-zDisassembly of %r:r#)rrtr/r4r6)rzr$r%r=r r r!r6ws    r6)r$rc Cst|} | rt||} | dkrtt| } nd} nd} t|d} | dkr/tt| } nd} t|||||||dD]%}| oI|jduoI|jdk}|rQt|d|j|k}t| | || |dqN)r6r")rkwargsr r r!r:sr:ccsjd}tdt|dD]'}||}|tkr(||d|B}|tkr%|d>nd}nd}d}|||fVq dS)NrrTrSrV)r]r HAVE_ARGUMENT EXTENDED_ARG)r extended_argrerrr r r!rsrcCsdg}t|D])\}}}|dur/|tvr|d|d}n |tvr%|d}nq||vr/||q|S)z`Detect all offsets in a byte code which are jump targets. Return the list of offsets. NrT)rrrr^)rrrrrlabelr r r!r s  r ccs<d}|D]\}}}|dur||kr|}||fVqdS)zqFind the offsets in a byte code which are start of lines in the source. Generate pairs (offset, lineno) N)co_lines)rlastlinestartendliner r r!r s r c@sLeZdZdZdddddZddZdd Zed d Zd d Z ddZ dS)raThe bytecode operations of a piece of code Instantiate this with a function, method, other compiled object, string of code, or a code object (as returned by compile()). Iterating over this yields the bytecode operations as Instruction instances. N)rcurrent_offsetcCsdt||_}|dur|j|_d|_n ||_||j|_|j|j|_tt ||_ ||_ ||_ dS)Nr) ricodeobjrr _line_offsetryrx _cell_namesrr _linestarts_original_objectr)rr=rrrzr r r!__init__s  zBytecode.__init__c Cs*|j}t|j|j|j|j|j|j|jdS)Nr) rrr-rwrvrtrrr)rrzr r r!__iter__s zBytecode.__iter__cCsd|jj|jS)Nz{}({!r}))format __class__r<rrr r r!__repr__s zBytecode.__repr__cCs$|jr |j}|js||jj|jdS)z/ Construct a Bytecode from the given traceback )r)rDrErFrG)clsrHr r r!from_tracebackszBytecode.from_tracebackcCs t|jS)z3Return formatted information about the code object.)rjrrr r r!infos z Bytecode.infoc Csx|j}|jdur |j}nd}t }t|j|j|j|j|j |j |j ||d | WdS1s5wYdS)z3Return a formatted view of the bytecode operations.Nr)rrdrrrrr$r) rrioStringIOr9r-rwrvrtrrrgetvalue)rrzroutputr r r!rs   $z Bytecode.dis) r<rrrrrr classmethodrrrr r r r!rs   rcCszddl}|}|jd|dddd|}|j }|}Wdn1s*wYt||jjd}t |dS) z*Simple test program to disassemble a file.rNinfilerb?-)r;nargsdefaultr) argparseArgumentParser add_argumentFileType parse_argsrreadrrr)rparserargsrrrr r r!_tests  r__main__)N)NNNNNr)r)rNNNNN);rr@types collectionsropcoder _opcodes_all MethodType FunctionTypeCodeTyper staticmethodr;r3opmaprrrrrrrr"rrr_rgrirrjr namedtupler~rrrrrrrrrr r rrrrr6r9r:rrr r rrr<r r r r!s   -  4  9    =