Message91342
I suspect that for most users, shelve is the main way they will access
the dbm.* interfaces. Based on that, the dict methods that are really
needed on dbm.* objects are just: __iter__, __len__, __getitem__,
__setitem__, __delitem__, __contains__, has_key, and keys.
Note: Issue 5736 aims to make dbm.* support the iterator protocol, which
would be crucial for making shelve iteration scalable (currently,
iterating on a Shelf will call self.dict.keys(), loading the entire
index into memory!).
The dbm.* docs could also explicitly tell users who want a *complete*
dict interface to create a class that inherits from both dbm and
UserDict.DictMixin / MutableMapping. |
|
Date |
User |
Action |
Args |
2009-08-06 01:08:13 | foobaron | set | recipients:
+ foobaron, loewis, georg.brandl, pitrou |
2009-08-06 01:08:12 | foobaron | set | messageid: <1249520892.48.0.119221353983.issue6045@psf.upfronthosting.co.za> |
2009-08-06 01:08:10 | foobaron | link | issue6045 messages |
2009-08-06 01:08:10 | foobaron | create | |
|