[issue3783] dbm.sqlite proof of concept
report at bugs.python.org
Thu Sep 11 15:48:04 CEST 2008
Skip Montanaro <skip at pobox.com> added the comment:
>> I'd like to guarantee that zip(db.keys(), db.values() == db.items().
Antoine> It doesn't sound very useful, and it may hurt performance on
Antoine> big tables.
Actually, I think Python guarantees (for dicts at least - other mappings
should probably follow suit) that if you call keys() then call values()
without making any changes to the dict that their orders match, e.g., that
zip(d.keys(), d.values()) == d.items()
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list