/opt/alt/python34/lib64/python3.4/__pycache__
NameSizeModeActions
abc.cpython-34.pyc78770644editdlrm
abc.cpython-34.pyo78270644editdlrm
aifc.cpython-34.pyc279120644editdlrm
aifc.cpython-34.pyo279120644editdlrm
antigravity.cpython-34.pyc8470644editdlrm
antigravity.cpython-34.pyo8470644editdlrm
argparse.cpython-34.pyc658740644editdlrm
argparse.cpython-34.pyo657150644editdlrm
ast.cpython-34.pyc123600644editdlrm
ast.cpython-34.pyo123600644editdlrm
asynchat.cpython-34.pyc83590644editdlrm
asynchat.cpython-34.pyo83590644editdlrm
asyncore.cpython-34.pyc179630644editdlrm
asyncore.cpython-34.pyo179630644editdlrm
base64.cpython-34.pyc182970644editdlrm
base64.cpython-34.pyo180990644editdlrm
bdb.cpython-34.pyc186940644editdlrm
bdb.cpython-34.pyo186940644editdlrm
binhex.cpython-34.pyc135410644editdlrm
binhex.cpython-34.pyo135410644editdlrm
bisect.cpython-34.pyc28580644editdlrm
bisect.cpython-34.pyo28580644editdlrm
bz2.cpython-34.pyc151560644editdlrm
bz2.cpython-34.pyo151560644editdlrm
calendar.cpython-34.pyc275670644editdlrm
calendar.cpython-34.pyo275670644editdlrm
cgi.cpython-34.pyc298270644editdlrm
cgi.cpython-34.pyo298270644editdlrm
cgitb.cpython-34.pyc110640644editdlrm
cgitb.cpython-34.pyo110640644editdlrm
chunk.cpython-34.pyc52700644editdlrm
chunk.cpython-34.pyo52700644editdlrm
cmd.cpython-34.pyc134560644editdlrm
cmd.cpython-34.pyo134560644editdlrm
code.cpython-34.pyc97020644editdlrm
code.cpython-34.pyo97020644editdlrm
codecs.cpython-34.pyc351320644editdlrm
codecs.cpython-34.pyo351320644editdlrm
codeop.cpython-34.pyc64660644editdlrm
codeop.cpython-34.pyo64660644editdlrm
colorsys.cpython-34.pyc36590644editdlrm
colorsys.cpython-34.pyo36590644editdlrm
compileall.cpython-34.pyc73780644editdlrm
compileall.cpython-34.pyo73780644editdlrm
configparser.cpython-34.pyc448820644editdlrm
configparser.cpython-34.pyo448820644editdlrm
contextlib.cpython-34.pyc103700644editdlrm
contextlib.cpython-34.pyo103700644editdlrm
copy.cpython-34.pyc80610644editdlrm
copy.cpython-34.pyo79750644editdlrm
copyreg.cpython-34.pyc46070644editdlrm
copyreg.cpython-34.pyo45660644editdlrm
cProfile.cpython-34.pyc46220644editdlrm
cProfile.cpython-34.pyo46220644editdlrm
crypt.cpython-34.pyc24370644editdlrm
crypt.cpython-34.pyo24370644editdlrm
csv.cpython-34.pyc129970644editdlrm
csv.cpython-34.pyo129970644editdlrm
datetime.cpython-34.pyc562640644editdlrm
datetime.cpython-34.pyo542960644editdlrm
decimal.cpython-34.pyc1725260644editdlrm
decimal.cpython-34.pyo1725260644editdlrm
difflib.cpython-34.pyc605150644editdlrm
difflib.cpython-34.pyo604670644editdlrm
dis.cpython-34.pyc145870644editdlrm
dis.cpython-34.pyo145870644editdlrm
doctest.cpython-34.pyc801100644editdlrm
doctest.cpython-34.pyo798370644editdlrm
dummy_threading.cpython-34.pyc12140644editdlrm
dummy_threading.cpython-34.pyo12140644editdlrm
enum.cpython-34.pyc163390644editdlrm
enum.cpython-34.pyo163390644editdlrm
filecmp.cpython-34.pyc91200644editdlrm
filecmp.cpython-34.pyo91200644editdlrm
fileinput.cpython-34.pyc142970644editdlrm
fileinput.cpython-34.pyo142970644editdlrm
fnmatch.cpython-34.pyc31460644editdlrm
fnmatch.cpython-34.pyo31460644editdlrm
formatter.cpython-34.pyc189160644editdlrm
formatter.cpython-34.pyo189160644editdlrm
fractions.cpython-34.pyc192700644editdlrm
fractions.cpython-34.pyo192700644editdlrm
ftplib.cpython-34.pyc333220644editdlrm
ftplib.cpython-34.pyo333220644editdlrm
functools.cpython-34.pyc236140644editdlrm
functools.cpython-34.pyo236140644editdlrm
genericpath.cpython-34.pyc34930644editdlrm
genericpath.cpython-34.pyo34930644editdlrm
getopt.cpython-34.pyc67330644editdlrm
getopt.cpython-34.pyo66910644editdlrm
getpass.cpython-34.pyc46240644editdlrm
getpass.cpython-34.pyo46240644editdlrm
gettext.cpython-34.pyc151740644editdlrm
gettext.cpython-34.pyo151740644editdlrm
glob.cpython-34.pyc28800644editdlrm
glob.cpython-34.pyo28800644editdlrm
gzip.cpython-34.pyc194460644editdlrm
gzip.cpython-34.pyo193920644editdlrm
hashlib.cpython-34.pyc79440644editdlrm
hashlib.cpython-34.pyo79440644editdlrm
heapq.cpython-34.pyc139100644editdlrm
heapq.cpython-34.pyo139100644editdlrm
hmac.cpython-34.pyc51460644editdlrm
hmac.cpython-34.pyo51460644editdlrm
imaplib.cpython-34.pyc434790644editdlrm
imaplib.cpython-34.pyo409550644editdlrm
imghdr.cpython-34.pyc41430644editdlrm
imghdr.cpython-34.pyo41430644editdlrm
imp.cpython-34.pyc98670644editdlrm
imp.cpython-34.pyo98670644editdlrm
inspect.cpython-34.pyc763270644editdlrm
inspect.cpython-34.pyo760060644editdlrm
io.cpython-34.pyc34580644editdlrm
io.cpython-34.pyo34580644editdlrm
ipaddress.cpython-34.pyc629840644editdlrm
ipaddress.cpython-34.pyo629840644editdlrm
keyword.cpython-34.pyc19460644editdlrm
keyword.cpython-34.pyo19460644editdlrm
linecache.cpython-34.pyc31120644editdlrm
linecache.cpython-34.pyo31120644editdlrm
locale.cpython-34.pyc372760644editdlrm
locale.cpython-34.pyo372760644editdlrm
lzma.cpython-34.pyc159170644editdlrm
lzma.cpython-34.pyo159170644editdlrm
macpath.cpython-34.pyc60060644editdlrm
macpath.cpython-34.pyo60060644editdlrm
macurl2path.cpython-34.pyc21020644editdlrm
macurl2path.cpython-34.pyo21020644editdlrm
mailbox.cpython-34.pyc702880644editdlrm
mailbox.cpython-34.pyo701890644editdlrm
mailcap.cpython-34.pyc65440644editdlrm
mailcap.cpython-34.pyo65440644editdlrm
mimetypes.cpython-34.pyc168070644editdlrm
mimetypes.cpython-34.pyo168070644editdlrm
modulefinder.cpython-34.pyc173760644editdlrm
modulefinder.cpython-34.pyo172970644editdlrm
netrc.cpython-34.pyc42770644editdlrm
netrc.cpython-34.pyo42770644editdlrm
nntplib.cpython-34.pyc363100644editdlrm
nntplib.cpython-34.pyo363100644editdlrm
ntpath.cpython-34.pyc133050644editdlrm
ntpath.cpython-34.pyo133050644editdlrm
nturl2path.cpython-34.pyc17160644editdlrm
nturl2path.cpython-34.pyo17160644editdlrm
numbers.cpython-34.pyc126670644editdlrm
numbers.cpython-34.pyo126670644editdlrm
opcode.cpython-34.pyc51740644editdlrm
opcode.cpython-34.pyo51740644editdlrm
operator.cpython-34.pyc127780644editdlrm
operator.cpython-34.pyo127780644editdlrm
optparse.cpython-34.pyc515370644editdlrm
optparse.cpython-34.pyo514600644editdlrm
os.cpython-34.pyc295990644editdlrm
os.cpython-34.pyo295990644editdlrm
pathlib.cpython-34.pyc404830644editdlrm
pathlib.cpython-34.pyo404830644editdlrm
pdb.cpython-34.pyc494720644editdlrm
pdb.cpython-34.pyo494060644editdlrm
pickle.cpython-34.pyc469840644editdlrm
pickle.cpython-34.pyo468380644editdlrm
pickletools.cpython-34.pyc702540644editdlrm
pickletools.cpython-34.pyo691670644editdlrm
pipes.cpython-34.pyc84310644editdlrm
pipes.cpython-34.pyo84310644editdlrm
pkgutil.cpython-34.pyc176000644editdlrm
pkgutil.cpython-34.pyo176000644editdlrm
platform.cpython-34.pyc311720644editdlrm
platform.cpython-34.pyo311720644editdlrm
plistlib.cpython-34.pyc301510644editdlrm
plistlib.cpython-34.pyo300680644editdlrm
poplib.cpython-34.pyc137540644editdlrm
poplib.cpython-34.pyo137540644editdlrm
posixpath.cpython-34.pyc98090644editdlrm
posixpath.cpython-34.pyo98090644editdlrm
pprint.cpython-34.pyc114600644editdlrm
pprint.cpython-34.pyo112950644editdlrm
profile.cpython-34.pyc151510644editdlrm
profile.cpython-34.pyo148980644editdlrm
pstats.cpython-34.pyc236750644editdlrm
pstats.cpython-34.pyo236750644editdlrm
pty.cpython-34.pyc42250644editdlrm
pty.cpython-34.pyo42250644editdlrm
pyclbr.cpython-34.pyc91920644editdlrm
pyclbr.cpython-34.pyo91920644editdlrm
pydoc.cpython-34.pyc909150644editdlrm
pydoc.cpython-34.pyo908540644editdlrm
py_compile.cpython-34.pyc68570644editdlrm
py_compile.cpython-34.pyo68570644editdlrm
queue.cpython-34.pyc92620644editdlrm
queue.cpython-34.pyo92620644editdlrm
quopri.cpython-34.pyc64460644editdlrm
quopri.cpython-34.pyo62360644editdlrm
random.cpython-34.pyc190590644editdlrm
random.cpython-34.pyo190590644editdlrm
re.cpython-34.pyc145500644editdlrm
re.cpython-34.pyo145500644editdlrm
reprlib.cpython-34.pyc58720644editdlrm
reprlib.cpython-34.pyo58720644editdlrm
rlcompleter.cpython-34.pyc56950644editdlrm
rlcompleter.cpython-34.pyo56950644editdlrm
runpy.cpython-34.pyc77530644editdlrm
runpy.cpython-34.pyo77530644editdlrm
sched.cpython-34.pyc65730644editdlrm
sched.cpython-34.pyo65730644editdlrm
selectors.cpython-34.pyc167440644editdlrm
selectors.cpython-34.pyo167440644editdlrm
shelve.cpython-34.pyc99550644editdlrm
shelve.cpython-34.pyo99550644editdlrm
shlex.cpython-34.pyc75180644editdlrm
shlex.cpython-34.pyo75180644editdlrm
shutil.cpython-34.pyc330150644editdlrm
shutil.cpython-34.pyo330150644editdlrm
site.cpython-34.pyc179710644editdlrm
site.cpython-34.pyo179710644editdlrm
smtpd.cpython-34.pyc256690644editdlrm
smtpd.cpython-34.pyo256690644editdlrm
smtplib.cpython-34.pyc331290644editdlrm
smtplib.cpython-34.pyo330550644editdlrm
sndhdr.cpython-34.pyc67690644editdlrm
sndhdr.cpython-34.pyo67690644editdlrm
socket.cpython-34.pyc181110644editdlrm
socket.cpython-34.pyo180610644editdlrm
socketserver.cpython-34.pyc232550644editdlrm
socketserver.cpython-34.pyo232550644editdlrm
sre_compile.cpython-34.pyc119350644editdlrm
sre_compile.cpython-34.pyo117780644editdlrm
sre_constants.cpython-34.pyc55810644editdlrm
sre_constants.cpython-34.pyo55810644editdlrm
sre_parse.cpython-34.pyc202380644editdlrm
sre_parse.cpython-34.pyo202380644editdlrm
ssl.cpython-34.pyc276080644editdlrm
ssl.cpython-34.pyo276080644editdlrm
stat.cpython-34.pyc35780644editdlrm
stat.cpython-34.pyo35780644editdlrm
statistics.cpython-34.pyc171580644editdlrm
statistics.cpython-34.pyo168560644editdlrm
string.cpython-34.pyc83760644editdlrm
string.cpython-34.pyo83760644editdlrm
stringprep.cpython-34.pyc136360644editdlrm
stringprep.cpython-34.pyo135730644editdlrm
struct.cpython-34.pyc3470644editdlrm
struct.cpython-34.pyo3470644editdlrm
subprocess.cpython-34.pyc433590644editdlrm
subprocess.cpython-34.pyo432460644editdlrm
sunau.cpython-34.pyc183090644editdlrm
sunau.cpython-34.pyo183090644editdlrm
symbol.cpython-34.pyc26620644editdlrm
symbol.cpython-34.pyo26620644editdlrm
symtable.cpython-34.pyc113050644editdlrm
symtable.cpython-34.pyo111830644editdlrm
sysconfig.cpython-34.pyc172870644editdlrm
sysconfig.cpython-34.pyo172870644editdlrm
tabnanny.cpython-34.pyc77490644editdlrm
tabnanny.cpython-34.pyo77490644editdlrm
tarfile.cpython-34.pyc680400644editdlrm
tarfile.cpython-34.pyo680400644editdlrm
telnetlib.cpython-34.pyc193940644editdlrm
telnetlib.cpython-34.pyo193940644editdlrm
tempfile.cpython-34.pyc215760644editdlrm
tempfile.cpython-34.pyo215760644editdlrm
textwrap.cpython-34.pyc138000644editdlrm
textwrap.cpython-34.pyo137140644editdlrm
this.cpython-34.pyc13160644editdlrm
this.cpython-34.pyo13160644editdlrm
threading.cpython-34.pyc389650644editdlrm
threading.cpython-34.pyo382520644editdlrm
timeit.cpython-34.pyc110620644editdlrm
timeit.cpython-34.pyo110620644editdlrm
token.cpython-34.pyc36150644editdlrm
token.cpython-34.pyo36150644editdlrm
tokenize.cpython-34.pyc199510644editdlrm
tokenize.cpython-34.pyo199010644editdlrm
trace.cpython-34.pyc241840644editdlrm
trace.cpython-34.pyo241270644editdlrm
traceback.cpython-34.pyc110910644editdlrm
traceback.cpython-34.pyo110910644editdlrm
tracemalloc.cpython-34.pyc171300644editdlrm
tracemalloc.cpython-34.pyo171300644editdlrm
tty.cpython-34.pyc11460644editdlrm
tty.cpython-34.pyo11460644editdlrm
types.cpython-34.pyc55600644editdlrm
types.cpython-34.pyo55600644editdlrm
uu.cpython-34.pyc40210644editdlrm
uu.cpython-34.pyo40210644editdlrm
uuid.cpython-34.pyc218640644editdlrm
uuid.cpython-34.pyo218020644editdlrm
warnings.cpython-34.pyc122680644editdlrm
warnings.cpython-34.pyo115360644editdlrm
wave.cpython-34.pyc191350644editdlrm
wave.cpython-34.pyo190740644editdlrm
weakref.cpython-34.pyc203450644editdlrm
weakref.cpython-34.pyo203080644editdlrm
webbrowser.cpython-34.pyc171320644editdlrm
webbrowser.cpython-34.pyo170930644editdlrm
xdrlib.cpython-34.pyc90020644editdlrm
xdrlib.cpython-34.pyo90020644editdlrm
zipfile.cpython-34.pyc458200644editdlrm
zipfile.cpython-34.pyo457710644editdlrm
_bootlocale.cpython-34.pyc10470644editdlrm
_bootlocale.cpython-34.pyo10160644editdlrm
_collections_abc.cpython-34.pyc239490644editdlrm
_collections_abc.cpython-34.pyo239490644editdlrm
_compat_pickle.cpython-34.pyc75010644editdlrm
_compat_pickle.cpython-34.pyo74270644editdlrm
_dummy_thread.cpython-34.pyc48250644editdlrm
_dummy_thread.cpython-34.pyo48250644editdlrm
_markupbase.cpython-34.pyc89320644editdlrm
_markupbase.cpython-34.pyo87450644editdlrm
_osx_support.cpython-34.pyc106300644editdlrm
_osx_support.cpython-34.pyo106300644editdlrm
_pyio.cpython-34.pyc649330644editdlrm
_pyio.cpython-34.pyo649070644editdlrm
_sitebuiltins.cpython-34.pyc36770644editdlrm
_sitebuiltins.cpython-34.pyo36770644editdlrm
_strptime.cpython-34.pyc157790644editdlrm
_strptime.cpython-34.pyo157790644editdlrm
_sysconfigdata.cpython-34.pyc227000644editdlrm
_sysconfigdata.cpython-34.pyo227000644editdlrm
_threading_local.cpython-34.pyc69460644editdlrm
_threading_local.cpython-34.pyo69460644editdlrm
_weakrefset.cpython-34.pyc84650644editdlrm
_weakrefset.cpython-34.pyo84650644editdlrm
__future__.cpython-34.pyc41680644editdlrm
__future__.cpython-34.pyo41680644editdlrm
__phello__.foo.cpython-34.pyc1340644editdlrm
__phello__.foo.cpython-34.pyo1340644editdlrm
Edit: /opt/alt/python34/lib64/python3.4/__pycache__/pdb.cpython-34.pyo (49406B)
f@"@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z GdddeZddddd d d d d g ZddZddZddZGdddeZdZGdddejejZedk rd ddddddddd d!d"d#d$d%d&d'd(dd)d*d+d,d-d.d/d0d1d2d3d4d5d6d7g"Zx2eD]*Zeeed8ejjd97ZqWeejj7Z[[nddd:dZddd;dZ d<d Z!d=d Z"d>d Z#dd?d Z$d@dZ%dAZ&dBdCZ'dDd Z(dEZ)dFdGZ*e+dHkrddl,Z,e,j*ndS)Ia^ The Python Debugger Pdb ======================= To use the debugger in its simplest form: >>> import pdb >>> pdb.run('') The debugger's prompt is '(Pdb) '. This will stop in the first function call in . Alternatively, if a statement terminated with an unhandled exception, you can use pdb's post-mortem facility to inspect the contents of the traceback: >>> >>> import pdb >>> pdb.pm() The commands recognized by the debugger are listed in the next section. Most can be abbreviated as indicated; e.g., h(elp) means that 'help' can be typed as 'h' or 'help' (but not as 'he' or 'hel', nor as 'H' or 'Help' or 'HELP'). Optional arguments are enclosed in square brackets. Alternatives in the command syntax are separated by a vertical bar (|). A blank line repeats the previous command literally, except for 'list', where it lists the next 11 lines. Commands that the debugger doesn't recognize are assumed to be Python statements and are executed in the context of the program being debugged. Python statements can also be prefixed with an exclamation point ('!'). This is a powerful way to inspect the program being debugged; it is even possible to change variables or call functions. When an exception occurs in such a statement, the exception name is printed but the debugger's state is not changed. The debugger supports aliases, which can save typing. And aliases can have parameters (see the alias help entry) which allows one a certain level of adaptability to the context under examination. Multiple commands may be entered on a single line, separated by the pair ';;'. No intelligence is applied to separating the commands; the input is split at the first ';;', even if it is in the middle of a quoted string. If a file ".pdbrc" exists in your home directory or in the current directory, it is read in and executed as if it had been typed at the debugger prompt. This is particularly useful for aliases. If both files exist, the one in the home directory is read first and aliases defined there can be overriden by the local file. Aside from aliases, the debugger is not directly programmable; but it is implemented as a class from which you can derive your own debugger class, which you can make as fancy as you like. Debugger commands ================= Nc@seZdZdZdS)RestartzBCauses a debugger to be restarted for the debugged python program.N)__name__ __module__ __qualname____doc__rr(/opt/alt/python34/lib64/python3.4/pdb.pyrTs rrunpmPdbrunevalrunctxruncall set_trace post_mortemhelpcCstjdtj|}yt|}Wntk rDdSYnX|Dx<t|ddD](\}}|j|r_|||fSq_WWdQXdS)Nzdef\s+%s\s*[(]start)recompileescapeopenOSError enumeratematch)funcnamefilenameZcrefplinenolinerrr find_function[s  r cCsztj|\}}tj|r@|j|jkr@|dfStj|rY|dfStj||d|dfS)Nr)inspectZ findsourceZisframe f_globalsf_localsZismoduleZgetblock)objlinesrrrrgetsourcelineshs !  r&cCsJttj|}|jx$|D]\}}||kr&|Sq&WdS)Nr)listdisZfindlinestartsreverse)codeZlastiZ linestartsirrrr lasti2linenoqs   r,c@s"eZdZdZddZdS)_rstrz#String that doesn't quote its repr.cCs|S)Nr)selfrrr__repr__|sz_rstr.__repr__N)rrrrr/rrrrr-zs r-z -> c@seZdZdddddddZddZdd Zd d Zd d ZddZddZ ddZ ddZ ddZ ddZ ddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5ZeZd6d7d8Zd9d:ZeZeZ eZ!d;d<Z"eZ#d=d>Z$d?d@Z%dAdBZ&eZ'dCdDZ(eZ)dEdFZ*eZ+dGdHZ,eZ-dIdJZ.e.Z/eZ0eZ1dKdLZ2e2Z3e2Z4dMdNZ5dOdPZ6e6Z7dQdRZ8e8Z9dSdTZ:e:Z;dUdVZ<e<Z=dWdXZ>e>Z?dYdZZ@e@ZAd[d\ZBeBZCd]d^ZDeDZEZFd_d`ZGeGZHdadbZIeZJdcddZKeKZLeKZMdedfZNdgdhZOeOZPdidjZQeQZRdkdlZSddmdnZTdodpZUdqdrZVeZWeZXeZYdsdtZZeZZ[dudvZ\e\Z]dwdxZ^eZ_fddydzZ`d{d|ZaeZbd}d~ZceZdddZeddZfddZgddZhddZiddZjddddddgZkddZlemddZnddZoeoZpddZqddZrddZsddZtdS)r ZtabNFc #Cstjj|d|tjj|||||rAd|_nd|_i|_i|_d|_ d|_ i|_ yddl }|j dWntk rYnXd|_||_g|_dtjkr0tjd}y8ttjj|d}|jj|WdQXWq0tk r,Yq0Xny)td}|jj|WdQXWntk rmYnXi|_i|_i|_d|_d|_dS) Nskiprz(Pdb) Fz `@#$%^&*()=+[{]}\|;:'",<>?HOMEz.pdbrc)bdbBdb__init__cmdCmdZ use_rawinputpromptaliases displaying mainpyfile_wait_for_mainpyfile tb_linenoreadlineZset_completer_delims ImportError allow_kbdintnosigintrcLinesosenvironrpathjoinextendrcommandscommands_dopromptcommands_silentcommands_defining commands_bnum) r. completekeystdinstdoutr0rAr>ZenvHomeZrcFilerrrr5sF                   z Pdb.__init__cCsP|jrtn|jd|j|j|tjtj|jdS)Nz- Program interrupted. (Use 'cont' to resume).)r@KeyboardInterruptmessageset_steprsignalSIGINT_previous_sigint_handler)r.Zsignumframerrrsigint_handlers      zPdb.sigint_handlercCstjj||jdS)N)r3r4resetforget)r.rrrrXsz Pdb.resetcCs5d|_g|_d|_d|_|jjdS)Nr)rstackcurindexcurframer=clear)r.rrrrYs     z Pdb.forgetcCs|j|j||\|_|_x;|ret|jj|j}||j|j<|j }q+W|j|jd|_ |j j |_ |j S)Nr)rYZ get_stackrZr[r,tb_framef_codetb_lastir=tb_nextr\r#curframe_locals execRcLines)r.ftbrrrrsetups   z Pdb.setupcCs|js dS|j}|jg|_x]|r|jj}|r,|ddkr,|j|r|jt|7_dSq,q,WdS)Nr#T)rBr)popstriponecmdreversed)r.rBrrrrrcs     zPdb.execRcLinescCs@|jr dS|j|r<|jd|j|dndS)znThis method is called when there is the remote possibility that we ever need to stop in this function.Nz--Call--)r<Z stop_hererQ interaction)r.rVZ argument_listrrr user_calls   z Pdb.user_callcCsl|jrF|j|j|jjks6|jdkr:dSd|_n|j|rh|j|dndS)z;This function is called when we stop or break at this line.rNF)r<r;canonicr_ co_filenamef_lineno bp_commandsrl)r.rVrrr user_lines  z Pdb.user_linecCst|ddr|j|jkr|j}d|_|j}|j|dx"|j|D]}|j|q]W||_|j|s|j|j|j n|j |r|j n|j dSdS)zCall every command that was set for the current active breakpoint (if there is one). Returns True if the normal interaction function must be called, False otherwise. currentbpFrNr) getattrrsrHlastcmdrfrjrJprint_stack_entryrZr[rI_cmdlooprY)r.rVrsZ lastcmd_backrrrrrqs         zPdb.bp_commandscCs;|jr dS||jd<|jd|j|ddS)z7This function is called when a return trap is set here.N __return__z --Return--)r<r#rQrl)r.rVZ return_valuerrr user_returns    zPdb.user_returncCs|jr dS|\}}}||f|jd<| rH|tkrHdnd}|jd|tj||djf|j||dS)zoThis function is called if an exception occurs, but only if we are to stop at or just below this level.NZ __exception__z Internal r1z%s%sr)r<r# StopIterationrQ tracebackformat_exception_onlyrirl)r.rVexc_infoexc_type exc_value exc_tracebackprefixrrruser_exception%s  !zPdb.user_exceptionc CsNxGy!d|_|jd|_PWqtk rE|jdYqXqWdS)NTFz--KeyboardInterrupt--)r@cmdlooprPrQ)r.rrrrw9s    z Pdb._cmdloopcCs|jj|j}|rxk|jD]Z\}}|j|}||k r(||kr(|||<|jd|||fq(q(WndS)Nzdisplay %s: %r [old: %r])r:getr\items_getval_exceptrQ)r.r:exprZoldvalueZnewvaluerrrpreloopFs  z Pdb.preloopcCsO|j||r |jdS|j|j|j|j|jdS)N)rfrYrvrZr[rw)r.rVr|rrrrlSs   zPdb.interactioncCs&|dk r"|jt|ndS)z{Custom displayhook for the exec in default(), which prevents assignment of the _ variable in the builtins. N)rQrepr)r.r$rrr displayhook]s zPdb.displayhookc Cs|dddkr)|dd}n|j}|jj}yt|ddd}tj}tj}tj}z8|jt_|jt_|jt_t|||Wd|t_|t_|t_XWn>tj dd}|j t j |dj YnXdS)Nr! zZsinglerz)rbr\r"rsysrOrNrexecr~errorr|r}ri) r.rlocalsglobalsr*Z save_stdoutZ save_stdinZsave_displayhookr~rrrdefaultes(          z Pdb.defaultcCs4|js|S|j}x|d|jkr|j|d}d}x>|ddD],}|jdt||}|d7}qZW|jddj|dd}|j}qW|ddkr0|jd}|dkr0||d dj}|jj ||d|j }q0n|S) z*Handle alias expansion and ';;' separator.rrN%z%* aliasz;;r) risplitr9replacestrrFfindlstripcmdqueueappendrstrip)r.rargsZiiZtmpArgZmarkernextrrrprecmd{s&   % z Pdb.precmdcCs-|jstjj||S|j|SdS)zInterpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition. N)rKr6r7rjhandle_command_def)r.rrrrrjs z Pdb.onecmdc Cs|j|\}}}|s"dS|dkrBd|j|js z*Pdb._complete_bpnumber..)rr3 Breakpoint bpbynumber)r.rrrrr)rr_complete_bpnumberszPdb._complete_bpnumberc s|js gS|jjj}|j|jdkrjdy<|d}x'ddD]}t||}qlWWnttfk rgSYnXdj dddfddt |DSfdd|j DSdS) N.rrcs-g|]#}|jdr|qS)rrz)r)rn)dottedrrrrs z,Pdb._complete_expression..cs%g|]}|jr|qSr)r)rr)rrrrs rzrz) r\r"copyupdaterbrrtKeyErrorrrFdirkeys)r.rrrrnsr$partr)rrrrrs    zPdb._complete_expressioncCsz|sttjjd}n,yt|}Wn|jddSYnX||_||jkr|j||j||j |f}nd}g|j|)r\r_ror;)r.rrrrrs zPdb.defaultFilecCs|j|ddS)ztbreak [ ([filename:]lineno | function) [, condition] ] Same arguments as break, but sets a temporary breakpoint: it is automatically deleted when first hit. rN)r)r.rrrr do_tbreaksz Pdb.do_tbreakc Cs"d}|jd}t|dkr:|dj}n)t|dkr_|dj}n|S|dkrs|S|jd}|ddkr|d=t|dkr|Sn|j}t|dkr|d}n,|j|d}|r|}n|d}t||} | p!|S) N'rrr1rr.)NNN)rrrirrr ) r.Z identifierZfailedZidstringidpartsZfnameitemrdZanswerrrrrs.     z Pdb.lineinfocCst|dr|jjnd}tj|||}|sM|jddS|j}| s|ddks|dddks|dddkr|jd dS|S) zCheck whether specified line seems to be executable. Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank line or EOF). Warning: testing is not comprehensive. r\Nz End of filerrgrz"""z'''zBlank or comment)rr\r" linecachegetlinerQrir)r.rrrrrrrrs!  , z Pdb.checklinecCs|j}xq|D]i}y|j|}Wn2tk r`}z|j|WYdd}~XqX|j|jd|qWdS)zenable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers. Nz Enabled %s)rget_bpbynumberrrenablerQ)r.rrr+rrrrr do_enables    z Pdb.do_enablecCs|j}xq|D]i}y|j|}Wn2tk r`}z|j|WYdd}~XqX|j|jd|qWdS)aNdisable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of breakpoints and can be (re-)enabled. Nz Disabled %s)rrrrdisablerQ)r.rrr+rrrrr do_disables    zPdb.do_disablecCs|jdd}y|d}Wntk r:d}YnXy|j|dj}WnPtk ry|jdYnltk r}z|j|WYdd}~Xn;X||_|s|jd|jn|jd|jdS)a#condition bpnumber [condition] Set a new condition for the breakpoint, an expression which must evaluate to true before the breakpoint is honored. If condition is absent, any existing condition is removed; i.e., the breakpoint is made unconditional. rrNrzBreakpoint number expectedz#Breakpoint %d is now unconditional.z$New condition set for breakpoint %d.) r IndexErrorrrirrrrQr)r.rrrrrrrr do_conditions     zPdb.do_conditioncCs|j}yt|dj}Wnd}YnXy|j|dj}WnPtk ru|jdYntk r}z|j|WYdd}~XnfX||_|dkr|dkrd|}nd}|jd||j fn|jd|j dS) aignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakpoint is reached and the breakpoint is not disabled and any associated condition evaluates to true. rrzBreakpoint number expectedNz %d crossingsz 1 crossingz%Will ignore next %s of breakpoint %d.z-Will stop next time breakpoint %d is reached.) rrrirrrrignorerQr)r.rrcountrrZcountstrrrr do_ignore6s(          z Pdb.do_ignorec !Cs|sytd}Wntk r0d}YnX|jj}|d krddtjjD}|jx"|D]}|jd|qyWndSd |kri|j d }|d|}||d d}yt |}Wnt k rd |}Yn%X|j ||}|j ||}|rC|j|n"x|D]}|jd|qJWdS|j} xt| D]l}y|j|}Wn2t k r}z|j|WYdd}~Xq|X|j||jd|q|WdS) a=cl(ear) filename:lineno cl(ear) [bpnumber [bpnumber...]] With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). With a filename:lineno argument, clear all breaks at that line in that file. zClear all breaks? noyyescSsg|]}|r|qSrr)rrrrrrgs z Pdb.do_clear..z Deleted %sNrrzInvalid line number (%s))rzyes)inputEOFErrorrirr3rrZclear_all_breaksrQrrrrZ clear_breakrrrZclear_bpbynumber) r.rZreplyZbplistrr+rrrZ numberlistrrrdo_clearYsF            z Pdb.do_clearcCs|jdS)zw(here) Print a stack trace, with the most recent frame at the bottom. An arrow indicates the "current frame", which determines the context of most commands. 'bt' is an alias for this command. N)print_stack_trace)r.rrrrdo_wheresz Pdb.do_wherecCsS||_|j|jd|_|jj|_|j|j|jd|_dS)Nr)r[rZr\r#rbrvr)r.rrrr _select_frames  zPdb._select_framec Cs|jdkr |jddSyt|p/d}Wn'tk r_|jd|dSYnX|dkrud}ntd|j|}|j|dS)zu(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame). rz Oldest frameNrzInvalid frame count (%s))r[rrrmaxr)r.rrnewframerrrdo_ups     z Pdb.do_upc Cs|jdt|jkr-|jddSyt|p<d}Wn'tk rl|jd|dSYnX|dkrt|jd}n#tt|jd|j|}|j|dS)zd(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame). rz Newest frameNzInvalid frame count (%s)r)r[rrZrrrminr)r.rrrrrrdo_downs    #z Pdb.do_downc Cs|rfyt|}Wn'tk r?|jd|dSYnX||jjkrl|jddSnd}|j|j|dS)aNunt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when the current frame returns. zError in argument: %rNz7"until" line number is smaller than current line numberr)rrrr\rpZ set_until)r.rrrrrdo_untils   z Pdb.do_untilcCs|jdS)zs(tep) Execute the current line, stop at the first possible occasion (either in a function that is called or in the current function). r)rR)r.rrrrdo_steps z Pdb.do_stepcCs|j|jdS)zxn(ext) Continue execution until the next line in the current function is reached or it returns. r)Zset_nextr\)r.rrrrdo_nextsz Pdb.do_nextcCsW|rMddl}tjdd}|j|t_|tjdd". If an exception is being debugged, the line where the exception was originally raised or propagated is indicated by ">>", if it differs from the current line. r'NrrrzError in argument: %r z[EOF])rurrrirrrrr\rpr_roget_file_breaksrgetlinesr" _print_linesrrrQrP)r.rlastfirstr breaklistr%rrrdo_lists>          z Pdb.do_listcCs|jjj}|j|}yt|j\}}Wn6tk ro}z|j|dSWYdd}~XnX|j||||jdS)z\longlist | ll List the whole source code for the current function or frame. N)r\r_ror+r&rrr-)r.rrr0r%rrrrr do_longlists zPdb.do_longlistcCsy|j|}Wn dSYnXyt|\}}Wn<ttfk rv}z|j|dSWYdd}~XnX|j||dS)z^source expression Try to get source code for the given object and display it. N)r%r&r TypeErrorrr-)r.rr$r%rrrrr do_sources  z Pdb.do_sourcec Cs|r'|j}|jj|d }n d }}xt||D]\}}t|jd} t| dkr| d7} n||kr| d7} n | d7} ||kr| d7} n||kr| d7} n|j| d|jqAWd S) zPrint a range of lines.rrrrBz->z>> Nrzrz) rpr=rrrrjustrrQr) r.r%rrrVZcurrent_linenoZ exc_linenorrsrrrr-s           zPdb._print_linescCsy|j|}Wn dSYnXd}y |j}Wntk rIYnX|rh|jd|jdSy|jj}Wntk rYnX|r|jd|jdS|jtkr|jd|j|j fdS|jt|dS)z;whatis arg Print the type of the argument. Nz Function %sz Method %sz Class %s.%s) r%rrrQrr __class__typerr)r.rvaluer*rrr do_whatis s.    z Pdb.do_whatiscCs|sP|jdx||jj|jijD]}|jd|q2WnB|j|}||jj|ji|<|jd||fdS)zdisplay [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame. zCurrently displaying:z%s: %rzdisplay %s: %rN)rQr:rr\rr setdefault)r.rrvalrrr do_display.s %zPdb.do_displayc Csf|rLy|jj|ji|=Wqbtk rH|jd|YqbXn|jj|jddS)zundisplay [expression] Do not display the expression any more in the current frame. Without expression, clear all display expressions for the current frame. znot displaying %sN)r:rr\rrrh)r.rrrr do_undisplayAs  zPdb.do_undisplaycs)fdd|jj|jiDS)Ncs%g|]}|jr|qSr)r)rr)rrrrQs z*Pdb.complete_undisplay..)r:rr\)r.rrrrr)rrcomplete_undisplayPszPdb.complete_undisplaycCs9|jjj}|j|jtjdd|dS)zinteract Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope. z *interactive*ZlocalN)r\r"rrrbr*interact)r.rrrrr do_interactTszPdb.do_interactcCs|j}t|dkrft|jj}x,|D]$}|jd||j|fq:WdS|d|jkrt|dkr|jd|d|j|dfn$dj|dd|j|d