Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get method for dbm interface #52880

Closed
Kain94 mannequin opened this issue May 6, 2010 · 6 comments
Closed

get method for dbm interface #52880

Kain94 mannequin opened this issue May 6, 2010 · 6 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@Kain94
Copy link
Mannequin

Kain94 mannequin commented May 6, 2010

BPO 8634
Nosy @birkenfeld, @merwok
Superseder
  • bpo-9523: Improve dbm modules
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-11-12.01:14:51.610>
    created_at = <Date 2010-05-06.08:09:26.006>
    labels = ['type-feature', 'library']
    title = 'get method for dbm interface'
    updated_at = <Date 2010-11-12.01:14:51.609>
    user = 'https://bugs.python.org/Kain94'

    bugs.python.org fields:

    activity = <Date 2010-11-12.01:14:51.609>
    actor = 'eric.araujo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-11-12.01:14:51.610>
    closer = 'eric.araujo'
    components = ['Library (Lib)']
    creation = <Date 2010-05-06.08:09:26.006>
    creator = 'Kain94'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 8634
    keywords = []
    message_count = 6.0
    messages = ['105130', '112400', '112403', '112484', '112990', '121003']
    nosy_count = 4.0
    nosy_names = ['georg.brandl', 'eric.araujo', 'Kain94', 'ysj.ray']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '9523'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue8634'
    versions = ['Python 3.2']

    @Kain94
    Copy link
    Mannequin Author

    Kain94 mannequin commented May 6, 2010

    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.

    @Kain94 Kain94 mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels May 6, 2010
    @briancurtin briancurtin changed the title [PATCH] get method for dbm interface get method for dbm interface May 6, 2010
    @birkenfeld
    Copy link
    Member

    dbm.ndbm already has get(). dbm.gnu is missing it.

    @Kain94
    Copy link
    Mannequin Author

    Kain94 mannequin commented Aug 1, 2010

    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.

    @ysjray
    Copy link
    Mannequin

    ysjray mannequin commented Aug 2, 2010

    +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.

    @ysjray
    Copy link
    Mannequin

    ysjray mannequin commented Aug 5, 2010

    See bpo-9523.

    @merwok
    Copy link
    Member

    merwok commented Nov 12, 2010

    The other bug report adds the get method as part of MutableMapping compliance, so I’m closing this as a obsoleted.

    @merwok merwok closed this as completed Nov 12, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants