This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients larry, mark.dickinson, r.david.murray, terry.reedy
Date 2012-12-29.01:26:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356744411.51.0.317795498804.issue16801@psf.upfronthosting.co.za>
In-reply-to
Content
David is correct

>>> dbm.open.__doc__
"Open or create database at path given by *file*.\n\n    Optional argument *flag* can be 'r' (default) for read-only access, 'w'\n    for read-write access of an existing database, 'c' for read-write access\n    to a new or existing database, and 'n' for read-write access to a new\n    database.\n\n    Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it\n    only if it doesn't exist; and 'n' always creates a new database.\n    "
>>> help(dbm.open)
Help on function open in module dbm:

open(file, flag='r', mode=438)
    Open or create database at path given by *file*.
...    

IDLE tooltip (still using inspect.getfullargspec) also shows
open(file, flag='r', mode=438)
The int comes from dbm.open.__defaults__[1]
438
History
Date User Action Args
2012-12-29 01:26:55terry.reedysetrecipients: + terry.reedy, mark.dickinson, larry, r.david.murray
2012-12-29 01:26:51terry.reedysetmessageid: <1356744411.51.0.317795498804.issue16801@psf.upfronthosting.co.za>
2012-12-29 01:26:51terry.reedylinkissue16801 messages
2012-12-29 01:26:48terry.reedycreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.