* 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
This commit is contained in:
Guido van Rossum 1993-10-22 13:56:35 +00:00
parent 3bb8a05947
commit e61fa0a1e4
5 changed files with 93 additions and 2 deletions

View file

@ -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'