mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Create the dbm package from PEP 3108. #2881.
This commit is contained in:
parent
e6f00637be
commit
0a7ac7d70d
41 changed files with 690 additions and 876 deletions
|
@ -7,8 +7,8 @@
|
|||
class Dbm:
|
||||
|
||||
def __init__(self, filename, mode, perm):
|
||||
import dbm
|
||||
self.db = dbm.open(filename, mode, perm)
|
||||
import dbm.ndbm
|
||||
self.db = dbm.ndbm.open(filename, mode, perm)
|
||||
|
||||
def __repr__(self):
|
||||
s = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue