[issue6045] Fix dbm interfaces

2010-01-22 Thread Pablo Mouzo
Changes by Pablo Mouzo : -- nosy: +pablomouzo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6045] Fix dbm interfaces

2009-08-05 Thread Christopher Lee
Christopher Lee added the comment: 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

[issue6045] Fix dbm interfaces

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Would inheriting from MutableMapping fix this problem? In principle: some of it, yes. These types are written in C, so I'm not sure how exactly it would work. Also, it still wouldn't provide all methods, e.g. copy(), fromkeys(), get(), values(), items() woul

[issue6045] Fix dbm interfaces

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: >> 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__, __

[issue6045] Fix dbm interfaces

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > So, either we remove the claim that they have a dict-style interface > beyond __*item__() and keys(), or we do something about it. I disagree that this is release-critical. I think it is desirable to say that the dbm modules support most of a dict-style inte

[issue6045] Fix dbm interfaces

2009-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would inheriting from MutableMapping fix this problem? -- nosy: +pitrou ___ Python tracker ___ ___ P

[issue6045] Fix dbm interfaces

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: 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

[issue6045] Fix dbm interfaces

2009-05-17 Thread Georg Brandl
New submission from Georg Brandl : All the dbm.* modules currently have different interfaces, and different levels of supporting the Python3-style dictionary interface -- while the docs claim they all have (most of) the dict interface. For example, both dbm.gnu and dbm.ndbm only have keys() meth