Skip to content

WeakValueDictionary bug in setdefault()&pop() #63741

@arigo

Description

@arigo
mannequin
BPO 19542
Nosy @tim-one, @freddrake, @arigo, @pitrou, @serhiy-storchaka, @Tinche
PRs
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • Files
  • x.py: Raw test for Python 3. On Python 2, replace _thread with thread.
  • weakref.slice: Proposed fix for these two methods (not as a diff because it's a bit unreadable)
  • fix-weakvaluedict.diff: Test and fix for trunk
  • fix-weakvaluedict-2.7.diff: Test and fix for 2.7
  • 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 2016-12-26.20:58:59.392>
    created_at = <Date 2013-11-10.08:51:04.410>
    labels = ['3.7', 'type-bug', 'library']
    title = 'WeakValueDictionary bug in setdefault()&pop()'
    updated_at = <Date 2017-03-31.16:36:07.310>
    user = 'https://github.com/arigo'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:07.310>
    actor = 'dstufft'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-12-26.20:58:59.392>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2013-11-10.08:51:04.410>
    creator = 'arigo'
    dependencies = []
    files = ['32557', '32558', '37992', '37993']
    hgrepos = []
    issue_num = 19542
    keywords = ['needs review']
    message_count = 15.0
    messages = ['202510', '205603', '205609', '205614', '205645', '205674', '235301', '245470', '245471', '279455', '283599', '283601', '283602', '284040', '284046']
    nosy_count = 8.0
    nosy_names = ['tim.peters', 'fdrake', 'arigo', 'pitrou', 'Arfrever', 'python-dev', 'serhiy.storchaka', 'tinchester']
    pr_nums = ['552']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue19542'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions