Skip to content

get method for dbm interface #52880

Description

@Kain94
mannequin
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']

    Activity

    1. Kain94 commented on May 6, 2010

      Kain94mannequin
      MannequinAuthor

      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.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on May 6, 2010
    3. changed the title [-][PATCH] get method for dbm interface[/-] [+]get method for dbm interface[/+] on May 6, 2010
    4. birkenfeld commented on Aug 1, 2010

      @birkenfeld
      Member

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

    5. Kain94 commented on Aug 1, 2010

      Kain94mannequin
      MannequinAuthor

      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.

    6. ysjray commented on Aug 2, 2010

      ysjraymannequin
      Mannequin

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

    7. ysjray commented on Aug 5, 2010

      ysjraymannequin
      Mannequin
    8. merwok commented on Nov 12, 2010

      @merwok
      Member

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

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions