diff options
author | Guido van Rossum <guido@python.org> | 1993-10-22 13:56:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-10-22 13:56:35 (GMT) |
commit | e61fa0a1e4c6598f286f54772c7e065c49dc17ba (patch) | |
tree | f21820dcbed2fd21bc6089eadac6b55ff8817ae9 /Lib/pdb.py | |
parent | 3bb8a05947fb67ed827dd1e8d7c0a982a1ff989e (diff) | |
download | cpython-e61fa0a1e4c6598f286f54772c7e065c49dc17ba.zip cpython-e61fa0a1e4c6598f286f54772c7e065c49dc17ba.tar.gz cpython-e61fa0a1e4c6598f286f54772c7e065c49dc17ba.tar.bz2 |
* profile.py, pdb.py: added help() function
* builtin.py: b/w compat for builtin -> __builtin__ name change
* string.py: added atof() and atol() and corresponding exceptions
* test_types.py: added test for list sort with user comparison function
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -312,3 +312,15 @@ def test(): import linecache linecache.checkcache() run(TESTCMD) + +# print help +def help(): + for dirname in sys.path: + fullname = os.path.join(dirname, 'pdb.doc') + if os.path.exists(fullname): + sts = os.system('${PAGER-more} '+fullname) + if sts: print '*** Pager exit status:', sts + break + else: + print 'Sorry, can\'t find the help file "pdb.doc"', + print 'along the Python search path' |