Message87990
First, lowering priority.
> I disagree that this is release-critical. I think it is desirable to
> say that the dbm modules support most of a dict-style interface,
> and I also think that it is factually correct to claim that they
> currently do.
Supporting only __getitem__, __setitem__, __delitem__, __contains__ and
keys is already "most of a dict-style interface"? Only dumbdbm and
bsddb, which isn't in the core anymore, support more methods.
> The problem with the current documentation is that it apparently stopped
> documenting the "dict-style interface", in the sense
> http://www.python.org/doc/2.5/lib/typesmapping.html
> did. Instead, the documentation now only documents the dict type itself.
> If a dict-style interface was specified, one would have to specify
> whether returning views from keys/values/items is part of the dict-style
> interface or not.
It should first be decided what a "dict-style interface" means in Python
3, then I can document it :)
However, for the dbm modules I would be in favor of only specifying the
four mentioned methods, as in the docstring of dbm/__init__.py, and not
claiming any more. |
|
Date |
User |
Action |
Args |
2009-05-17 11:33:27 | georg.brandl | set | recipients:
+ georg.brandl, loewis |
2009-05-17 11:33:27 | georg.brandl | set | messageid: <1242560007.47.0.980844872261.issue6045@psf.upfronthosting.co.za> |
2009-05-17 11:33:26 | georg.brandl | link | issue6045 messages |
2009-05-17 11:33:25 | georg.brandl | create | |
|