Issue 8634: get method for dbm interface (original ) (raw )Created on 2010-05-06 08:09 by Kain94 , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (6)
msg105130 - (view)
Author: Benjamin VENELLE (Kain94)
Date: 2010-05-06 08:09
I'm suggesting to add the dict's 'get' method to dbm interface. So that, it would be easier to manage 'key not found' issues. B. Venelle.
msg112400 - (view)
Author: Georg Brandl (georg.brandl) *
Date: 2010-08-01 23:01
dbm.ndbm already has get(). dbm.gnu is missing it.
msg112403 - (view)
Author: Benjamin VENELLE (Kain94)
Date: 2010-08-01 23:29
Yes I know, that's why get() should be a standard dbm's method like __getitem__() and __setitem__(). So, defining it in all classes which implements dbm interface would be a good enhancement.
msg112484 - (view)
Author: ysj.ray (ysj.ray)
Date: 2010-08-02 14:58
+1 on generalize the dbm.gnu and gbm.ndbm, and also dbm.dumb. All of them should follow the Collections.MutableMapping ABC. I will work out a patch to fix this.
msg112990 - (view)
Author: ysj.ray (ysj.ray)
Date: 2010-08-05 15:24
See .
msg121003 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2010-11-12 01:14
The other bug report adds the get method as part of MutableMapping compliance, so I’m closing this as a obsoleted.
History
Date
User
Action
Args
2022-04-11 14:57:00
admin
set
github: 52880
2010-11-12 01:14:51
eric.araujo
set
status: open -> closedresolution: duplicatemessages: + superseder: Improve dbm modules stage: resolved
2010-08-05 15:24:47
ysj.ray
set
messages: +
2010-08-02 14:59:29
eric.araujo
set
nosy: + eric.araujo
2010-08-02 14:58:28
ysj.ray
set
nosy: + ysj.ray messages: +
2010-08-01 23:29:16
Kain94
set
messages: +
2010-08-01 23:01:45
georg.brandl
set
nosy: + georg.brandl messages: +
2010-05-06 13:10:43
brian.curtin
set
title: [PATCH] get method for dbm interface -> get method for dbm interfaceversions: - Python 2.7, Python 3.3
2010-05-06 08:09:26
Kain94
create