/opt/alt/python36/lib64/python3.6/__pycache__
NameSizeModeActions
abc.cpython-36.opt-1.pyc74870644editdlrm
abc.cpython-36.opt-2.pyc41230644editdlrm
abc.cpython-36.pyc75300644editdlrm
aifc.cpython-36.opt-1.pyc259580644editdlrm
aifc.cpython-36.opt-2.pyc207530644editdlrm
aifc.cpython-36.pyc259580644editdlrm
antigravity.cpython-36.opt-1.pyc7940644editdlrm
antigravity.cpython-36.opt-2.pyc6500644editdlrm
antigravity.cpython-36.pyc7940644editdlrm
argparse.cpython-36.opt-1.pyc600710644editdlrm
argparse.cpython-36.opt-2.pyc508300644editdlrm
argparse.cpython-36.pyc602050644editdlrm
ast.cpython-36.opt-1.pyc117190644editdlrm
ast.cpython-36.opt-2.pyc61340644editdlrm
ast.cpython-36.pyc117190644editdlrm
asynchat.cpython-36.opt-1.pyc68300644editdlrm
asynchat.cpython-36.opt-2.pyc54540644editdlrm
asynchat.cpython-36.pyc68300644editdlrm
asyncore.cpython-36.opt-1.pyc158530644editdlrm
asyncore.cpython-36.opt-2.pyc146490644editdlrm
asyncore.cpython-36.pyc158530644editdlrm
base64.cpython-36.opt-1.pyc169160644editdlrm
base64.cpython-36.opt-2.pyc113180644editdlrm
base64.cpython-36.pyc170740644editdlrm
bdb.cpython-36.opt-1.pyc170480644editdlrm
bdb.cpython-36.opt-2.pyc153220644editdlrm
bdb.cpython-36.pyc170480644editdlrm
binhex.cpython-36.opt-1.pyc121010644editdlrm
binhex.cpython-36.opt-2.pyc115680644editdlrm
binhex.cpython-36.pyc121010644editdlrm
bisect.cpython-36.opt-1.pyc26910644editdlrm
bisect.cpython-36.opt-2.pyc13950644editdlrm
bisect.cpython-36.pyc26910644editdlrm
bz2.cpython-36.opt-1.pyc112970644editdlrm
bz2.cpython-36.opt-2.pyc62400644editdlrm
bz2.cpython-36.pyc112970644editdlrm
calendar.cpython-36.opt-1.pyc258970644editdlrm
calendar.cpython-36.opt-2.pyc213700644editdlrm
calendar.cpython-36.pyc258970644editdlrm
cgi.cpython-36.opt-1.pyc286210644editdlrm
cgi.cpython-36.opt-2.pyc194820644editdlrm
cgi.cpython-36.pyc286210644editdlrm
cgitb.cpython-36.opt-1.pyc100950644editdlrm
cgitb.cpython-36.opt-2.pyc84960644editdlrm
cgitb.cpython-36.pyc100950644editdlrm
chunk.cpython-36.opt-1.pyc49150644editdlrm
chunk.cpython-36.opt-2.pyc27690644editdlrm
chunk.cpython-36.pyc49150644editdlrm
cmd.cpython-36.opt-1.pyc125900644editdlrm
cmd.cpython-36.opt-2.pyc71510644editdlrm
cmd.cpython-36.pyc125900644editdlrm
code.cpython-36.opt-1.pyc98510644editdlrm
code.cpython-36.opt-2.pyc45750644editdlrm
code.cpython-36.pyc98510644editdlrm
codecs.cpython-36.opt-1.pyc339150644editdlrm
codecs.cpython-36.opt-2.pyc180670644editdlrm
codecs.cpython-36.pyc339150644editdlrm
codeop.cpython-36.opt-1.pyc62850644editdlrm
codeop.cpython-36.opt-2.pyc22380644editdlrm
codeop.cpython-36.pyc62850644editdlrm
colorsys.cpython-36.opt-1.pyc33260644editdlrm
colorsys.cpython-36.opt-2.pyc27200644editdlrm
colorsys.cpython-36.pyc33260644editdlrm
compileall.cpython-36.opt-1.pyc82930644editdlrm
compileall.cpython-36.opt-2.pyc61550644editdlrm
compileall.cpython-36.pyc82930644editdlrm
configparser.cpython-36.opt-1.pyc452590644editdlrm
configparser.cpython-36.opt-2.pyc305710644editdlrm
configparser.cpython-36.pyc452590644editdlrm
contextlib.cpython-36.opt-1.pyc111730644editdlrm
contextlib.cpython-36.opt-2.pyc78270644editdlrm
contextlib.cpython-36.pyc111730644editdlrm
copy.cpython-36.opt-1.pyc70940644editdlrm
copy.cpython-36.opt-2.pyc47780644editdlrm
copy.cpython-36.pyc70940644editdlrm
copyreg.cpython-36.opt-1.pyc42240644editdlrm
copyreg.cpython-36.opt-2.pyc34200644editdlrm
copyreg.cpython-36.pyc42590644editdlrm
cProfile.cpython-36.opt-1.pyc43090644editdlrm
cProfile.cpython-36.opt-2.pyc38480644editdlrm
cProfile.cpython-36.pyc43090644editdlrm
crypt.cpython-36.opt-1.pyc22570644editdlrm
crypt.cpython-36.opt-2.pyc15930644editdlrm
crypt.cpython-36.pyc22570644editdlrm
csv.cpython-36.opt-1.pyc118700644editdlrm
csv.cpython-36.opt-2.pyc98310644editdlrm
csv.cpython-36.pyc118700644editdlrm
datetime.cpython-36.opt-1.pyc530730644editdlrm
datetime.cpython-36.opt-2.pyc442230644editdlrm
datetime.cpython-36.pyc545260644editdlrm
decimal.cpython-36.opt-1.pyc3660644editdlrm
decimal.cpython-36.opt-2.pyc3660644editdlrm
decimal.cpython-36.pyc3660644editdlrm
difflib.cpython-36.opt-1.pyc596190644editdlrm
difflib.cpython-36.opt-2.pyc250490644editdlrm
difflib.cpython-36.pyc596570644editdlrm
dis.cpython-36.opt-1.pyc141960644editdlrm
dis.cpython-36.opt-2.pyc106640644editdlrm
dis.cpython-36.pyc141960644editdlrm
doctest.cpython-36.opt-1.pyc753590644editdlrm
doctest.cpython-36.opt-2.pyc400320644editdlrm
doctest.cpython-36.pyc756040644editdlrm
dummy_threading.cpython-36.opt-1.pyc11170644editdlrm
dummy_threading.cpython-36.opt-2.pyc7440644editdlrm
dummy_threading.cpython-36.pyc11170644editdlrm
enum.cpython-36.opt-1.pyc234680644editdlrm
enum.cpython-36.opt-2.pyc191750644editdlrm
enum.cpython-36.pyc234680644editdlrm
filecmp.cpython-36.opt-1.pyc83200644editdlrm
filecmp.cpython-36.opt-2.pyc59030644editdlrm
filecmp.cpython-36.pyc83200644editdlrm
fileinput.cpython-36.opt-1.pyc131670644editdlrm
fileinput.cpython-36.opt-2.pyc76280644editdlrm
fileinput.cpython-36.pyc131670644editdlrm
fnmatch.cpython-36.opt-1.pyc28890644editdlrm
fnmatch.cpython-36.opt-2.pyc17000644editdlrm
fnmatch.cpython-36.pyc28890644editdlrm
formatter.cpython-36.opt-1.pyc175940644editdlrm
formatter.cpython-36.opt-2.pyc151540644editdlrm
formatter.cpython-36.pyc175940644editdlrm
fractions.cpython-36.opt-1.pyc184410644editdlrm
fractions.cpython-36.opt-2.pyc111550644editdlrm
fractions.cpython-36.pyc184410644editdlrm
ftplib.cpython-36.opt-1.pyc283720644editdlrm
ftplib.cpython-36.opt-2.pyc185680644editdlrm
ftplib.cpython-36.pyc283720644editdlrm
functools.cpython-36.opt-1.pyc240770644editdlrm
functools.cpython-36.opt-2.pyc181060644editdlrm
functools.cpython-36.pyc240770644editdlrm
genericpath.cpython-36.opt-1.pyc37410644editdlrm
genericpath.cpython-36.opt-2.pyc27480644editdlrm
genericpath.cpython-36.pyc37410644editdlrm
getopt.cpython-36.opt-1.pyc61980644editdlrm
getopt.cpython-36.opt-2.pyc36440644editdlrm
getopt.cpython-36.pyc62320644editdlrm
getpass.cpython-36.opt-1.pyc41920644editdlrm
getpass.cpython-36.opt-2.pyc30070644editdlrm
getpass.cpython-36.pyc41920644editdlrm
gettext.cpython-36.opt-1.pyc142120644editdlrm
gettext.cpython-36.opt-2.pyc135210644editdlrm
gettext.cpython-36.pyc142120644editdlrm
glob.cpython-36.opt-1.pyc42050644editdlrm
glob.cpython-36.opt-2.pyc33450644editdlrm
glob.cpython-36.pyc42740644editdlrm
gzip.cpython-36.opt-1.pyc162410644editdlrm
gzip.cpython-36.opt-2.pyc124350644editdlrm
gzip.cpython-36.pyc162410644editdlrm
hashlib.cpython-36.opt-1.pyc67070644editdlrm
hashlib.cpython-36.opt-2.pyc61350644editdlrm
hashlib.cpython-36.pyc67070644editdlrm
heapq.cpython-36.opt-1.pyc143070644editdlrm
heapq.cpython-36.opt-2.pyc113170644editdlrm
heapq.cpython-36.pyc143070644editdlrm
hmac.cpython-36.opt-1.pyc48510644editdlrm
hmac.cpython-36.opt-2.pyc30400644editdlrm
hmac.cpython-36.pyc48510644editdlrm
imaplib.cpython-36.opt-1.pyc399340644editdlrm
imaplib.cpython-36.opt-2.pyc278460644editdlrm
imaplib.cpython-36.pyc421530644editdlrm
imghdr.cpython-36.opt-1.pyc41650644editdlrm
imghdr.cpython-36.opt-2.pyc38500644editdlrm
imghdr.cpython-36.pyc41650644editdlrm
imp.cpython-36.opt-1.pyc97110644editdlrm
imp.cpython-36.opt-2.pyc73080644editdlrm
imp.cpython-36.pyc97110644editdlrm
inspect.cpython-36.opt-1.pyc794540644editdlrm
inspect.cpython-36.opt-2.pyc540390644editdlrm
inspect.cpython-36.pyc797540644editdlrm
io.cpython-36.opt-1.pyc34020644editdlrm
io.cpython-36.opt-2.pyc19110644editdlrm
io.cpython-36.pyc34020644editdlrm
ipaddress.cpython-36.opt-1.pyc624010644editdlrm
ipaddress.cpython-36.opt-2.pyc368150644editdlrm
ipaddress.cpython-36.pyc624010644editdlrm
keyword.cpython-36.opt-1.pyc17800644editdlrm
keyword.cpython-36.opt-2.pyc15120644editdlrm
keyword.cpython-36.pyc17800644editdlrm
linecache.cpython-36.opt-1.pyc37930644editdlrm
linecache.cpython-36.opt-2.pyc26880644editdlrm
linecache.cpython-36.pyc37930644editdlrm
locale.cpython-36.opt-1.pyc340600644editdlrm
locale.cpython-36.opt-2.pyc294350644editdlrm
locale.cpython-36.pyc340600644editdlrm
lzma.cpython-36.opt-1.pyc120070644editdlrm
lzma.cpython-36.opt-2.pyc58160644editdlrm
lzma.cpython-36.pyc120070644editdlrm
macpath.cpython-36.opt-1.pyc56560644editdlrm
macpath.cpython-36.opt-2.pyc43900644editdlrm
macpath.cpython-36.pyc56560644editdlrm
macurl2path.cpython-36.opt-1.pyc18820644editdlrm
macurl2path.cpython-36.opt-2.pyc15020644editdlrm
macurl2path.cpython-36.pyc18820644editdlrm
mailbox.cpython-36.opt-1.pyc636850644editdlrm
mailbox.cpython-36.opt-2.pyc545380644editdlrm
mailbox.cpython-36.pyc637670644editdlrm
mailcap.cpython-36.opt-1.pyc64930644editdlrm
mailcap.cpython-36.opt-2.pyc49750644editdlrm
mailcap.cpython-36.pyc64930644editdlrm
mimetypes.cpython-36.opt-1.pyc155680644editdlrm
mimetypes.cpython-36.opt-2.pyc95700644editdlrm
mimetypes.cpython-36.pyc155680644editdlrm
modulefinder.cpython-36.opt-1.pyc153190644editdlrm
modulefinder.cpython-36.opt-2.pyc144780644editdlrm
modulefinder.cpython-36.pyc153810644editdlrm
netrc.cpython-36.opt-1.pyc38510644editdlrm
netrc.cpython-36.opt-2.pyc36130644editdlrm
netrc.cpython-36.pyc38510644editdlrm
nntplib.cpython-36.opt-1.pyc337950644editdlrm
nntplib.cpython-36.opt-2.pyc212540644editdlrm
nntplib.cpython-36.pyc337950644editdlrm
ntpath.cpython-36.opt-1.pyc137650644editdlrm
ntpath.cpython-36.opt-2.pyc112940644editdlrm
ntpath.cpython-36.pyc137650644editdlrm
nturl2path.cpython-36.opt-1.pyc15140644editdlrm
nturl2path.cpython-36.opt-2.pyc11960644editdlrm
nturl2path.cpython-36.pyc15140644editdlrm
numbers.cpython-36.opt-1.pyc121570644editdlrm
numbers.cpython-36.opt-2.pyc81960644editdlrm
numbers.cpython-36.pyc121570644editdlrm
opcode.cpython-36.opt-1.pyc54280644editdlrm
opcode.cpython-36.opt-2.pyc52880644editdlrm
opcode.cpython-36.pyc54280644editdlrm
operator.cpython-36.opt-1.pyc139280644editdlrm
operator.cpython-36.opt-2.pyc114690644editdlrm
operator.cpython-36.pyc139280644editdlrm
optparse.cpython-36.opt-1.pyc480010644editdlrm
optparse.cpython-36.opt-2.pyc356460644editdlrm
optparse.cpython-36.pyc480690644editdlrm
os.cpython-36.opt-1.pyc296430644editdlrm
os.cpython-36.opt-2.pyc177940644editdlrm
os.cpython-36.pyc296430644editdlrm
pathlib.cpython-36.opt-1.pyc420220644editdlrm
pathlib.cpython-36.opt-2.pyc343800644editdlrm
pathlib.cpython-36.pyc420220644editdlrm
pdb.cpython-36.opt-1.pyc460520644editdlrm
pdb.cpython-36.opt-2.pyc319850644editdlrm
pdb.cpython-36.pyc461090644editdlrm
pickle.cpython-36.opt-1.pyc425890644editdlrm
pickle.cpython-36.opt-2.pyc378010644editdlrm
pickle.cpython-36.pyc427060644editdlrm
pickletools.cpython-36.opt-1.pyc651840644editdlrm
pickletools.cpython-36.opt-2.pyc564430644editdlrm
pickletools.cpython-36.pyc660350644editdlrm
pipes.cpython-36.opt-1.pyc78230644editdlrm
pipes.cpython-36.opt-2.pyc49500644editdlrm
pipes.cpython-36.pyc78230644editdlrm
pkgutil.cpython-36.opt-1.pyc162760644editdlrm
pkgutil.cpython-36.opt-2.pyc110160644editdlrm
pkgutil.cpython-36.pyc162760644editdlrm
platform.cpython-36.opt-1.pyc286460644editdlrm
platform.cpython-36.opt-2.pyc193980644editdlrm
platform.cpython-36.pyc286460644editdlrm
plistlib.cpython-36.opt-1.pyc280030644editdlrm
plistlib.cpython-36.opt-2.pyc247490644editdlrm
plistlib.cpython-36.pyc280700644editdlrm
poplib.cpython-36.opt-1.pyc133440644editdlrm
poplib.cpython-36.opt-2.pyc84130644editdlrm
poplib.cpython-36.pyc133440644editdlrm
posixpath.cpython-36.opt-1.pyc104380644editdlrm
posixpath.cpython-36.opt-2.pyc87170644editdlrm
posixpath.cpython-36.pyc104380644editdlrm
pprint.cpython-36.opt-1.pyc157840644editdlrm
pprint.cpython-36.opt-2.pyc137200644editdlrm
pprint.cpython-36.pyc158390644editdlrm
profile.cpython-36.opt-1.pyc137100644editdlrm
profile.cpython-36.opt-2.pyc107280644editdlrm
profile.cpython-36.pyc139160644editdlrm
pstats.cpython-36.opt-1.pyc218720644editdlrm
pstats.cpython-36.opt-2.pyc194180644editdlrm
pstats.cpython-36.pyc218720644editdlrm
pty.cpython-36.opt-1.pyc38760644editdlrm
pty.cpython-36.opt-2.pyc30230644editdlrm
pty.cpython-36.pyc38760644editdlrm
pyclbr.cpython-36.opt-1.pyc83800644editdlrm
pyclbr.cpython-36.opt-2.pyc55840644editdlrm
pyclbr.cpython-36.pyc83800644editdlrm
pydoc.cpython-36.opt-1.pyc834580644editdlrm
pydoc.cpython-36.opt-2.pyc742570644editdlrm
pydoc.cpython-36.pyc835110644editdlrm
py_compile.cpython-36.opt-1.pyc65590644editdlrm
py_compile.cpython-36.opt-2.pyc29550644editdlrm
py_compile.cpython-36.pyc65590644editdlrm
queue.cpython-36.opt-1.pyc87700644editdlrm
queue.cpython-36.opt-2.pyc49800644editdlrm
queue.cpython-36.pyc87700644editdlrm
quopri.cpython-36.opt-1.pyc56130644editdlrm
quopri.cpython-36.opt-2.pyc45770644editdlrm
quopri.cpython-36.pyc57880644editdlrm
random.cpython-36.opt-1.pyc193450644editdlrm
random.cpython-36.opt-2.pyc128040644editdlrm
random.cpython-36.pyc193450644editdlrm
re.cpython-36.opt-1.pyc140730644editdlrm
re.cpython-36.opt-2.pyc57930644editdlrm
re.cpython-36.pyc140730644editdlrm
reprlib.cpython-36.opt-1.pyc54150644editdlrm
reprlib.cpython-36.opt-2.pyc52590644editdlrm
reprlib.cpython-36.pyc54150644editdlrm
rlcompleter.cpython-36.opt-1.pyc57950644editdlrm
rlcompleter.cpython-36.opt-2.pyc31320644editdlrm
rlcompleter.cpython-36.pyc57950644editdlrm
runpy.cpython-36.opt-1.pyc79970644editdlrm
runpy.cpython-36.opt-2.pyc64540644editdlrm
runpy.cpython-36.pyc79970644editdlrm
sched.cpython-36.opt-1.pyc65790644editdlrm
sched.cpython-36.opt-2.pyc35390644editdlrm
sched.cpython-36.pyc65790644editdlrm
secrets.cpython-36.opt-1.pyc21770644editdlrm
secrets.cpython-36.opt-2.pyc11190644editdlrm
secrets.cpython-36.pyc21770644editdlrm
selectors.cpython-36.opt-1.pyc177120644editdlrm
selectors.cpython-36.opt-2.pyc137360644editdlrm
selectors.cpython-36.pyc177120644editdlrm
shelve.cpython-36.opt-1.pyc94730644editdlrm
shelve.cpython-36.opt-2.pyc53200644editdlrm
shelve.cpython-36.pyc94730644editdlrm
shlex.cpython-36.opt-1.pyc69850644editdlrm
shlex.cpython-36.opt-2.pyc64730644editdlrm
shlex.cpython-36.pyc69850644editdlrm
shutil.cpython-36.opt-1.pyc307190644editdlrm
shutil.cpython-36.opt-2.pyc199460644editdlrm
shutil.cpython-36.pyc307190644editdlrm
signal.cpython-36.opt-1.pyc25300644editdlrm
signal.cpython-36.opt-2.pyc23020644editdlrm
signal.cpython-36.pyc25300644editdlrm
site.cpython-36.opt-1.pyc161550644editdlrm
site.cpython-36.opt-2.pyc106050644editdlrm
site.cpython-36.pyc161550644editdlrm
smtpd.cpython-36.opt-1.pyc266980644editdlrm
smtpd.cpython-36.opt-2.pyc240790644editdlrm
smtpd.cpython-36.pyc266980644editdlrm
smtplib.cpython-36.opt-1.pyc354310644editdlrm
smtplib.cpython-36.opt-2.pyc190190644editdlrm
smtplib.cpython-36.pyc354920644editdlrm
sndhdr.cpython-36.opt-1.pyc69280644editdlrm
sndhdr.cpython-36.opt-2.pyc56530644editdlrm
sndhdr.cpython-36.pyc69280644editdlrm
socket.cpython-36.opt-1.pyc219880644editdlrm
socket.cpython-36.opt-2.pyc145540644editdlrm
socket.cpython-36.pyc220280644editdlrm
socketserver.cpython-36.opt-1.pyc242650644editdlrm
socketserver.cpython-36.opt-2.pyc133400644editdlrm
socketserver.cpython-36.pyc242650644editdlrm
sre_compile.cpython-36.opt-1.pyc101530644editdlrm
sre_compile.cpython-36.opt-2.pyc97390644editdlrm
sre_compile.cpython-36.pyc102930644editdlrm
sre_constants.cpython-36.opt-1.pyc59870644editdlrm
sre_constants.cpython-36.opt-2.pyc55620644editdlrm
sre_constants.cpython-36.pyc59870644editdlrm
sre_parse.cpython-36.opt-1.pyc203260644editdlrm
sre_parse.cpython-36.opt-2.pyc202780644editdlrm
sre_parse.cpython-36.pyc203730644editdlrm
ssl.cpython-36.opt-1.pyc365170644editdlrm
ssl.cpython-36.opt-2.pyc269930644editdlrm
ssl.cpython-36.pyc365170644editdlrm
stat.cpython-36.opt-1.pyc38660644editdlrm
stat.cpython-36.opt-2.pyc31880644editdlrm
stat.cpython-36.pyc38660644editdlrm
statistics.cpython-36.opt-1.pyc179480644editdlrm
statistics.cpython-36.opt-2.pyc72610644editdlrm
statistics.cpython-36.pyc181890644editdlrm
string.cpython-36.opt-1.pyc79790644editdlrm
string.cpython-36.opt-2.pyc68730644editdlrm
string.cpython-36.pyc79790644editdlrm
stringprep.cpython-36.opt-1.pyc99870644editdlrm
stringprep.cpython-36.opt-2.pyc97670644editdlrm
stringprep.cpython-36.pyc100450644editdlrm
struct.cpython-36.opt-1.pyc3270644editdlrm
struct.cpython-36.opt-2.pyc3270644editdlrm
struct.cpython-36.pyc3270644editdlrm
subprocess.cpython-36.opt-1.pyc353990644editdlrm
subprocess.cpython-36.opt-2.pyc246850644editdlrm
subprocess.cpython-36.pyc355000644editdlrm
sunau.cpython-36.opt-1.pyc169530644editdlrm
sunau.cpython-36.opt-2.pyc123630644editdlrm
sunau.cpython-36.pyc169530644editdlrm
symbol.cpython-36.opt-1.pyc25320644editdlrm
symbol.cpython-36.opt-2.pyc24560644editdlrm
symbol.cpython-36.pyc25320644editdlrm
symtable.cpython-36.opt-1.pyc103360644editdlrm
symtable.cpython-36.opt-2.pyc96390644editdlrm
symtable.cpython-36.pyc104430644editdlrm
sysconfig.cpython-36.opt-1.pyc159420644editdlrm
sysconfig.cpython-36.opt-2.pyc133720644editdlrm
sysconfig.cpython-36.pyc159420644editdlrm
tabnanny.cpython-36.opt-1.pyc69900644editdlrm
tabnanny.cpython-36.opt-2.pyc60570644editdlrm
tabnanny.cpython-36.pyc69900644editdlrm
tarfile.cpython-36.opt-1.pyc627030644editdlrm
tarfile.cpython-36.opt-2.pyc489040644editdlrm
tarfile.cpython-36.pyc627030644editdlrm
telnetlib.cpython-36.opt-1.pyc181120644editdlrm
telnetlib.cpython-36.opt-2.pyc106020644editdlrm
telnetlib.cpython-36.pyc181120644editdlrm
tempfile.cpython-36.opt-1.pyc222420644editdlrm
tempfile.cpython-36.opt-2.pyc157700644editdlrm
tempfile.cpython-36.pyc222420644editdlrm
textwrap.cpython-36.opt-1.pyc136250644editdlrm
textwrap.cpython-36.opt-2.pyc63280644editdlrm
textwrap.cpython-36.pyc136990644editdlrm
this.cpython-36.opt-1.pyc12800644editdlrm
this.cpython-36.opt-2.pyc12800644editdlrm
this.cpython-36.pyc12800644editdlrm
threading.cpython-36.opt-1.pyc365960644editdlrm
threading.cpython-36.opt-2.pyc205550644editdlrm
threading.cpython-36.pyc372490644editdlrm
timeit.cpython-36.opt-1.pyc116180644editdlrm
timeit.cpython-36.opt-2.pyc56370644editdlrm
timeit.cpython-36.pyc116180644editdlrm
token.cpython-36.opt-1.pyc33350644editdlrm
token.cpython-36.opt-2.pyc32850644editdlrm
token.cpython-36.pyc33350644editdlrm
tokenize.cpython-36.opt-1.pyc186160644editdlrm
tokenize.cpython-36.opt-2.pyc150160644editdlrm
tokenize.cpython-36.pyc186620644editdlrm
trace.cpython-36.opt-1.pyc195100644editdlrm
trace.cpython-36.opt-2.pyc165070644editdlrm
trace.cpython-36.pyc195100644editdlrm
traceback.cpython-36.opt-1.pyc196610644editdlrm
traceback.cpython-36.opt-2.pyc107600644editdlrm
traceback.cpython-36.pyc196610644editdlrm
tracemalloc.cpython-36.opt-1.pyc172440644editdlrm
tracemalloc.cpython-36.opt-2.pyc158280644editdlrm
tracemalloc.cpython-36.pyc172440644editdlrm
tty.cpython-36.opt-1.pyc10870644editdlrm
tty.cpython-36.opt-2.pyc9860644editdlrm
tty.cpython-36.pyc10870644editdlrm
types.cpython-36.opt-1.pyc82160644editdlrm
types.cpython-36.opt-2.pyc70490644editdlrm
types.cpython-36.pyc82160644editdlrm
typing.cpython-36.opt-1.pyc729130644editdlrm
typing.cpython-36.opt-2.pyc560620644editdlrm
typing.cpython-36.pyc733210644editdlrm
uu.cpython-36.opt-1.pyc35660644editdlrm
uu.cpython-36.opt-2.pyc33480644editdlrm
uu.cpython-36.pyc35660644editdlrm
uuid.cpython-36.opt-1.pyc207970644editdlrm
uuid.cpython-36.opt-2.pyc141290644editdlrm
uuid.cpython-36.pyc209330644editdlrm
warnings.cpython-36.opt-1.pyc126810644editdlrm
warnings.cpython-36.opt-2.pyc103010644editdlrm
warnings.cpython-36.pyc132730644editdlrm
wave.cpython-36.opt-1.pyc178480644editdlrm
wave.cpython-36.opt-2.pyc118570644editdlrm
wave.cpython-36.pyc179000644editdlrm
weakref.cpython-36.opt-1.pyc191280644editdlrm
weakref.cpython-36.opt-2.pyc158280644editdlrm
weakref.cpython-36.pyc191580644editdlrm
webbrowser.cpython-36.opt-1.pyc157790644editdlrm
webbrowser.cpython-36.opt-2.pyc139100644editdlrm
webbrowser.cpython-36.pyc158120644editdlrm
xdrlib.cpython-36.opt-1.pyc83170644editdlrm
xdrlib.cpython-36.opt-2.pyc78320644editdlrm
xdrlib.cpython-36.pyc83170644editdlrm
zipapp.cpython-36.opt-1.pyc55490644editdlrm
zipapp.cpython-36.opt-2.pyc43730644editdlrm
zipapp.cpython-36.pyc55490644editdlrm
zipfile.cpython-36.opt-1.pyc486170644editdlrm
zipfile.cpython-36.opt-2.pyc421140644editdlrm
zipfile.cpython-36.pyc486850644editdlrm
_bootlocale.cpython-36.opt-1.pyc9670644editdlrm
_bootlocale.cpython-36.opt-2.pyc7420644editdlrm
_bootlocale.cpython-36.pyc9950644editdlrm
_collections_abc.cpython-36.opt-1.pyc288120644editdlrm
_collections_abc.cpython-36.opt-2.pyc236600644editdlrm
_collections_abc.cpython-36.pyc288120644editdlrm
_compat_pickle.cpython-36.opt-1.pyc65230644editdlrm
_compat_pickle.cpython-36.opt-2.pyc65230644editdlrm
_compat_pickle.cpython-36.pyc65810644editdlrm
_compression.cpython-36.opt-1.pyc41190644editdlrm
_compression.cpython-36.opt-2.pyc39030644editdlrm
_compression.cpython-36.pyc41190644editdlrm
_dummy_thread.cpython-36.opt-1.pyc48660644editdlrm
_dummy_thread.cpython-36.opt-2.pyc26580644editdlrm
_dummy_thread.cpython-36.pyc48660644editdlrm
_markupbase.cpython-36.opt-1.pyc78370644editdlrm
_markupbase.cpython-36.opt-2.pyc74570644editdlrm
_markupbase.cpython-36.pyc80060644editdlrm
_osx_support.cpython-36.opt-1.pyc97210644editdlrm
_osx_support.cpython-36.opt-2.pyc72720644editdlrm
_osx_support.cpython-36.pyc97210644editdlrm
_pydecimal.cpython-36.opt-1.pyc1634170644editdlrm
_pydecimal.cpython-36.opt-2.pyc820100644editdlrm
_pydecimal.cpython-36.pyc1634170644editdlrm
_pyio.cpython-36.opt-1.pyc713830644editdlrm
_pyio.cpython-36.opt-2.pyc489880644editdlrm
_pyio.cpython-36.pyc714010644editdlrm
_sitebuiltins.cpython-36.opt-1.pyc34500644editdlrm
_sitebuiltins.cpython-36.opt-2.pyc29260644editdlrm
_sitebuiltins.cpython-36.pyc34500644editdlrm
_strptime.cpython-36.opt-1.pyc159780644editdlrm
_strptime.cpython-36.opt-2.pyc122480644editdlrm
_strptime.cpython-36.pyc159780644editdlrm
_sysconfigdata_dm_linux_x86_64-linux-gnu.cpython-36.opt-1.pyc198750644editdlrm
_sysconfigdata_dm_linux_x86_64-linux-gnu.cpython-36.opt-2.pyc198750644editdlrm
_sysconfigdata_dm_linux_x86_64-linux-gnu.cpython-36.pyc198750644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-1.pyc195440644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-2.pyc195440644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc195440644editdlrm
_threading_local.cpython-36.opt-1.pyc64400644editdlrm
_threading_local.cpython-36.opt-2.pyc31250644editdlrm
_threading_local.cpython-36.pyc64400644editdlrm
_weakrefset.cpython-36.opt-1.pyc78430644editdlrm
_weakrefset.cpython-36.opt-2.pyc78430644editdlrm
_weakrefset.cpython-36.pyc78430644editdlrm
__future__.cpython-36.opt-1.pyc41820644editdlrm
__future__.cpython-36.opt-2.pyc22060644editdlrm
__future__.cpython-36.pyc41820644editdlrm
__phello__.foo.cpython-36.opt-1.pyc1340644editdlrm
__phello__.foo.cpython-36.opt-2.pyc1340644editdlrm
__phello__.foo.cpython-36.pyc1340644editdlrm
Edit: /opt/alt/python36/lib64/python3.6/__pycache__/inspect.cpython-36.pyc (79754B)
3 jf @sdZdZddlZddlZddlZddlZddlZddlZ ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlmZddlmZmZeZx"ejjD]\ZZeede<qWdZd d Z d d Z!ddZ"ddZ#ddZ$e%edrddZ&nddZ&e%edr6ddZ'nddZ'ddZ(ddZ)d d!Z*d"d#Z+d$d%Z,d&d'Z-d(d)Z.d*d+Z/d,d-Z0d.d/Z1d0d1Z2d2d3Z3d4d5Z4d6d7Z5dd8d9Z6ed:d;Z7dd?Z9dd@dAdBZ:dCdDZ;dEdFZdKdLZ?dMdNZ@dOdPZAdQdRZBddSdTZCiZDiZEddUdVZFdWdXZGdYdZZHGd[d\d\eIZJGd]d^d^ZKd_d`ZLdadbZMdcddZNdedfZOddhdiZPedjdkZQdldmZRdndoZSedpdqZTdrdsZUedtduZVdvdwZWedxdyZXdzd{ZYdd|d}ZZd~dZ[dddfiie\ddddddddeZf ddZ]e\ddddddfddZ^ddZ_ddZ`ddZaeddZbddZceddZddddZeddZfeddedjgZhdddZidddZjddZkdddZldddZmenZoddZpddZqddZrddZsddZteofddZudZvdZwdZxdZyddZzddZ{dZ|dZ}dZ~dZddZddÄZeejZeejZeejdZeeeejfZddƄZffddȄZddʄZdd̄Zdd΄ZddЄZdd҄ZdddՄZdddׄZddلZdddڜdd܄ZGddބdރZGdddZGdddejZejZejZejZejZejZededededediZejZGdddZGdddZGdddZddddZddZedkredS(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 formatargspec(), 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 Ka-Ping Yee 'Yury Selivanov N) attrgetter) namedtuple OrderedDictZCO_cCs 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 ModuleType)objectr ,/opt/alt/python36/lib64/python3.6/inspect.pyismodule@srcCs 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)r type)r r r risclassIsrcCs 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)r r MethodType)r r r rismethodQsrcCs: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 isfunctionrhasattr)r tpr r rismethoddescriptor[srcCs8t|st|st|rdSt|}t|do6t|dS)aReturn true if the object is a data descriptor. Data descriptors have both a __get__ and a __set__ 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.Frr)rrrrr)r rr r risdatadescriptorosrMemberDescriptorTypecCs t|tjS)zReturn true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.)r r r)r r r rismemberdescriptorsrcCsdS)zReturn true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.Fr )r r r rrsGetSetDescriptorTypecCs t|tjS)zReturn true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.)r r r)r r r risgetsetdescriptorsrcCsdS)zReturn true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.Fr )r r r rrscCs 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)r r FunctionType)r r r rrs rcCs tt|st|o|jjt@S)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.)boolrr__code__co_flagsZ CO_GENERATOR)r r r risgeneratorfunctionsr#cCs tt|st|o|jjt@S)zuReturn true if the object is a coroutine function. Coroutine functions are defined with "async def" syntax. )r rrr!r"Z CO_COROUTINE)r r r riscoroutinefunctionsr$cCs tt|st|o|jjt@S)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 rrr!r"ZCO_ASYNC_GENERATOR)r r r risasyncgenfunctionsr%cCs t|tjS)z7Return true if the object is an asynchronous generator.)r r AsyncGeneratorType)r r r r isasyncgensr'cCs 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)r r GeneratorType)r r r r isgeneratorsr)cCs t|tjS)z)Return true if the object is a coroutine.)r r CoroutineType)r r r r iscoroutinesr+cCs6t|tjp4t|tjr(t|jjt@p4t|tj j S)z?Return true if object can be passed to an ``await`` expression.) r r r*r(r gi_coder"ZCO_ITERABLE_COROUTINE collectionsabc Awaitable)r r r r isawaitables  r0cCs 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))r r TracebackType)r r r r istracebacksr2cCs 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)r r FrameType)r r r risframes r4cCs t|tjS)aEReturn 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_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)r r CodeType)r r r riscodesr6cCs 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)r r BuiltinFunctionType)r r r r isbuiltinsr8cCs t|pt|pt|pt|S)zdSx&|jj D]\}}t |ddrJdSqJWx@|j D]6}x0t |dfD] }t ||d}t |ddrdSqWqnWdS)z:Return true if the object is an abstract base class (ABC).FT__abstractmethods____isabstractmethod__N) r r __flags__TPFLAGS_IS_ABSTRACT issubclassr.ABCMetar__dict__itemsgetattr __bases__)r namevaluebaser r r isabstract%s"        rGc Cs&t|r|ft|}nf}g}t}t|}yBx<|jD]2}x,|jjD]\}}t|tj rH|j |qHWq8WWnt k rYnXx|D]} yt || } | |krt Wn:t k rx$|D]}| |jkr|j| } PqWwYnX| s|| r|j | | f|j | qW|jddd|S)zReturn all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.cSs|dS)Nrr )Zpairr r rfszgetmembers..)key)rgetmrosetdirrCr@rAr r DynamicClassAttributeappendAttributeErrorrBaddsort) r Z predicatemroresults processednamesrFkvrIrEr r r getmembers=s:       rX Attributezname kind defining_class objectcCs\t|}tt|}tdd|D}|f|}||}t|}x:|D]2}x,|jjD]\}}t|tjrV|j |qVWqFWg} t } x|D]} d} d} d}| | kry| dkrt dt || } Wn"t k r}zWYdd}~XnXt | d| } | |krd} d}x(|D] }t || d}|| kr|}qWxH|D]@}y|j || }Wntk rhw:YnX|| kr:|}q:W|dk r|} x4|D],}| |jkr|j| }| |kr|} PqW| dkrq| dk r| n|}t|trd}|}n@t|tr d}|}n*t|tr"d }|}nt|r2d }nd }| j t| || || j| qW| 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. cSsg|]}|ttfkr|qSr )rr ).0clsr r r sz(classify_class_attrs..Nr@z)__dict__ is special, don't want the proxy __objclass__z static methodz class methodpropertymethoddata)rJrtuplerLr@rAr r rMrNrK ExceptionrB __getattr__rO staticmethod classmethodr^r9rYrP)r[rRZmetamroZ class_basesZ all_basesrUrFrVrWresultrTrDZhomeclsZget_objZdict_objexcZlast_clsZsrch_clsZsrch_objobjkindr r rclassify_class_attrsks                          rjcCs|jS)zHReturn tuple of base classes (including cls) in method resolution order.)__mro__)r[r r rrJsrJ)stopcsdkrdd}n fdd}|}t||i}tj}xD||rz|j}t|}||ksbt||krptdj||||<q8W|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|dS)N __wrapped__)r)fr r r _is_wrapperszunwrap.._is_wrappercst|do| S)Nrm)r)rn)rlr rrosz!wrapper loop when unwrapping {!r})idsysgetrecursionlimitrmlen ValueErrorformat)funcrlrornmemoZrecursion_limitZid_funcr )rlrunwraps     rxcCs|j}t|t|jS)zBReturn the indent size, in spaces, at the start of a line of text.) expandtabsrslstrip)lineZexpliner r r indentsize sr|cCsRtjj|j}|dkrdSx&|jjdddD]}t||}q0Wt|sNdS|S)N.r)rqmodulesget __module__ __qualname__splitrBr)rvr[rDr r r _findclasssrc Cst|rRxD|jD]:}|tk ry |j}Wntk r<wYnX|dk r|SqWdSt|r|jj}|j}t|rt t ||dd|jkr|}n|j }nt |r|j}t |}|dkst |||k rdSnt |r |j}|j}t|o|jd||jkr|}n|j }nzt|trJ|j}|j}t |}|dksDt |||k rdSn:t|s^t|r|j}|j}t |||k rdSndSxJ|jD]@}yt ||j}Wntk rwYnX|dk r|SqWdS)N__func__r})rrkr __doc__rOrr__name____self__rB __class__rrr8rr r^fgetrrr])rhrFdocrDselfr[rvr r r_finddocsb        rcCsdy |j}Wntk rdSX|dkrNy t|}Wnttfk rLdSXt|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)rrOr TypeErrorr strcleandoc)r rr r rgetdocSs   rc Csy|jjd}Wntk r&dSXtj}x:|ddD]*}t|j}|r.N)ospathbasename importlib machinery all_suffixesrQendswith)rZfnamesuffixesZneglenrr r r getmodulenames  rcst|tjjdd}|tjjdd7}tfdd|Dr`tjjdtjj dntfddtjj Dr~dStjj rSt t |dddk rStjkrSdS)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|]}j|VqdS)N)r)rZs)filenamer r sz getsourcefile..rc3s|]}j|VqdS)N)r)rZr)rr rrs __loader__)rrrDEBUG_BYTECODE_SUFFIXESOPTIMIZED_BYTECODE_SUFFIXESanyrrsplitextSOURCE_SUFFIXESEXTENSION_SUFFIXESexistsrB getmodule linecachecache)r Zall_bytecode_suffixesr )rr getsourcefiles   rcCs,|dkrt|pt|}tjjtjj|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 Cst|r |St|dr$tjj|jS|dk rD|tkrDtjjt|Syt||}Wntk rfdSX|tkrtjjt|Sxnt tjj D]\\}}t|rt|dr|j }|t j|dkrq|t |<t|}|j t|<ttjj|<qW|tkr tjjt|Stjd}t|ds$dSt||j rLt||j }||krL|Stjd}t||j r~t||j } | |kr~|SdS)zAReturn the module an object was defined in, or None if not found.rNr__main__rbuiltins)rrrqrrr modulesbyfilerrlistrAr_filesbymodnamerrrrealpathrB) r rfilemodnamemodulernmainZ mainobjectZbuiltinZ builtinobjectr r rrsD         rc Cst|}|rtj|n$t|}|jdo2|jdszsource code not availablezcould not get source coderz^(\s*)class\s*z\bcrzcould not find class definitionco_firstlinenoz"could not find function definitionz>^(\s*def\s)|(\s*async\s+def\s)|(.*(?yt|\}}Wnttfk r(dSXt|rd}|rR|ddddkrRd}x(|t|krz||jdkrz|d}qTW|t|kr||dddkrg}|}x>|t|kr||dddkr|j||j|d}qWdj|SnH|dkr:t ||}|d}|dkr:||j dddkr:t |||kr:||jj g}|dkr|d}||jj }x\|dddkrt |||kr|g|dd<|d}|dkrP||jj }q|Wx*|r|djdkrg|dd<qWx*|r.|d jdkr.g|d d<qWdj|SdS) zwGet lines of comments immediately preceding an object's source code. Returns None when source can't be found. Nrz#!r#)rrr~r~) rrrrrsstriprNryrr|rz)r rrstartZcommentsendrZcommentr r r getcommentsAsJ  "   $ & rc@s eZdZdS) EndOfBlockN)rrrr r r rrnsrc@s eZdZdZddZddZdS) BlockFinderz@Provide a tokeneater() method to detect the end of a code block.cCs.d|_d|_d|_d|_d|_d|_d|_dS)NrFr)rislambdastartedpassline indecoratordecoratorhasargslast)rr r r__init__rszBlockFinder.__init__cCs&|j rD|j rD|dkr d|_n|d kr<|dkr6d|_d|_d|_n|dkrZ|jrXd|_n|dkrv|jrtd|_d|_n|tjkrd|_|d |_|jrt|jr|j rd|_nr|jrnj|tj kr|j d |_ d|_nL|tj kr|j d |_ |j d kr"tn"|j d kr"|tj tj fkr"tdS) N@Tdefclasslambda()Frr)rrr)rrrrrtokenizeNEWLINErrINDENTrDEDENTCOMMENTNL)rrtokenZsrowcolZerowcolr{r r r tokeneater{sB       zBlockFinder.tokeneaterN)rrrrrrr r r rrps rc CsZt}y,tjt|j}x|D]}|j|qWWnttfk rJYnX|d|jS)z@Extract the block of code at the top of the given list of lines.N) rrgenerate_tokensiter__next__rrIndentationErrorr)rZ blockfindertokensZ_tokenr r rgetblocks rcCsbt|}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) rxrr2rrr4rco_namer)r rrr r rgetsourceliness rcCst|\}}dj|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)rr)r rrr r r getsources rcCsVg}|jtdddx:|D]2}|j||jf||kr|jt||||qW|S)z-Recursive helper function for getclasstree().rr)rI)rQrrNrCwalktree)classeschildrenparentrSrr r rrs rFcCsi}g}xn|D]f}|jrbxZ|jD]<}||kr4g||<|||krN||j||r ||kr Pq Wq||kr|j|qWx|D]}||kr~|j|q~Wt||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)rCrNr)runiquerrootsrrr r r getclasstrees"      r Argumentszargs, varargs, varkwcCs t|\}}}}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.) _getfullargsr)coargsvarargs kwonlyargsvarkwr r rgetargssr c Cst|stdj||j}|j}|j}t|d|}t||||}d}||7}d}|jt@rx|j|}|d}d}|jt @r|j|}||||fS)aGet information about the arguments accepted by a code object. Four things are returned: (args, varargs, kwonlyargs, varkw), where 'args' and 'kwonlyargs' are lists of argument names, and 'varargs' and 'varkw' are the names of the * and ** arguments or None.z{!r} is not a code objectNrr) r6rru co_argcount co_varnamesco_kwonlyargcountrr" CO_VARARGSCO_VARKEYWORDS) rnargsrUZnkwargsrr steprr r r rrs"    rArgSpeczargs 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) stacklevelzdFunction has keyword-only parameters or annotations, use getfullargspec() API which can support them)warningswarnDeprecationWarninggetfullargspecrtr)rvrrr defaultsr kwonlydefaultsannr r r getargspec s  r FullArgSpeczGargs, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotationsc Cs`yt|ddtd}Wn,tk r@}ztd|WYdd}~XnXg}d}d}g}f}i}f}i} |j|jk rx|j|d<x|jjD]} | j} | j } | t kr|j | nv| t kr|j | | j | jk r|| j f7}nJ| tkr| }n<| tkr|j | | j | jk r| j | | <n| tkr| }| j| jk r| j|| <qW| sBd} |sLd}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 F)follow_wrapper_chainsskip_bound_argsigclszunsupported callableNreturn)_signature_from_callable Signaturerbrreturn_annotationempty parametersvaluesrirD_POSITIONAL_ONLYrN_POSITIONAL_OR_KEYWORDdefault_VAR_POSITIONAL _KEYWORD_ONLY _VAR_KEYWORD annotationr) rvsigexrrr r r annotations kwdefaultsparamrirDr r rrAsT            rArgInfozargs 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 rr4f_locals)framerrr r r r getargvaluessr7cCsVt|dddkr t|jddSt|trN|jd|fkr>|jS|jd|jSt|S)NrZtypingztyping.rrr})rBreprreplacer rrr)r.Z base_moduler r rformatannotations r:cst|ddfdd}|S)Nrcs t|S)N)r:)r.)rr r_formatannotationsz5formatannotationrelativeto.._formatannotation)rB)r r;r )rrformatannotationrelativetos  r<cCsd|S)N*r )rDr r rrHsrHcCsd|S)Nz**r )rDr r rrHscCs dt|S)N=)r8)rEr r rrHscCsd|S)Nz -> r )textr r rrHsc s(fdd} g}|r(t|t|}xFt|D]:\}}| |}|rb||krb|| |||}|j|q2W|dk r|j|| |n|r|jd|rx:|D]2}| |}|r||kr|| ||7}|j|qW|dk r|j| | |ddj|d}dkr$|| d7}|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.cs(|}|kr$|d|7}|S)Nz: r )argrf)r1r: formatargr rformatargandannotationsz-formatargspec..formatargandannotationNr=rz, rr!)rs enumeraterNr)rrr rr rr1rA formatvarargs formatvarkw formatvalueZ formatreturnsr:rBspecsZ firstdefaultrr@specZ kwonlyargrfr )r1r:rAr formatargspecs2     rIcCsd|S)Nr=r )rDr r rrHscCsd|S)Nz**r )rDr r rrHscCs dt|S)Nr>)r8)rEr r rrHsc Cs|||fdd}g} x&tt|D]} | j||| q"W|rZ| j||||||rx| j|||||ddj| 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|||||S)Nr )rDlocalsrArFr r rconvertsz formatargvalues..convertrz, r)rrsrNr) rrr rJrArDrErFrKrGrr r rformatargvaluess rLcsfdd|D}t|}|dkr,|d}n>|dkr@dj|}n*dj|dd}|dd=dj||}td |||rzd nd |dkrd nd |fdS)Ncsg|]}|krt|qSr )r8)rZrD)r'r rr\sz&_missing_arguments..rrrz {} and {}z , {} and {}z, z*%s() missing %i required %s argument%s: %s positionalz keyword-onlyrrrN)rsrurr)f_nameZargnamesposr'rUmissingrtailr )r'r_missing_argumentss    rSc 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| rd nd fdS) Ncsg|]}|kr|qSr r )rZr@)r'r rr\sz_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)rsrr) rOrZkwonlyrZdefcountZgivenr'ZatleastZ kwonly_givenZpluralr/Z kwonly_sigmsgr )r'r _too_many s$    rUcOs6|d}|dd}t|}|\}}}}} } } |j} i} t|rV|jdk rV|jf|}t|}t|}|rrt|nd}t||}x t|D]}||| ||<qW|rt||d| |<t|| }|ri| |<xd|j D]X\}}||kr|st d| |f|| ||<q|| kr,t d| |f|| |<qW||kr^| r^t | || |||| ||kr|d||}x&|D]}|| kr~t | |d| q~Wx8t |||dD] \}}|| kr||| |<qWd}x>| D]6}|| kr| r|| kr| || |<n|d7}qW|r2t | | d| | S)zGet the mapping of arguments to values. A dict is returned, with keys the function argument names (including the names of the * and ** arguments, if any), and values the respective bound values from 'positional' and 'named'.rrNz*%s() got an unexpected keyword argument %rz(%s() got multiple values for argument %rTF)rrrrrsrrrarKrArrUrSrC)Zfunc_and_positionalZnamedrvrMrHrrr rr rrrOZ arg2valueZnum_posZnum_argsZ num_defaultsnrZpossible_kwargskwrEZreqr@rQkwargr r r getcallargs!sd                 rY ClosureVarsz"nonlocals globals builtins unboundc Cst|r|j}t|s$tdj||j}|jdkr:i}nddt|j|jD}|j }|j dt j }t |rt|j }i}i}t}xn|jD]d}|d krqy||||<Wqtk ry||||<Wntk r|j|YnXYqXqWt||||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. z'{!r}' is not a Python functionNcSsi|]\}}|j|qSr ) cell_contents)rZvarZcellr r r vsz"getclosurevars.. __builtins__NoneTrueFalse)r_r`ra)rrrrrur! __closure__zip co_freevars __globals__rrr@rrKco_namesKeyErrorrPrZ) rvcodeZ nonlocal_varsZ global_nsZ builtin_nsZ global_varsZ builtin_varsZ unbound_namesrDr r rgetclosurevarsas8   ri Tracebackz+filename lineno function code_context indexcCst|r|j}|j}n|j}t|s2tdj|t|p@t|}|dkr|d|d}yt |\}}Wnt k rd}}YqXt 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)r2 tb_linenorf_linenor4rrurrrrmaxrrsrjrr)r6contextlinenorrrrindexr r r getframeinfos$rqcCs|jS)zCGet the line number from a frame object, allowing for optimization.)rl)r6r r r getlinenosrr FrameInfor6cCs6g}x,|r0|ft||}|jt||j}qW|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.)rqrNrsf_back)r6rn framelist frameinfor r rgetouterframess  rwcCs8g}x.|r2|jft||}|jt||j}qW|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.)rrqrNrstb_next)tbrnrurvr r rgetinnerframess  rzcCsttdrtjdSdS)z?Return the frame of the caller or None if this is not possible. _getframerN)rrqr{r r r r currentframesr|cCsttjd|S)z@Return a list of records for the stack above the caller's frame.r)rwrqr{)rnr r rstacksr}cCsttjd|S)zCReturn a list of records for the stack below the current exception.r)rzrqexc_info)rnr r rtracesrcCstjdj|S)Nrk)rr@r)klassr r r_static_getmrosrc Cs8i}ytj|d}Wntk r(YnXtj||tS)Nr@)r __getattribute__rOdictr _sentinel)rhattrZ instance_dictr r r_check_instances rc CsFx@t|D]4}tt|tkr y |j|Stk r<Yq Xq WtS)N)r_shadowed_dictrrr@rg)rrentryr r r _check_classs  rc Cs&y t|Wntk r dSXdS)NFT)rr)rhr r r_is_types  rc Csntjd}x^t|D]R}y|j|d}Wntk r>YqXt|tjko`|jdko`|j|ks|SqWt S)Nr@) rr@rrrgr rrr]r)r dict_attrrZ class_dictr r rrs   rc Cst}t|s>t|}t|}|tks2t|tjkrBt||}n|}t||}|tk r|tk rtt|dtk rtt|dtk r|S|tk r|S|tk r|S||krxDtt|D]4}tt|tkry |j |St k rYqXqW|tk r|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) rrrrr rrrrr@rgrO)rhrr*Zinstance_resultrrZ klass_resultrr r rgetattr_statics6     r GEN_CREATED GEN_RUNNING GEN_SUSPENDED GEN_CLOSEDcCs,|jr tS|jdkrtS|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. Nrr~) gi_runningrgi_framerf_lastirr) generatorr r rgetgeneratorstateGs   rcCs:t|stdj|t|dd}|dk r2|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)r)rrurBrr5)rr6r r rgetgeneratorlocalsYs  r CORO_CREATED CORO_RUNNINGCORO_SUSPENDED CORO_CLOSEDcCs,|jr tS|jdkrtS|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. Nrr~) cr_runningrcr_framerrrr) coroutiner r rgetcoroutinestateqs   rcCs"t|dd}|dk r|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)rBr5)rr6r r rgetcoroutinelocalss r from_bytesc Cs6yt||}Wntk r"dSXt|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)rBrOr _NonUserDefinedCallables)r[Z method_namemethr r r"_signature_get_user_defined_methods  rcCs|j}t|j}|jpf}|jp$i}|r2||}y|j||}Wn6tk rx}zdj|} t| |WYdd}~XnXd} x|jD] \} } y|j | } Wnt k rYnlX| j t kr|j | q| j tkr| |krd} | j| d|| <n|j | jq| j tkr"| j| d|| <| r| j t k s6t| j tkrf|| jtd}||| <|j| q| j ttfkr|j| q| j tkr|j | jqW|j|jdS)zPrivate helper to calculate how 'wrapped_sig' signature will look like after applying a 'functools.partial' object (or alike) on it. z+partial object {!r} has incorrect argumentsNFT)r*)ri)r&)r&rrArkeywords bind_partialrrurt argumentsrgrir(rr)r9rDr,AssertionError move_to_endr-r+r') wrapped_sigpartialZ extra_argsZ old_params new_paramsZ partial_argsZpartial_keywordsZbar0rTZtransform_to_kwonly param_namer3Z arg_valueZ new_paramr r r_signature_get_partialsN              rcCsnt|jj}| s&|djttfkr.td|dj}|ttfkrR|dd}n|t k rbtd|j |dS)zWPrivate helper to transform signatures for unbound functions to bound methods. rzinvalid method signaturerNzinvalid argument type)r&) rar&r'rir-r,rtr)r(r+r9)r/paramsrir r r_signature_bound_methods  rcCs&t|p$t|p$t|tp$|ttfkS)zxPrivate helper to test if `obj` is a callable that might support Argument Clinic's __text_signature__ protocol. )r8rr rrr )rhr r r_signature_is_builtins rcCst| st|rdSt|dd}t|dd}t|dt}t|dt}t|dd}t|tjot|to|dkszt|to|dkst|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__) callablerrB_voidr r r5rrar)rhrDrhrr2r1r r r_signature_is_functionlike!s       rcCsr|jdst|jd}|dkr*|jd}|jd}|d ksH||ksHt|jd}|d ksf||ksft|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:r>rr~r~r~)rrfind)rHrPZcposr r r_signature_get_bound_param:s    rcCsl|s|ddfSd}d}dd|jdD}t|j}tj|}d}d}g}|j} d} tj} tj} t|} | j tj ksxt x|D]} | j | j }}|| kr|dkr|rd}q~| st d}| d 7} q~|d kr| st |dkst d}| d }q~|| kr|d kr|dkst | }q~|r.rFrrTr/$rz,  r)rrrrrNrOP ERRORTOKENnextrENCODINGrstringr) signatureself_parameterlast_positional_onlyrrZ token_streamZ delayed_commaZskip_next_commar?rPZcurrent_parameterrrtrrclean_signaturer r r"_signature_strip_non_python_syntaxQsZ          rTcs`|jt|\}}}d|d}ytj|}Wntk rFd}YnXt|tjsbtdj||j d} gj t d}it |dd} | rt jj| d}|r|jt jjddfd d  G fd d d tjffd d } t| jj} t| jj} tj| | dd}|dk r8jnjx.parse_namecsyt|}Wn>tk rLyt|}Wntk rFtYnXYnXt|trbtj|St|ttfrztj |St|t rtj |S|dkrtj |StdS)NTF)TFN) eval NameError RuntimeErrorr rrZStrintfloatZNumbytesZBytesZ NameConstant)rrE) module_dictsys_module_dictr r wrap_values       z&_signature_fromstr..wrap_valuecs$eZdZfddZfddZdS)z,_signature_fromstr..RewriteSymbolicscs`g}|}x"t|tjr*|j|j|j}q Wt|tjs>t|j|jdj t |}|S)Nr}) r rrYrNrrENamerrprreversed)rrarVrE)rr rvisit_Attributes    z<_signature_fromstr..RewriteSymbolics.visit_Attributecst|jtjst|jS)N)r ZctxrZLoadrtrp)rr)rr r visit_Namesz7_signature_fromstr..RewriteSymbolics.visit_NameN)rrrrrr )rr rRewriteSymbolicss rcs|}|krdS|rp|tk rpyj|}tj|}Wntk rR}YnX|kr`dS|k rl|n|}j||ddS)N)r*r.)_emptyZvisitrZ literal_evalrtrN)Z name_nodeZ default_noder*rDo) Parameterrr%invalidrir&rr rps   z_signature_fromstr..p) fillvaluer)ri)r$)(_parameter_clsrrparse SyntaxErrorr ZModulertruZbodyr%r rBrqrrr@copyZNodeTransformerrrr itertools zip_longestPOSITIONAL_ONLYPOSITIONAL_OR_KEYWORDrCrZvarargVAR_POSITIONAL KEYWORD_ONLYrcr Z kw_defaultsrX VAR_KEYWORDrrrr9)r[rhrrrrrZprogramrrnZ module_namerrrrrrDr*_selfZ self_isboundZ self_ismoduler ) rrr%rrirr&rrrr_signature_fromstrsl                  rcCsBt|stdj|t|dd}|s4tdj|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})rrrurBrtr)r[rvrrr r r_signature_from_builtin&s rcCsd}t|s(t|rd}ntdj||j}|j}|j}|j}t|d|}|j }||||} |j } |j } |j } | rt | } nd} g}|| }x4|d|D]$}| j|t}|j|||tdqWxBt||dD].\}}| j|t}|j|||t| |dqW|jt@rH|||}| j|t}|j|||tdxJ| D]B}t}| dk rl| j|t}| j|t}|j|||t|dqNW|jt@r||}|jt@r|d7}||}| j|t}|j|||td||| jd t|d S) zCPrivate helper: constructs Signature for the given python function.FTz{!r} is not a Python functionNr)r.ri)r.rir*rr!)r$__validate_parameters__)rrrrurr!r r rarrrrrsrrrNr)rCr"rr+r,rr-)r[rvZis_duck_functionrZ func_codeZ pos_countZ arg_namesrMZkeyword_only_countZ keyword_onlyr1rr2Zpos_default_countr&Znon_default_countrDr.offsetr*rpr r r_signature_from_function6sj                     r)rrc!Cst|stdj|t|tjrDt|j|||d}|r@t|S|S|rtt |ddd}t|tjrtt||||dSy |j }Wnt k rYn&X|dk rt|t stdj||Sy |j }Wnt k rYnXt|tjrft|j|||d}t||d}t|jjd}|jtjkr(|St|jj}| sP||dk sPt|f|} |j| d St|szt|rt||St|rt|||d St|tjrt|j|||d}t||Sd}t|t rt!t |d } | dk rt| |||d}nJt!|d } | dk r&t| |||d}n$t!|d } | dk rJt| |||d}|dkrTxL|j"ddD]:} y | j#}Wnt k rYnX|rdt$|||SqdWt |j"krT|j%t&j%kr|j't&j'krt(t&St)dj|nrt|t*sTt!t |d } | dk rTyt| |||d}Wn8t)k rR}zdj|}t)||WYdd}~XnX|dk rp|rlt|S|St|tj+rdj|}t)|t)dj|dS)zQPrivate helper function to get signature for arbitrary callable objects. z{!r} is not a callable object)rrr cSs t|dS)N __signature__)r)rnr r rrHsz*_signature_from_callable..)rlNz1unexpected object {!r} in __signature__ attributer)r&)r__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)Nr~),rrrur r rr"rrrxrrOr#_partialmethod functools partialmethodrvrrar&r'rirrrr9rrrrrrrrrkrrrr rrrtrr7)rhrrr r/rrZfirst_wrapped_paramZ sig_paramsrZcallnewZinitrFZtext_sigr0rTr r rr"s                             r"c@seZdZdZdS)rz1A private marker - used in Parameter & Signature.N)rrrrr r r rrP src@seZdZdZdS)rz6Marker object for Signature.empty and Parameter.empty.N)rrrrr r r rrT src@s(eZdZdZdZdZdZdZddZdS) _ParameterKindrrrcCs|jS)N)_name_)rr r r__str___ sz_ParameterKind.__str__N) rrrrrrrrrr r r rrX s rzpositional-onlyzpositional or keywordzvariadic positionalz keyword-onlyzvariadic keywordc@seZdZdZd!ZeZeZe Z e Z e ZeZeedddZd d Zd d Zed dZeddZeddZeddZeeeedddZddZddZddZddZd S)"raRepresents 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 _annotation)r*r.c Cs"yt||_Wn$tk r2td|dYnX|tk rf|jttfkrfd}|jt|j}t|||_||_ |tkrtdt |t sdjt |j }t||ddko|ddjr|jtkrd }|jt|j}t|t|_d j|dd}|jstd j|||_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 {}rr}rzLimplicit arguments must be passed as positional or keyword arguments, not {}z implicit{}z"{!r} is not a valid parameter name)rrrtrr+r-ru_get_paramkind_descrrrr rrrrisdigitr)r( isidentifierr)rrDrir*r.rTr r rr s4   zParameter.__init__cCs t||j|jf|j|jdfS)N)rr)rrrrr)rr r r __reduce__ s zParameter.__reduce__cCs|d|_|d|_dS)Nrr)rr)rstater r r __setstate__ s zParameter.__setstate__cCs|jS)N)r)rr r rrD szParameter.namecCs|jS)N)r)rr r rr* szParameter.defaultcCs|jS)N)r)rr r rr. szParameter.annotationcCs|jS)N)r)rr r rri szParameter.kind)rDrir.r*cCsL|tkr|j}|tkr|j}|tkr*|j}|tkr8|j}t|||||dS)z+Creates a customized copy of the Parameter.)r*r.)rrrrrr)rrDrir.r*r r rr9 szParameter.replacecCsj|j}|j}|jtk r(dj|t|j}|jtk rDdj|t|j}|tkrVd|}n|t krfd|}|S)Nz{}:{}z{}={}r=z**) rirrrrur:rr8r+r-)rri formattedr r rr s    zParameter.__str__cCsdj|jj|S)Nz <{} "{}">)rurr)rr r r__repr__ szParameter.__repr__cCst|j|j|j|jfS)N)hashrDrir.r*)rr r r__hash__ szParameter.__hash__cCsJ||kr dSt|tstS|j|jkoH|j|jkoH|j|jkoH|j|jkS)NT)r rNotImplementedrrrr)rotherr r r__eq__ s    zParameter.__eq__N)rrrr)rrrr __slots__r(rr)rr+rr,rr-rrr%rr r r^rDr*r.rirr9rr rrr r r rrt s*(    rc@sheZdZdZdZddZeddZed d Zed d Z d dZ ddZ ddZ ddZ ddZdS)BoundArgumentsaResult of `Signature.bind` call. Holds the mapping of arguments to the function's parameters. Has the following public attributes: * arguments : OrderedDict 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||_||_dS)N)rr)rrrr r rr szBoundArguments.__init__cCs|jS)N)r)rr r rr# szBoundArguments.signaturec Cs|g}xn|jjjD]^\}}|jttfkr*Py|j|}Wntk rNPYqX|jtkrf|j |q|j |qWt |S)N) rr&rArir-r,rrgr+extendrNra)rrrr3r@r r rr' s  zBoundArguments.argsc Csi}d}x|jjjD]x\}}|sF|jttfkr6d}n||jkrFd}q|sLqy|j|}Wntk rnYqX|jtkr|j|q|||<qW|S)NFT) rr&rArir-r,rrgupdate)rkwargsZkwargs_startedrr3r@r r rr> s&    zBoundArguments.kwargsc Cs|j}g}x|jjjD]v\}}y|j|||fWqtk r|jtk rX|j}n"|jt krhf}n|jt krxi}nw|j||fYqXqWt ||_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. N) rrr&rArNrgr*rrir+r-r)rrZ new_argumentsrDr3valr r rapply_defaults\ s    zBoundArguments.apply_defaultscCs2||kr dSt|tstS|j|jko0|j|jkS)NT)r rrrr)rrr r rrx s   zBoundArguments.__eq__cCs|d|_|d|_dS)Nrr)rr)rr r r rr  s zBoundArguments.__setstate__cCs|j|jdS)N)rr)rr)rr r r __getstate__ szBoundArguments.__getstate__cCsDg}x(|jjD]\}}|jdj||qWdj|jjdj|S)Nz{}={!r}z <{} ({})>z, )rrArNrurrr)rrr@rEr r rr  szBoundArguments.__repr__N)rrr)rrrrrrr^rrrrrr rr r r r rr s   rc@seZdZdZd-ZeZeZe Z d.e ddddZ e d d Z e d d Ze dd ddZeddZeddZeedddZddZddZddZdddd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,ZdS)/r#aA 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 _parametersNT)r$rc Cs|dkrt}n|rt}t}d}xt|D]\}}|j} |j} | |krjd} | jt|t| } t| n| |krzd}| }| ttfkr|j t kr|rd} t| nd}| |krdj| } t| ||| <q,Wntdd|D}t j ||_ ||_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|fVqdS)N)rD)rZr3r r rr sz%Signature.__init__..)rr(rCrirDrurrtr)r*rr MappingProxyTyperr) rr&r$rrZtop_kindZ kind_defaultsidxr3rirDrTr r rr 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()r)r)rrrr)r[rvr r r from_function s zSignature.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()r)r)rrrr)r[rvr r r from_builtin s zSignature.from_builtin)follow_wrappedcCst|||dS)z3Constructs Signature for the given callable object.)r r)r")r[rhr#r r r from_callable szSignature.from_callablecCs|jS)N)r)rr r rr& szSignature.parameterscCs|jS)N)r)rr r rr$ szSignature.return_annotation)r&r$cCs0|tkr|jj}|tkr |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$)rr&r'rr)rr&r$r r rr9 s  zSignature.replacecCs8tdd|jjD}dd|jjD}|||jfS)Ncss|]}|jtkr|VqdS)N)rir,)rZr3r r rr sz(Signature._hash_basis..cSsi|]}|jtkr||jqSr )rir,rD)rZr3r r rr] sz)Signature._hash_basis..)rar&r'r$)rr kwo_paramsr r r _hash_basis szSignature._hash_basiscCs(|j\}}}t|j}t|||fS)N)r& frozensetr'r)rrr%r$r r rr! s zSignature.__hash__cCs*||kr dSt|tstS|j|jkS)NT)r r#rr&)rrr r rr& s  zSignature.__eq__F)rcCst}t|jj}f}t|}xxy t|}Wntk ry t|} Wntk rbPYnX| jtkrrPn| j|kr| jt krd} | j | jd} t | d| f}PnH| jt ks| j tk r| f}Pn*|r| f}Pnd} | j | jd} t | dYq$Xy t|} Wn tk r&t ddYq$X| jt tfkrBt dd| jtkrn|g} | j|t| || j<P| j|krt dj | jdd||| j<q$Wd} xtj||D]} | jt kr| } q| jtkr֐q| j} y|j| }WnHtk r2| r.| jtkr.| j tkr.t dj | ddYn(X| jt krRt dj | jd||| <qW|r| dk r|||| j<nt dj tt|d|j||S)z#Private method. Don't use directly.zA{arg!r} parameter is positional only, but was passed as a keyword)r@Nz$missing a required argument: {arg!r}ztoo many positional argumentsz$multiple values for argument {arg!r}z*got an unexpected keyword argument {arg!r})rrr&r'r StopIterationrir+rDr(rurr-r*rr,rrarchainrrg_bound_arguments_cls)rrrrrr&Z parameters_exZarg_valsZarg_valr3rTr'Z kwargs_paramrr r r_bind- s                   zSignature._bindcOs|dj|dd|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. rrN)r+)rrr r rbind szSignature.bindcOs|dj|dd|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. rrNT)r)r+)rrr r rr szSignature.bind_partialcCs t|t|jjfd|jifS)Nr)rrarr'r)rr r rr  szSignature.__reduce__cCs|d|_dS)Nr)r)rr r r rr  szSignature.__setstate__cCsdj|jj|S)Nz<{} {}>)rurr)rr r rr  szSignature.__repr__c Csg}d}d}xr|jjD]d}t|}|j}|tkr8d}n|rJ|jdd}|tkrXd}n|tkrr|rr|jdd}|j|qW|r|jddjdj |}|j t k rt |j }|dj|7}|S)NFTrr=z({})z, z -> {}) r&r'rrir(rNr+r,rurr$rr:) rrfZrender_pos_only_separatorZrender_kw_only_separatorr3r riZrenderedZannor r rr s0      zSignature.__str__)rr)N)rrrrrrrrr*rr%rrer!r"r$r^r&r$rr9r&rrr+r,rr r r rr r r rr# s26    r#)r#cCstj||dS)z/Get a signature object for the passed callable.)r#)r#r$)rhr#r r rr srcCsddl}ddl}|j}|jddd|jdddd d |j}|j}|jd \}}}y|j|}} WnLtk r} z0d j |t | j | } t | t jd tdWYdd} ~ XnX|r|jd} | }x| D]} t|| }qW| j t jkrt dt jd td|jrt dj |t dj t| t dj | j|| krxt dj t| jt| drt dj | jn6yt|\}}Wntk rYnXt dj |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)actionr-rzFailed to import {} ({}: {}))rrr}z#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_modulerbrurrprintrqstderrexitrrBbuiltin_module_namesZdetailsr __cached__r8rrr0rr)r1rparserrtargetZmod_nameZ has_attrsZattrsrhrrgrTpartspart__ror r r_main sV     rAr)rri)N)N)N)F)N)r)r6)r)r)r)r)T)T)r __author__r.rZdiscollections.abcr-enumimportlib.machineryrrrrrrqrrr rrroperatorrrrglobalsZmod_dictZCOMPILER_FLAG_NAMESrArVrWr=rrrrrrrrrr#r$r%r'r)r+r0r2r4r6r8r9rGrXrYrjrJrxr|rrrrrrrrrrrrrrbrrrrrrrrr rrrrrr4r7r:r<rrIrLrSrUrYrZrirjrqrr_fieldsrsrwrzr|r}rr rrrrrrrrrrrrrrrrrrrrrZ_WrapperDescriptorallZ_MethodWrapperrr@Z_ClassMethodWrapperr7rrrrrrrrrrrr"rrIntEnumrrr(rr)rr+rr,rr-Z_PARAM_NAME_MAPPING __getitem__rrrr#rrArr r r rsf            , t$ ;   .I-7      [   (> 5        0   L H  RH k: