/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__/inspect.cpython-39.pyc (81388B)
a _h\ @sdZdZddlZddlZddlZddlZddlZddlZ ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlmZddlmZmZeZejD]\ZZeede<qdZdd Z d d Z!d d Z"ddZ#ddZ$e%edrddZ&nddZ&e%edr2ddZ'nddZ'ddZ(ddZ)ddZ*d d!Z+d"d#Z,d$d%Z-d&d'Z.d(d)Z/d*d+Z0d,d-Z1d.d/Z2d0d1Z3d2d3Z4d4d5Z5d6d7Z6dd8d9Z7ed:d;Z8dd?Z:dd@dAdBZ;dCdDZdIdJZ?dKdLZ@dMdNZAdOdPZBdQdRZCddSdTZDiZEiZFddUdVZGGdWdXdXeHZIGdYdZdZejJZKd[d\ZLd]d^ZMGd_d`d`eHZNGdadbdbZOdcddZPdedfZQdgdhZRdidjZSddldmZTedndoZUdpdqZVedrdsZWdtduZXedvdwZYdxdyZZedzd{Z[d|d}Z\dd~dZ]ddZ^ddddiie_dddddddde]f ddZ`e_ddddddfddZaddZbddZcddZdeddZeddZfeddZgdddZhddZieddegjjZkdddZldddZmddZndddZodddZpeqZrddZsddZtddZuddZvddZwerfddZxdZydZzdZ{dZ|ddZ}ddZ~dZdZdZdZddńZddDŽZeejZeejZeejdZeeeejfZddʄZddd̄Zdd΄ZddЄZdd҄ZddԄZddքZdddلZdddۄZddd݄ZdddޜddZGdddZGdddZGdddejZejZejZejZejZejZededededediZGdddZGdddZGdddZddddZddZedkredS(aGet useful information from live Python objects. This module encapsulates the interface provided by the internal special attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. It also provides some help for examining source code and class layout. Here are some of the useful functions provided by this module: ismodule(), isclass(), ismethod(), isfunction(), isgeneratorfunction(), isgenerator(), istraceback(), isframe(), iscode(), isbuiltin(), isroutine() - check object types getmembers() - get members of an object that satisfy a given condition getfile(), getsourcefile(), getsource() - find an object's source code getdoc(), getcomments() - get documentation on an object getmodule() - determine the module that an object came from getclasstree() - arrange classes so as to represent their hierarchy getargvalues(), getcallargs() - get info about function arguments getfullargspec() - same, with support for Python 3 features formatargvalues() - format an argument spec getouterframes(), getinnerframes() - get info about frames currentframe() - get the current stack frame stack(), trace() - get info about frames on the stack or in a traceback signature() - get a Signature object for the callable )zKa-Ping Yee z'Yury Selivanov N) attrgetter) namedtuple OrderedDictZCO_icCs t|tjS)zReturn true if the object is a module. Module objects provide these attributes: __cached__ pathname to byte compiled file __doc__ documentation string __file__ filename (missing for built-in modules)) isinstancetypes ModuleTypeobjectr (/opt/imh-python/lib/python3.9/inspect.pyismodule@sr cCs t|tS)zReturn true if the object is a class. Class objects provide these attributes: __doc__ documentation string __module__ name of module in which this class was defined)rtyperr r r isclassIsrcCs t|tjS)a_Return true if the object is an instance method. Instance method objects provide these attributes: __doc__ documentation string __name__ name with which this method was defined __func__ function object containing implementation of method __self__ instance to which this method is bound)rr MethodTyperr r r ismethodQsrcCs:t|st|st|rdSt|}t|do8t|d S)aReturn true if the object is a method descriptor. But not if ismethod() or isclass() or isfunction() are true. This is new in Python 2.2, and, for example, is true of int.__add__. An object passing this test has a __get__ attribute but not a __set__ attribute, but beyond that the set of attributes varies. __name__ is usually sensible, and __doc__ often is. Methods implemented via descriptors that also pass one of the other tests return false from the ismethoddescriptor() test, simply because the other tests promise more -- you can, e.g., count on having the __func__ attribute (etc) when an object passes ismethod().F__get____set__rr isfunctionr hasattrr tpr r r ismethoddescriptor[srcCs8t|st|st|rdSt|}t|dp6t|dS)a}Return true if the object is a data descriptor. Data descriptors have a __set__ or a __delete__ attribute. Examples are properties (defined in Python) and getsets and members (defined in C). Typically, data descriptors will also have __name__ and __doc__ attributes (properties, getsets, and members have both of these attributes), but this is not guaranteed.Fr __delete__rrr r r isdatadescriptorosrMemberDescriptorTypecCs t|tjS)Return true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.)rrrrr r r ismemberdescriptorsrcCsdS)rFr rr r r rsGetSetDescriptorTypecCs t|tjS)Return true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.)rrrrr r r isgetsetdescriptorsr cCsdS)rFr rr r r r scCs t|tjS)a(Return true if the object is a user-defined function. Function objects provide these attributes: __doc__ documentation string __name__ name with which this function was defined __code__ code object containing compiled function bytecode __defaults__ tuple of any default values for arguments __globals__ global namespace in which this function was defined __annotations__ dict of parameter annotations __kwdefaults__ dict of keyword only parameters with defaults)rr FunctionTyperr r r rs rcCs6t|r|j}qt|}t|s&dSt|jj|@S)zReturn true if ``f`` is a function (or a method or functools.partial wrapper wrapping a function) whose code object has the given ``flag`` set in its flags.F)r__func__ functools_unwrap_partialrbool__code__co_flags)fflagr r r _has_code_flags  r*cCs t|tS)zReturn true if the object is a user-defined generator function. Generator function objects provide the same attributes as functions. See help(isfunction) for a list of attributes.)r*Z CO_GENERATORobjr r r isgeneratorfunctionsr-cCs t|tS)zuReturn true if the object is a coroutine function. Coroutine functions are defined with "async def" syntax. )r*Z CO_COROUTINEr+r r r iscoroutinefunctionsr.cCs t|tS)zReturn true if the object is an asynchronous generator function. Asynchronous generator functions are defined with "async def" syntax and have "yield" expressions in their body. )r*ZCO_ASYNC_GENERATORr+r r r isasyncgenfunctionsr/cCs t|tjS)z7Return true if the object is an asynchronous generator.)rrAsyncGeneratorTyperr r r isasyncgensr1cCs t|tjS)aReturn true if the object is a generator. Generator objects provide these attributes: __iter__ defined to support iteration over container close raises a new GeneratorExit exception inside the generator to terminate the iteration gi_code code object gi_frame frame object or possibly None once the generator has been exhausted gi_running set to 1 when generator is executing, 0 otherwise next return the next item from the container send resumes the generator and "sends" a value that becomes the result of the current yield-expression throw used to raise an exception inside the generator)rr GeneratorTyperr r r isgeneratorsr3cCs t|tjS)z)Return true if the object is a coroutine.)rr CoroutineTyperr r r iscoroutinesr5cCs6t|tjp4t|tjr(t|jjt@p4t|tj j S)z?Return true if object can be passed to an ``await`` expression.) rrr4r2r%gi_coder'ZCO_ITERABLE_COROUTINE collectionsabc Awaitablerr r r isawaitables    r:cCs t|tjS)abReturn true if the object is a traceback. Traceback objects provide these attributes: tb_frame frame object at this level tb_lasti index of last attempted instruction in bytecode tb_lineno current line number in Python source code tb_next next inner traceback object (called by this level))rr TracebackTyperr r r istracebacksr<cCs t|tjS)a`Return true if the object is a frame object. Frame objects provide these attributes: f_back next outer frame object (this frame's caller) f_builtins built-in namespace seen by this frame f_code code object being executed in this frame f_globals global namespace seen by this frame f_lasti index of last attempted instruction in bytecode f_lineno current line number in Python source code f_locals local namespace seen by this frame f_trace tracing function for this frame, or None)rr FrameTyperr r r isframes r>cCs t|tjS)aReturn true if the object is a code object. Code objects provide these attributes: co_argcount number of arguments (not including *, ** args or keyword only arguments) co_code string of raw compiled bytecode co_cellvars tuple of names of cell variables co_consts tuple of constants used in the bytecode co_filename name of file in which this code object was created co_firstlineno number of first line in Python source code co_flags bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg | 16=nested | 32=generator | 64=nofree | 128=coroutine | 256=iterable_coroutine | 512=async_generator co_freevars tuple of names of free variables co_posonlyargcount number of positional only arguments co_kwonlyargcount number of keyword only arguments (not including ** arg) co_lnotab encoded mapping of line numbers to bytecode indices co_name name with which this code object was defined co_names tuple of names of local variables co_nlocals number of local variables co_stacksize virtual machine stack space required co_varnames tuple of names of arguments and local variables)rrCodeTyperr r r iscodesr@cCs t|tjS)a,Return true if the object is a built-in function or method. Built-in functions and methods provide these attributes: __doc__ documentation string __name__ original name of this function or method __self__ instance to which a method is bound, or None)rrBuiltinFunctionTyperr r r isbuiltinsrBcCs t|pt|pt|pt|S)zdS|j D]\}}t |ddrHdSqH|j D]6}t |ddD]$}t ||d}t |ddrzdSqzqjdS)z:Return true if the object is an abstract base class (ABC).FT__abstractmethods____isabstractmethod__r N) rr __flags__TPFLAGS_IS_ABSTRACT issubclassr8ABCMetar__dict__itemsgetattr __bases__)r namevaluebaser r r isabstract.s"        rQc Cst|r|ft|}nd}g}t}t|}z:|jD].}|jD]\}}t|tj rD| |qDq6Wnt yzYn0|D]|} zt || } | |vrt Wn8t y|D]}| |jvr|j| } qqYqYn0|r|| r| | | f| | q|jddd|S)zReturn all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.r cSs|dS)Nrr )Zpairr r r ozgetmembers..key)rgetmrosetdirrMrJrKrrDynamicClassAttributeappendAttributeErrorrLaddsort) r predicatemroresults processednamesrPkvrUrOr r r getmembersFs:          re Attributezname kind defining_class objectc CsTt|}tt|}tdd|D}|f|}||}t|}|D].}|jD]\}}t|tjrR| |qRqDg} t } |D]} d} d} d}| | vrzz| dkrt dt || } Wn$t y}z WYd}~nd}~00t | d| } | |vrzd} d}|D] }t || d}|| ur|}q|D]@}z| || }WntyXYq*Yn0|| ur*|}q*|durz|} |D]0}| |jvr~|j| }| |vr|} qq~| durq| dur| n|}t|ttjfrd}|}nFt|ttjfrd}|}n*t|trd }|}nt|r,d }nd }| t| || || | q| S) aNReturn list of attribute-descriptor tuples. For each name in dir(cls), the return list contains a 4-tuple with these elements: 0. The name (a string). 1. The kind of attribute this is, one of these strings: 'class method' created via classmethod() 'static method' created via staticmethod() 'property' created via property() 'method' any other flavor of method or descriptor 'data' not a method 2. The class which defined this attribute (a class). 3. The object as obtained by calling getattr; if this fails, or if the resulting object does not live anywhere in the class' mro (including metaclasses) then the object is looked up in the defining class's dict (found by walking the mro). If one of the items in dir(cls) is stored in the metaclass it will now be discovered and not have None be listed as the class in which it was defined. Any items whose home class cannot be discovered are skipped. css|]}|ttfvr|VqdSN)r r ).0clsr r r rSz'classify_class_attrs..NrJz)__dict__ is special, don't want the proxy __objclass__z static methodz class methodpropertymethoddata)rVr tuplerXrJrKrrrYrZrW ExceptionrL __getattr__r[ staticmethodBuiltinMethodType classmethodClassMethodDescriptorTyperlrCrfr\)rir_ZmetamroZ class_basesZ all_basesrbrPrcrdresultrarNZhomeclsZget_objZdict_objexcZlast_clsZsrch_clsZsrch_objr,kindr r r classify_class_attrsts                    rycCs|jS)zHReturn tuple of base classes (including cls) in method resolution order.)__mro__)rir r r rVsrVstopcs|durdd}n fdd}|}t||i}t}||rx|j}t|}||vs`t||krntd||||<q6|S)anGet the object wrapped by *func*. Follows the chain of :attr:`__wrapped__` attributes returning the last object in the chain. *stop* is an optional callback accepting an object in the wrapper chain as its sole argument that allows the unwrapping to be terminated early if the callback returns a true value. If the callback never returns a true value, the last object in the chain is returned as usual. For example, :func:`signature` uses this to stop unwrapping if any object in the chain has a ``__signature__`` attribute defined. :exc:`ValueError` is raised if a cycle is encountered. NcSs t|dSN __wrapped__rr(r r r _is_wrapperszunwrap.._is_wrappercst|do| Sr}rrr{r r rsz!wrapper loop when unwrapping {!r})idsysgetrecursionlimitr~len ValueErrorformat)funcr|rr(memoZrecursion_limitZid_funcr r{r unwraps    rcCs|}t|t|S)zBReturn the indent size, in spaces, at the start of a line of text.) expandtabsrlstrip)lineZexpliner r r indentsizesrcCsNtj|j}|durdS|jdddD]}t||}q.t|sJdS|S)N.)rmodulesget __module__ __qualname__splitrLr)rrirNr r r _findclasss rc Cs t|rR|jD]>}|turz |j}Wnty:YqYn0|dur|SqdSt|r|jj}|j}t|rt t ||dd|jur|}n|j }n$t |r|j}t |}|dust |||urdSnt |r|j}|j}t|r|jd||jkr|}n|j }nt|trN|j}|j}t |}|dusHt |||urdSnnt|sbt|r|j}|j}t |||urdSt|rt |dd}t|tr||vr||SndS|jD]D}zt ||j}WntyYqYn0|dur|SqdS)Nr"r __slots__)rrzr __doc__r[rr"__name____self__rL __class__rrrBrrrlfgetrrrkrdict)r,rPdocrNselfrirslotsr r r _finddoc!sn                rc Csdz |j}WntyYdS0|durNz t|}WnttfyLYdS0t|ts\dSt|S)zGet the documentation string for an object. All tabs are expanded to spaces. To clean up docstrings that are indented to line up with blocks of code, any whitespace than can be uniformly removed from the second line onwards is removed.N)rr[r TypeErrorrstrcleandoc)r rr r r getdoc_s    rcCsz|d}Wnty&YdS0tj}|ddD]*}t|}|r:t||}t||}q:|rz|d|d<|tjkrtdt|D]}|||d||<q|r|ds| q|r|ds| dqd |SdS)zClean up indentation from docstrings. Any whitespace that can be uniformly removed from the second line onwards is removed. Nrr) rr UnicodeErrorrmaxsizerrminrangepopjoin)rlinesZmarginrZcontentindentir r r rrs&     (    rcCst|r(t|ddr|jStd|t|rht|drZtj |j }t|ddrZ|jStd|t |rv|j }t |r|j}t|r|j}t|r|j}t|r|jStdt|jdS)z@Work out which source or compiled file an object was defined in.__file__Nz{!r} is a built-in modulerz{!r} is a built-in classzVmodule, class, method, function, traceback, frame, or code object was expected, got {})r rLrrrrrrrrrrr"rr&r<tb_framer>f_coder@ co_filenamer r)r moduler r r getfiles.   rcCsTtj|}ddtjD}||D]"\}}||r,|d|Sq,dS)z1Return the module name for a given file, or None.cSsg|]}t| |fqSr )r)rhsuffixr r r sz!getmodulename..N)ospathbasename importlib machinery all_suffixesr]endswith)rZfnamesuffixesZneglenrr r r getmodulenames   rcst|tjjdd}|tjjdd7}tfdd|Dr`tjdtjj dntfddtjj Dr~dStj rSt t |dddurStjvrSdS)zReturn the filename that can be used to locate an object's source. Return None if no way can be identified to get the source. Nc3s|]}|VqdSrgrrhsfilenamer r rjrSz getsourcefile..rc3s|]}|VqdSrgrrrr r rjrS __loader__)rrrDEBUG_BYTECODE_SUFFIXESOPTIMIZED_BYTECODE_SUFFIXESanyrrsplitextSOURCE_SUFFIXESEXTENSION_SUFFIXESexistsrL getmodule linecachecache)r Zall_bytecode_suffixesr rr getsourcefiles"    rcCs,|durt|pt|}tjtj|S)zReturn an absolute path to the source or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.N)rrrrnormcaseabspath)r _filenamer r r getabsfilesrc Cs~t|r |St|dr$tj|jS|durD|tvrDtjt|Szt||}WntyfYdS0|tvrtjt|Stj D]\\}}t|rt|dr|j }|t |dkrq|t |<t|}|j t|<ttj|<q|tvrtjt|Stjd}t|ds dSt||j rHt||j }||urH|Stjd}t||j rzt||j } | |urz|SdS)zAReturn the module an object was defined in, or None if not found.rNr__main__rbuiltins)r rrrrr modulesbyfilerrcopyrKr_filesbymodnamerrrrealpathrL) r rfilemodnamerr(mainZ mainobjectZbuiltinZ builtinobjectr r r rsJ            rc@s eZdZdS)ClassFoundExceptionNrrrr r r r rsrc@s(eZdZddZddZeZddZdS) _ClassFindercCsg|_||_dSrg)stackqualname)rrr r r __init__ sz_ClassFinder.__init__cCs<|j|j|jd|||j|jdS)Nz)rrZrN generic_visitrrnoder r r visit_FunctionDefs    z_ClassFinder.visit_FunctionDefcCsb|j|j|jd|jkrJ|jr4|jdj}n|j}|d8}t||||j dS)Nrrr) rrZrNrrdecorator_listlinenorrr)rr line_numberr r r visit_ClassDefs z_ClassFinder.visit_ClassDefN)rrrrrZvisit_AsyncFunctionDefrr r r r r src Cst|}|rt|n$t|}|dr4|dszsource code not availablezcould not get source coderNzcould not find class definitionco_firstlinenoz"could not find function definitionrz>^(\s*def\s)|(\s*async\s+def\s)|(.*(?rr@rrrecompile IndexErrormatch) r rrrrsourceZtreeZ class_findererlnumpatrr r r findsource)s`                   rc Cs,zt|\}}Wnttfy(YdS0t|rd}|rR|ddddkrRd}|t|krx||dvrx|d}qR|t|kr||dddkrg}|}|t|kr||dddkr||||d}qd|Sn>|dkr(t ||}|d}|dkr(|| dddkr(t |||kr(|| g}|dkr|d}|| }|dddkrt |||kr|g|dd<|d}|dkrq|| }qr|r|ddkrg|dd<q|r|d dkrg|d d<qd|SdS) zwGet lines of comments immediately preceding an object's source code. Returns None when source can't be found. Nrz#!r)r#rrr) rrrr rstriprZrrrr)r rrstartZcommentsendrZcommentr r r getcommentsmsH      $ $rc@s eZdZdS) EndOfBlockNrr r r r r rSr c@s eZdZdZddZddZdS) BlockFinderz@Provide a tokeneater() method to detect the end of a code block.cCs4d|_d|_d|_d|_d|_d|_d|_d|_dS)NrFr)rislambdastartedpassline indecoratordecoratorhasargslast body_col0rr r r rszBlockFinder.__init__cCsr|jsB|jsB|dkrd|_n|dvr8|dkr2d|_d|_d|_n,|dkrZ|jrVd|_n|dkrv|jrtd|_d|_n|tjkrd|_|d|_|jrt|jr|jsd|_n|jrn|tj kr|j dur|jr|d |_ |j d |_ d|_n|tj kr|j d |_ |j dkrntnV|tj krL|j durn|d |j krn|d|_n"|j dkrn|tj tjfvrntdS) N@T)defclasslambdar()Frr)r rr r rtokenizeNEWLINErr INDENTrrDEDENTCOMMENTNL)rr tokenZsrowcolZerowcolrr r r tokeneatersL              zBlockFinder.tokeneaterN)rrrrrr r r r r r s r c CsTt}z(tt|j}|D]}|j|qWnttfyDYn0|d|jS)z@Extract the block of code at the top of the given list of lines.N) r rgenerate_tokensiter__next__r r IndentationErrorr)rZ blockfindertokensZ_tokenr r r getblocksr&cCsbt|}t|\}}t|r"|j}t|s>t|rF|jjdkrF|dfSt||d|dfSdS)aReturn a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of the lines corresponding to the object and the line number indicates where in the original source file the first line of code was found. An OSError is raised if the source code cannot be retrieved.zrNr) rrr<rr r>rco_namer&r rrr r r getsourceliness  r)cCst|\}}d|S)aReturn the text of the source code for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string. An OSError is raised if the source code cannot be retrieved.r)r)rr(r r r getsources r*cCsRg}|jtddd|D]2}|||jf||vr|t||||q|S)z-Recursive helper function for getclasstree().rrrT)r]rrZrMwalktree)classeschildrenparentr`cr r r r+sr+FcCsi}g}|D]d}|jr^|jD]>}||vr0g||<|||vrJ||||r||vrqpqq ||vr ||q |D]}||vrv||qvt||dS)aArrange the given list of classes into a hierarchy of nested lists. Where a nested list appears, it contains classes derived from the class whose entry immediately precedes the list. Each entry is a 2-tuple containing a class and a tuple of its base classes. If the 'unique' argument is true, exactly one entry appears in the returned structure for each class in the given list. Otherwise, classes using multiple inheritance and their descendants will appear multiple times.N)rMrZr+)r,uniquer-rootsr/r.r r r getclasstrees     r2 Argumentszargs, varargs, varkwc Cst|std||j}|j}|j}t|d|}t||||}d}||7}d}|jt@rx|j|}|d}d}|jt @r|j|}t ||||S)aGet information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is the list of argument names. Keyword-only arguments are appended. 'varargs' and 'varkw' are the names of the * and ** arguments or None.z{!r} is not a code objectNrr) r@rr co_varnames co_argcountco_kwonlyargcountlistr' CO_VARARGSCO_VARKEYWORDSr3) corbnargsZnkwargsr kwonlyargsstepvarargsvarkwr r r getargs+s"    r@ArgSpeczargs varargs keywords defaultscCsDtjdtddt|\}}}}}}}|s.|r6tdt||||S)aeGet the names and default values of a function's parameters. A tuple of four things is returned: (args, varargs, keywords, defaults). 'args' is a list of the argument names, including keyword-only argument names. 'varargs' and 'keywords' are the names of the * and ** parameters or None. 'defaults' is an n-tuple of the default values of the last n parameters. This function is deprecated, as it does not support annotations or keyword-only parameters and will raise ValueError if either is present on the supplied callable. For a more structured introspection API, use inspect.signature() instead. Alternatively, use getfullargspec() for an API with a similar namedtuple based interface, but full support for annotations and keyword-only parameters. Deprecated since Python 3.5, use `inspect.getfullargspec()`. zhinspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()r stacklevelzgFunction has keyword-only parameters or annotations, use inspect.signature() API which can support them)warningswarnDeprecationWarninggetfullargspecrrA)rrr>r?defaultsr<kwonlydefaultsannr r r getargspecHsrK FullArgSpeczGargs, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotationsc Cszzt|ddtd}Wn.tyB}ztd|WYd}~n d}~00g}d}d}g}g}i}d} i} |j|jurz|j|d<|jD]} | j} | j } | t ur| | | j | jur| | j f7} nv| t ur| | | j | jur| | j f7} nJ| tur| }n<| tur(| | | j | jur6| j | | <n| tur6| }| j| jur| j|| <q| sXd} | sbd} t||||| || |S)a$Get the names and default values of a callable object's parameters. A tuple of seven things is returned: (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations). 'args' is a list of the parameter names. 'varargs' and 'varkw' are the names of the * and ** parameters or None. 'defaults' is an n-tuple of the default values of the last n parameters. 'kwonlyargs' is a list of keyword-only parameter names. 'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults. 'annotations' is a dictionary mapping parameter names to annotations. Notable differences from inspect.signature(): - the "self" parameter is always reported, even for bound methods - wrapper chains defined by __wrapped__ *not* unwrapped automatically Ffollow_wrapper_chainsskip_bound_argsigclszunsupported callableNr return)_signature_from_callable Signaturerprreturn_annotationempty parametersvaluesrxrN_POSITIONAL_ONLYrZdefault_POSITIONAL_OR_KEYWORD_VAR_POSITIONAL _KEYWORD_ONLY _VAR_KEYWORD annotationrL)rsigexrr>r? posonlyargsr< annotationsrH kwdefaultsparamrxrNr r r rGis\              rGArgInfozargs varargs keywords localscCs t|j\}}}t||||jS)a9Get information about arguments passed into a particular frame. A tuple of four things is returned: (args, varargs, varkw, locals). 'args' is a list of the argument names. 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'locals' is the locals dictionary of the given frame.)r@rref_locals)framerr>r?r r r getargvaluessrhcCsVt|dddkr t|ddSt|trN|jd|fvr>|jS|jd|jSt|S)Nrtypingztyping.rrr)rLreprreplacerr rr)r^Z base_moduler r r formatannotations rlcst|ddfdd}|S)Nrcs t|Srg)rl)r^rr r _formatannotationsz5formatannotationrelativeto.._formatannotation)rL)r rnr rmr formatannotationrelativetos  ror cCsd|SN*r rNr r r rRrSrRcCsd|SN**r rrr r r rRrScCs dt|SN=rjrOr r r rRrScCsd|S)Nz -> r )textr r r rRrSc s<ddlm} | dtddfdd}g}|rBt|t|}t|D]:\}}||}|rz||krz|| |||}||qJ|dur||||n|r|d |r|D]2}||}|r||vr|| ||7}||q|dur|| ||d d |d }d vr8|| d 7}|S)aFormat an argument spec from the values returned by getfullargspec. The first seven arguments are (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations). The other five arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The last argument is an optional function to format the sequence of arguments. Deprecated since Python 3.5: use the `signature` function and `Signature` objects. r)rEzc`formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directlyrrBcs(|}|vr$|d|7}|S)Nz: r )argrvrbrl formatargr r formatargandannotationsz-formatargspec..formatargandannotationNrqr, rrQ)rDrErFr enumeraterZr)rr>r?rHr<rIrbr| formatvarargs formatvarkw formatvalueZ formatreturnsrlrEr}specsZ firstdefaultrrzspecZ kwonlyargrvr r{r formatargspecs<        rcCsd|Srpr rrr r r rRrScCsd|Srsr rrr r r rRrScCs dt|Srurwrxr r r rRrSc Cs|||fdd}g} tt|D]} | ||| q |rV| ||||||rt| |||||dd| dS)afFormat an argument spec from the 4 values returned by getargvalues. The first four arguments are (args, varargs, varkw, locals). The next four arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The ninth argument is an optional function to format the sequence of arguments.cSs|||||Srgr )rNlocalsr|rr r r convert%sz formatargvalues..convertrr~r)rrrZr) rr>r?rr|rrrrrrr r r formatargvaluess  rcsfdd|D}t|}|dkr,|d}n>|dkr@dj|}n*dj|dd}|dd=d ||}td |||rzd nd |dkrd nd|fdS)Ncsg|]}|vrt|qSr rw)rhrNrWr r r2rSz&_missing_arguments..rrrz {} and {}z , {} and {}r~z*%s() missing %i required %s argument%s: %s positional keyword-onlyrr)rrrr)f_nameZargnamesposrWrbmissingrtailr rr _missing_arguments1s    rc st||}tfdd|D}|r:|dk} d|f} n2|rTd} d|t|f} nt|dk} tt|} d} |rd} | |dkrd nd||dkrd ndf} td || | rd nd|| |dkr|sd nd fdS) Ncsg|]}|vr|qSr r )rhrzrr r rCrSz_too_many..rz at least %dTz from %d to %drz7 positional argument%s (and %d keyword-only argument%s)rz5%s() takes %s positional argument%s but %d%s %s givenZwasZwere)rrr) rrZkwonlyr>ZdefcountZgivenrWZatleastZ kwonly_givenpluralr_Z kwonly_sigmsgr rr _too_manyAs*    rcOst|}|\}}}}}} } |j} i} t|rB|jdurB|jf|}t|} t|}|r^t|nd}t| |}t|D]}||| ||<qt|rt||d| |<t||}|ri| |<| D]T\}}||vr|st d| |f|| ||<q|| vrt d| |f|| |<q| |kr<|sr?rHr<rIrJrZ arg2valueZnum_posZnum_argsZ num_defaultsnrZpossible_kwargskwrOZreqrzrkwargr r r getcallargsVsf             r ClosureVarsz"nonlocals globals builtins unboundc Cst|r|j}t|s$td||j}|jdur:i}nddt|j|jD}|j }| dt j }t |rt|j }i}i}t}|jD]`}|dvrqz||||<Wqtyz||||<Wnty||Yn0Yq0qt||||S)a Get the mapping of free variables to their current values. Returns a named tuple of dicts mapping the current nonlocal, global and builtin references as seen by the body of the function. A final set of unbound names that could not be resolved is also provided. {!r} is not a Python functionNcSsi|]\}}||jqSr ) cell_contents)rhvarZcellr r r sz"getclosurevars.. __builtins__)NoneTrueFalse)rr"rrrr& __closure__zip co_freevars __globals__rrrJr rWco_namesKeyErrorr\r) rcodeZ nonlocal_varsZ global_nsZ builtin_nsZ global_varsZ builtin_varsZ unbound_namesrNr r r getclosurevarss<      r Tracebackz+filename lineno function code_context indexrcCst|r|j}|j}n|j}t|s2td|t|p@t|}|dkr|d|d}zt |\}}Wnt yd}}Yq0t dt |t ||}||||}|d|}nd}}t|||jj||S)aGet information about a frame or traceback object. A tuple of five things is returned: the filename, the line number of the current line, the function name, a list of lines of context from the source code, and the index of the current line within that list. The optional second argument specifies the number of lines of context to return, which are centered around the current line.z'{!r} is not a frame or traceback objectrrrN)r< tb_linenorf_linenor>rrrrrrmaxrrrrr')rgcontextrrrrrindexr r r getframeinfos$ rcCs|jS)zCGet the line number from a frame object, allowing for optimization.)rrgr r r getlinenosr FrameInforcCs2g}|r.|ft||}|t||j}q|S)zGet a list of records for a frame and all higher (calling) frames. Each record contains a frame object, filename, line number, function name, a list of lines of context, and index within the context.)rrZrf_back)rgr framelist frameinfor r r getouterframess rcCs4g}|r0|jft||}|t||j}q|S)zGet a list of records for a traceback's frame and all lower frames. Each record contains a frame object, filename, line number, function name, a list of lines of context, and index within the context.)rrrZrtb_next)tbrrrr r r getinnerframess rcCsttdrtdSdS)z?Return the frame of the caller or None if this is not possible. _getframerN)rrrr r r r currentframe srcCsttd|S)z@Return a list of records for the stack above the caller's frame.r)rrrrr r r rsrcCsttd|S)zCReturn a list of records for the stack below the current exception.r)rrexc_inforr r r tracesrcCstjd|S)Nrz)r rJr)klassr r r _static_getmrosrcCs6i}zt|d}Wnty&Yn0t||tSNrJ)r __getattribute__r[rr _sentinel)r,attrZ instance_dictr r r _check_instances  rc CsFt|D]8}tt|turz|j|WSty>Yq0qtSrg)r_shadowed_dictr rrJr)rrentryr r r _check_class's  rcCs&z t|Wnty YdS0dSNFT)rrr+r r r _is_type0s   rc Csltjd}t|D]T}z||d}Wnty:Yq0t|tjur^|jdkr^|j|us|Sqt Sr) r rJrrrrrrrkr)r dict_attrrZ class_dictr r r r7s    rc Cst}t|s>t|}t|}|tus2t|tjurBt||}n|}t||}|tur|turtt|dturtt|dtur|S|tur|S|tur|S||urtt|D]8}tt|turz|j |WSt yYq0q|tur|St |dS)aRetrieve attributes without triggering dynamic lookup via the descriptor protocol, __getattr__ or __getattribute__. Note: this function may not be able to retrieve all attributes that getattr can fetch (like dynamically created attributes) and may find attributes that getattr can't (like descriptors that raise AttributeError). It can also return descriptor objects instead of instance members in some cases. See the documentation for details. rrN) rrr rrrrrrrJrr[)r,rrYZinstance_resultrrZ klass_resultrr r r getattr_staticEs:     r GEN_CREATED GEN_RUNNING GEN_SUSPENDED GEN_CLOSEDcCs,|jr tS|jdurtS|jjdkr(tStS)a#Get current state of a generator-iterator. Possible states are: GEN_CREATED: Waiting to start execution. GEN_RUNNING: Currently being executed by the interpreter. GEN_SUSPENDED: Currently suspended at a yield expression. GEN_CLOSED: Execution has completed. Nr) gi_runningrgi_framerf_lastirr) generatorr r r getgeneratorstatezs   rcCs:t|std|t|dd}|dur2|jjSiSdS)z Get the mapping of generator local variables to their current values. A dict is returned, with the keys the local variable names and values the bound values.z{!r} is not a Python generatorrN)r3rrrLrrf)rrgr r r getgeneratorlocalss  r CORO_CREATED CORO_RUNNINGCORO_SUSPENDED CORO_CLOSEDcCs,|jr tS|jdurtS|jjdkr(tStS)a&Get current state of a coroutine object. Possible states are: CORO_CREATED: Waiting to start execution. CORO_RUNNING: Currently being executed by the interpreter. CORO_SUSPENDED: Currently suspended at an await expression. CORO_CLOSED: Execution has completed. Nr) cr_runningrcr_framerrrr) coroutiner r r getcoroutinestates   rcCs"t|dd}|dur|jSiSdS)z Get the mapping of coroutine local variables to their current values. A dict is returned, with the keys the local variable names and values the bound values.rN)rLrf)rrgr r r getcoroutinelocalss r from_bytescCs6zt||}Wnty"YdS0t|ts2|SdS)zPrivate helper. Checks if ``cls`` has an attribute named ``method_name`` and returns it only if it is a pure python function. N)rLr[r_NonUserDefinedCallables)riZ method_namemethr r r "_signature_get_user_defined_methods   rc Cs|j}t|}|jpd}|jp$i}|r2||}z|j|i|}Wn8ty~}z d|} t| |WYd}~n d}~00d} |D] \} } z|j | } Wnt yYnl0| j t ur| | q| j tur| |vrd} | j| d|| <n| | jq| j tur"| j| d|| <| r| j t us6J| j turf|| jtd}||| <|| q| j ttfvr|| q| j tur| | jq|j|dS) zPrivate helper to calculate how 'wrapped_sig' signature will look like after applying a 'functools.partial' object (or alike) on it. r z+partial object {!r} has incorrect argumentsNFT)rYrxrV)rVrrKrkeywords bind_partialrrr argumentsrrxrXrrZrkrNr\ move_to_endr]r[rW) wrapped_sigpartial extra_argsZ old_params new_paramsZ partial_argsZpartial_keywordsZbar`rZtransform_to_kwonly param_namerdZ arg_valueZ new_paramr r r _signature_get_partialsN                rcCslt|j}|r$|djttfvr,td|dj}|ttfvrP|dd}n|t ur`td|j |dS)zWPrivate helper to transform signatures for unbound functions to bound methods. rzinvalid method signaturerNzinvalid argument typer) rorVrWrxr]r\rrZrXr[rk)r_paramsrxr r r _signature_bound_method.s  rcCs&t|p$t|p$t|tp$|ttfvS)zxPrivate helper to test if `obj` is a callable that might support Argument Clinic's __text_signature__ protocol. )rBrrrr r r+r r r _signature_is_builtinHs rcCst|rt|rdSt|dd}t|dd}t|dt}t|dt}t|dd}t|tjot|to|dusxt|to|dust|t ot|t S)zPrivate helper to test if `obj` is a duck type of FunctionType. A good example of such objects are functions compiled with Cython, which have all attributes that a pure Python function would have, but have their code statically compiled. FrNr& __defaults____kwdefaults____annotations__) callablerrL_voidrrr?rror)r,rNrrHrcrbr r r _signature_is_functionlikeTs       rcCsr|dsJ|d}|dkr*|d}|d}|dksH||ksHJ|d}|dksf||ksfJ|d|S)z Private helper to get first parameter name from a __text_signature__ of a builtin method, which should be in the following format: '($param1, ...)'. Assumptions are that the first argument won't have a default value or an annotation. z($,rr:rvr)rfind)rrZcposr r r _signature_get_bound_paramms    rcCsd|s|ddfSd}d}dd|dD}t|j}t|}d}d}g}|j} d} tj} tj} t|} | j tj ksxJ|D]} | j | j }}|| kr|dkr|rd}q||rJd}| d 7} q||d kr|rJ|dusJd}| d }q||| kr|d kr|dus J| }q||r6d}|| kr.|d ks6| d | ||dkr|| dq|d |}|||fS)a Private helper function. Takes a signature in Argument Clinic's extended signature format. Returns a tuple of three things: * that signature re-rendered in standard Python syntax, * the index of the "self" parameter (generally 0), or None if the function does not have a "self" parameter, and * the index of the last "positional only" parameter, or None if the signature has no positional-only parameters. NcSsg|]}|dqS)ascii)encode)rhlr r r rrSz6_signature_strip_non_python_syntax..rFrrTr/$rr~ r) rr"r#rrZrOP ERRORTOKENnextr ENCODINGstringr) signatureself_parameterlast_positional_onlyrrZ token_streamZ delayed_commaZskip_next_commaryr\Zcurrent_parameterrrtr r clean_signaturer r r "_signature_strip_non_python_syntaxsZ       rTc shddl|jt|\}}}d|d}z|}WntyLd}Yn0t|jshtd||j d} gj t d}it |dd} | rt j| d}|r|jt j fdd fd d  G fd d d jffd d } t| jj} t| jj} tj| | dd}|durHjnjttt|D](\}\}}| ||||kr^jq^| jjrj| | jjjt| jj | jj!D]\}}| ||q| jj"rj#| | jj"|durZsJt |dd}|du}t$|}|r@|s4|r@%dndj&jd} | d<||j dS)zdPrivate helper to parse content of '__text_signature__' and return a Signature based on it. rNzdef fooz: passz"{!r} builtin has invalid signaturercs(t|jsJ|jdur"td|jS)Nz'Annotations are not currently supported)rrzr^r)r)rr r parse_names z&_signature_fromstr..parse_namec sxzt|}Wn:tyHzt|}WntyBtYn0Yn0t|tttttt dfrn |StdSrg) eval NameError RuntimeErrorrrintfloatbytesr%r ZConstant)rrO)r module_dictsys_module_dictr r wrap_values   z&_signature_fromstr..wrap_valuecs(eZdZfddZfddZdS)z,_signature_fromstr..RewriteSymbolicscs\g}|}t|jr(||j|j}qt|js:t||jdt |}|S)Nr) rrfrZrrONamerrrreversed)rrarrOrrr r visit_Attributes    z<_signature_fromstr..RewriteSymbolics.visit_Attributecst|jjst|jSrg)rctxZLoadrrrrr r visit_Namesz7_signature_fromstr..RewriteSymbolics.visit_NameN)rrrrr r rr r RewriteSymbolicss r!cs|}|urdS|rn|turnz|}|}WntyP}Yn0|ur^dS|urj|n|}||ddS)NrYr^)_emptyrZ literal_evalrrZ)Z name_nodeZ default_noderYrNo) Parameterr!rrUinvalidrxrVrr r ps    z_signature_fromstr..p) fillvaluerrrT)'r_parameter_clsrr SyntaxErrorrZModulerrbodyrUr rLrrrrJrZNodeTransformerrrrH itertools zip_longestPOSITIONAL_ONLYPOSITIONAL_OR_KEYWORDrr7varargVAR_POSITIONAL KEYWORD_ONLYrr< kw_defaultsr VAR_KEYWORDr rrk)rir,rrOrr r Zprogramrr( module_namer'rrHr"rrNrYZ_selfZ self_isboundZ self_ismoduler ) r%r!rrUr&rxrrVrrrr _signature_fromstrsp                     r7cCsBt|std|t|dd}|s4td|t||||S)zHPrivate helper function to get signature for builtin callables. z%{!r} is not a Python builtin function__text_signature__Nz#no signature found for builtin {!r})rrrrLrr7)rirrOrr r r _signature_from_builtinVs r9c CsHd}t|s(t|rd}ntd|t|dd}|rFt||||S|j}|j}|j}|j }|j } |d|} |j } |||| } |j } |j }|j}|rt|}nd}g}||}| }| d|D]<}|rtnt}| |t}|||||d|r|d8}qt| |dD]L\}}|r&tnt}| |t}|||||||d |r|d8}q|jt@r||| }| |t}||||td| D]B}t}|dur||t}| |t}||||t|d q|jt@r2|| }|jt@r |d7}||}| |t}||||td||| d t|d S) zCPrivate helper: constructs Signature for the given python function.FTrr8Nr)r^rxr)r^rxrYrQrT__validate_parameters__)rrrrrLr7r*r&r5r4co_posonlyargcountr6rrrrrXrZrr#rZrr'r8r[r\r9r])rirrOZis_duck_functionrr%Z func_code pos_count arg_namesZ posonly_countrZkeyword_only_countZ keyword_onlyrbrHrcZpos_default_countrVZnon_default_countZ posonly_leftrNrxr^offsetrYrr r r _signature_from_functionfs                        r@)rNrOc Cstjt|||d}t|s(td|t|tjrN||j }|rJt |S|S|rvt |ddd}t|tjrv||Sz |j }Wnt yYn&0|durt|tstd||Sz |j}Wnt yYn0t|tjrZ||j}t||d}t|jd }|jtjur|St|j} | rD|| d usDJ|f| } |j| d St|snt|r|t|||d St|rt|||d St|tjr||j}t||Sd}t|trt t|d } | dur|| }nld} t |d } t |d}d |j!vr| } n0d|j!vr$|} n| dur4| } n|durB|} | durT|| }|durX|j"ddD]<}z |j#}Wnt yYn0|rlt$|||Sqlt|j"vrX|j%t&j%ur|j't&j'ur|(t&St)d|nlt|t*sXt t|d } | durXz || }Wn:t)yV}z d|}t)||WYd}~n d}~00|durt|rpt |S|St|tj+rd|}t)|t)d|dS)zQPrivate helper function to get signature for arbitrary callable objects. rMz{!r} is not a callable objectcSs t|dS)N __signature__rrr r r rRrSz*_signature_from_callable..r{Nz1unexpected object {!r} in __signature__ attributergrr)rO__call____new__rrz(no signature found for builtin type {!r}zno signature found for {!r}z,no signature found for builtin function {!r}z+callable {!r} is not supported by signature),r#rrRrrrrrrr"rrrAr[rS_partialmethod partialmethodrrrorVrWrxr%r2rkrrr@rr9r rrJrzr8r7rr rC from_callablerrrA)r,rNrOrPZ_get_signature_ofr_rErZfirst_wrapped_paramZ sig_paramsrcallZfactory_methodnewinitrPZtext_sigr`rr r r rRs                                       rRc@seZdZdZdS)rz1A private marker - used in Parameter & Signature.Nrrrrr r r r r{ src@seZdZdZdS)r#z6Marker object for Signature.empty and Parameter.empty.NrJr r r r r# sr#c@s4eZdZdZdZdZdZdZddZe dd Z d S) _ParameterKindrrrcCs|jSrg)_name_rr r r __str__ sz_ParameterKind.__str__cCst|Srg)_PARAM_NAME_MAPPINGrr r r description sz_ParameterKind.descriptionN) rrrr/r0r2r3r5rOrlrQr r r r rK srKzpositional-onlyzpositional or keywordzvariadic positionalrzvariadic keywordc@seZdZdZdZeZeZe Z e Z e ZeZeedddZddZdd Zed d Zed d ZeddZeddZeeeedddZddZddZddZddZdS)r%aRepresents a parameter in a function signature. Has the following public attributes: * name : str The name of the parameter as a string. * default : object The default value for the parameter if specified. If the parameter has no default value, this attribute is set to `Parameter.empty`. * annotation The annotation for the parameter if specified. If the parameter has no annotation, this attribute is set to `Parameter.empty`. * kind : str Describes how argument values are bound to the parameter. Possible values: `Parameter.POSITIONAL_ONLY`, `Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`, `Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`. )_name_kind_default _annotationr"cCszt||_Wn"ty0td|dYn0|turb|jttfvrbd}||jj}t|||_||_ |tur~tdt |t sdt |j }t||ddkr|ddr|jtkrd }||jj}t|t|_d |dd}|std |||_dS) Nzvalue z is not a valid Parameter.kindz({} parameters cannot have default valuesz*name is a required attribute for Parameterzname must be a str, not a {}rrrzLimplicit arguments must be passed as positional or keyword arguments, not {}z implicit{}z"{!r} is not a valid parameter name)rKrSrr#r[r]rrQrTrUrrr rrisdigitrZrX isidentifierrR)rrNrxrYr^rr r r r s6    zParameter.__init__cCs t||j|jf|j|jdfS)NrTrU)r rRrSrTrUrr r r __reduce__ s  zParameter.__reduce__cCs|d|_|d|_dS)NrTrUrXrstater r r __setstate__ s zParameter.__setstate__cCs|jSrg)rRrr r r rN szParameter.namecCs|jSrg)rTrr r r rY szParameter.defaultcCs|jSrg)rUrr r r r^ szParameter.annotationcCs|jSrg)rSrr r r rx szParameter.kind)rNrxr^rYcCsL|tur|j}|tur|j}|tur*|j}|tur8|j}t|||||dS)z+Creates a customized copy of the Parameter.r")rrRrSrUrTr )rrNrxr^rYr r r rk szParameter.replacecCs|j}|j}|jtur(d|t|j}|jturb|jturPd|t|j}nd|t|j}|tkrtd|}n|t krd|}|S)Nz{}: {}z{} = {}z{}={}rqrt) rxrRrUr#rrlrTrjr[r])rrx formattedr r r rO s    zParameter.__str__cCsd|jj|S)Nz <{} "{}">rrrrr r r __repr__* szParameter.__repr__cCst|j|j|j|jfSrg)hashrNrxr^rYrr r r __hash__- szParameter.__hash__cCsJ||ur dSt|tstS|j|jkoH|j|jkoH|j|jkoH|j|jkSNT)rr%NotImplementedrRrSrTrUrotherr r r __eq__0 s     zParameter.__eq__N)rrrrrrXr/rZr0r[r2r\r3r]r5r#rUrrYr\rlrNrYr^rxrrkrOr_rarfr r r r r% s4(     r%c@sheZdZdZdZddZeddZeddZed d Z d d Z d dZ ddZ ddZ ddZdS)BoundArgumentsaResult of `Signature.bind` call. Holds the mapping of arguments to the function's parameters. Has the following public attributes: * arguments : dict An ordered mutable mapping of parameters' names to arguments' values. Does not contain arguments' default values. * signature : Signature The Signature object that created this instance. * args : tuple Tuple of positional arguments values. * kwargs : dict Dict of keyword arguments values. )r _signature __weakref__cCs||_||_dSrg)rrh)rr rr r r rN szBoundArguments.__init__cCs|jSrg)rhrr r r r R szBoundArguments.signaturec Cs|g}|jjD]b\}}|jttfvr*qtz|j|}WntyPYqtYq0|jtkrh| |q| |qt |Srg) rhrVrKrxr]r\rrr[extendrZro)rrrrdrzr r r rV s     zBoundArguments.argsc Csi}d}|jjD]v\}}|sD|jttfvr4d}n||jvrDd}q|sJqz|j|}WntyjYq0|jtkr||q|||<q|Sr) rhrVrKrxr]r\rrupdate)rkwargsZkwargs_startedrrdrzr r r rlm s&     zBoundArguments.kwargsc Cs|j}g}|jjD]v\}}z||||fWqty|jturT|j}n$|jt urdd}n|jt urti}nYq|||fYq0qt ||_dS)zSet default values for missing arguments. For variable-positional arguments (*args) the default is an empty tuple. For variable-keyword arguments (**kwargs) the default is an empty dict. r N) rrhrVrKrZrrYr#rxr[r]r)rrZ new_argumentsrNrdvalr r r apply_defaults s     zBoundArguments.apply_defaultscCs2||ur dSt|tstS|j|jko0|j|jkSrb)rrgrcr rrdr r r rf s   zBoundArguments.__eq__cCs|d|_|d|_dS)NrhrrhrrZr r r r\ s zBoundArguments.__setstate__cCs|j|jdS)Nrororr r r __getstate__ szBoundArguments.__getstate__cCs@g}|jD]\}}|d||qd|jjd|S)Nz{}={!r}z <{} ({})>r~)rrKrZrrrr)rrrzrOr r r r_ szBoundArguments.__repr__N)rrrrrrrlr rrlrnrfr\rpr_r r r r rg; s   rgc@seZdZdZdZeZeZe Z d,e ddddZ e dd Z e d d Ze dd d dZeddZeddZeedddZddZddZddZddddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+ZdS)-rSaA Signature object represents the overall signature of a function. It stores a Parameter object for each parameter accepted by the function, as well as information specific to the function itself. A Signature object has the following public attributes and methods: * parameters : OrderedDict An ordered mapping of parameters' names to the corresponding Parameter objects (keyword-only arguments are in the same order as listed in `code.co_varnames`). * return_annotation : object The annotation for the return type of the function if specified. If the function has no annotation for its return type, this attribute is set to `Signature.empty`. * bind(*args, **kwargs) -> BoundArguments Creates a mapping from positional and keyword arguments to parameters. * bind_partial(*args, **kwargs) -> BoundArguments Creates a partial mapping from positional and keyword arguments to parameters (simulating 'functools.partial' behavior.) )_return_annotation _parametersNTr:c Cs|durt}n|rt}t}d}|D]}|j}|j} ||kr\d} | |j|j} t| n||krld}|}|ttfvr|jt ur|rd} t| nd}| |vrd| } t| ||| <q&ntdd|D}t ||_ ||_ dS) zConstructs Signature from the given list of Parameter objects and 'return_annotation'. All arguments are optional. NFz7wrong parameter order: {} parameter before {} parameterz-non-default argument follows default argumentTzduplicate parameter name: {!r}css|]}|j|fVqdSrgrrrhrdr r r rj rSz%Signature.__init__..)rrXrxrNrrQrrZrYr#rMappingProxyTyperrrq) rrVrTr;rZtop_kindZ kind_defaultsrdrxrNrr r r r s@       zSignature.__init__cCstjdtddt||S)zConstructs Signature for the given python function. Deprecated since Python 3.5, use `Signature.from_callable()`. z_inspect.Signature.from_function() is deprecated since Python 3.5, use Signature.from_callable()rrB)rDrErFr@rirr r r from_function szSignature.from_functioncCstjdtddt||S)zConstructs Signature for the given builtin function. Deprecated since Python 3.5, use `Signature.from_callable()`. z^inspect.Signature.from_builtin() is deprecated since Python 3.5, use Signature.from_callable()rrB)rDrErFr9rur r r from_builtin szSignature.from_builtinfollow_wrappedcCst|||dS)z3Constructs Signature for the given callable object.)rPrN)rR)rir,ryr r r rF) szSignature.from_callablecCs|jSrg)rrrr r r rV/ szSignature.parameterscCs|jSrgrqrr r r rT3 szSignature.return_annotation)rVrTcCs0|tur|j}|tur |j}t|||dS)zCreates a customized copy of the Signature. Pass 'parameters' and/or 'return_annotation' arguments to override them in the new copy. r))rrVrWrqr )rrVrTr r r rk7 s zSignature.replacecCs8tdd|jD}dd|jD}|||jfS)Ncss|]}|jtkr|VqdSrg)rxr\rsr r r rjG s z(Signature._hash_basis..cSsi|]}|jtkr|j|qSr )rxr\rNrsr r r rJ s z)Signature._hash_basis..)rorVrWrT)rr kwo_paramsr r r _hash_basisF szSignature._hash_basiscCs(|\}}}t|}t|||fSrg)r| frozensetrWr`)rrr{rTr r r raO s zSignature.__hash__cCs*||ur dSt|tstS||kSrb)rrSrcr|rdr r r rfT s  zSignature.__eq__Frc Csi}t|j}d}t|}z t|}Wntyz t|} Wnty`YYqYn0| jtkrtYqn| j|vr| jtkrd} | j | jd} t | d| f}YqnP| jt ks| j t ur| f}Yqn.|r| f}Yqnd} | j | jd} t | dYq0z t|} Wnty2t ddYq0| jt tfvrNt dd| jtkr||g} | |t| || j<q| j|vr| jtkrt dj | jdd||| j<qd} t||D]} | jt kr| } q| jtkrq| j} z|| }WnDtyD|s@| jtkr@| j t ur@t dj | ddYn(0| jtkrdt dj | jd||| <q|r| dur||| j<nt dj tt|d|||S) z#Private method. Don't use directly.r zA{arg!r} parameter is positional only, but was passed as a keyword)rzNz$missing a required argument: {arg!r}ztoo many positional argumentsz$multiple values for argument {arg!r}z*got an unexpected keyword argument {arg!r})r"rVrWr StopIterationrxr[rNrXrrr]rYr#r\rjror-chainrr_bound_arguments_cls)rrrlrrrVZ parameters_exZarg_valsZarg_valrdrrWZ kwargs_paramrr r r _bind[ s                   zSignature._bindcOs |||S)zGet a BoundArguments object, that maps the passed `args` and `kwargs` to the function's signature. Raises `TypeError` if the passed arguments can not be bound. rrrrlr r r bind szSignature.bindcOs|j||ddS)zGet a BoundArguments object, that partially maps the passed `args` and `kwargs` to the function's signature. Raises `TypeError` if the passed arguments can not be bound. Tr~rrr r r r szSignature.bind_partialcCs t|t|jfd|jifSNrq)r rorrrWrqrr r r rY szSignature.__reduce__cCs|d|_dSrrzrZr r r r\ szSignature.__setstate__cCsd|jj|S)Nz<{} {}>r^rr r r r_ szSignature.__repr__c Csg}d}d}|jD]d}t|}|j}|tkr6d}n|rH|dd}|tkrVd}n|tkrp|rp|dd}||q|r|ddd |}|j t urt |j }|d|7}|S)NFTrrqz({})r~z -> {}) rVrWrrxrXrZr[r\rrrTr#rl) rrvZrender_pos_only_separatorZrender_kw_only_separatorrdr]rxZrenderedZannor r r rO s0       zSignature.__str__)N)rrrrrr%r*rgrr#rUrrtrvrwrFrlrVrTrrkr|rarfrrrrYr\r_rOr r r r rS s< 6     rSrxcCstj||dS)z/Get a signature object for the passed callable.rx)rSrF)r,ryr r r r % sr c Csddl}ddl}|}|jddd|jdddd d |}|j}|d \}}}z||}} WnPty} z8d |t | j | } t | t jd t dWYd} ~ n d} ~ 00|r|d} | }| D]} t|| }q| j t jvrt dt jd t d|jrt d |t d t| t d | j|| urzt d t| jt| drt d | jn4zt|\}}WntyYn0t d |t dn t t|dS)z6 Logic for inspecting an object given at command line rNr zCThe object to be analysed. It supports the 'module:qualname' syntax)helpz-dz --details store_truez9Display info about the module rather than its source code)actionrrzFailed to import {} ({}: {}))rrrz#Can't get info for builtin modules.rz Target: {}z Origin: {}z Cached: {}z Loader: {}__path__zSubmodule search path: {}zLine: {}r)argparserArgumentParser add_argument parse_argsr partition import_modulerprr rprintrstderrexitrrLbuiltin_module_namesZdetailsr __cached__rjrrrrr*)rrparserrtargetZmod_nameZ has_attrsattrsr,rrwrpartspart__rr r r _main* s\       rr)N)N)N)F)N)r)r)r)r)r)r )T)T)T)r __author__r8rdiscollections.abcr7enumZimportlib.machineryrr-rrrrrrrrDr#roperatorrrrglobalsZmod_dictZCOMPILER_FLAG_NAMESrKrcrdrGr rrrrrrr rr*r-r.r/r1r3r5r:r<r>r@rBrCrQrerfryrVrrrrrrrrrrrrrrprZ NodeVisitorrrrr r r&r)r*r+r2r3r@rArKrLrGrerhrlrorrrrrrrrrrr_fieldsrrrrrrr rrrrrrrrrrrrrrrrrrrr rBZ_WrapperDescriptorallZ_MethodWrapperrrJZ_ClassMethodWrapperrArrrrrrrrr7r9r@rRrr#IntEnumrKr/rXr0rZr2r[r3r\r5r]rPr%rgrSr rrr r r r sr            , t$ >   /D->     \   ; < 5        0   L H   _ 8 j: