diff options
author | Guido van Rossum <guido@python.org> | 1993-10-22 13:56:35 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-10-22 13:56:35 +0000 |
commit | bc8504eb9b215b8a37e802efde0171ad0e1031dd (patch) | |
tree | 36298d405c72d60fec7835bce6f24f4a03b04ee9 /Lib/pdb.py | |
parent | 6c2cdba1e193b4ac24f43385830100fa375cf933 (diff) | |
download | cpython-bc8504eb9b215b8a37e802efde0171ad0e1031dd.tar.gz |
* 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
diff --git a/Lib/pdb.py b/Lib/pdb.py index 06f5cf8c7b..f415e409f1 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -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' |