Skip to content

Add default value support to collections.namedtuple() #76501

Closed

Description

@rhettinger
BPO 32320
Nosy @rhettinger, @ilevkivskyi
PRs
  • bpo-32320: Add default value support to collections.namedtuple() #4859
  • 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 2018-01-11.05:45:59.929>
    created_at = <Date 2017-12-14.08:44:35.051>
    labels = ['3.7', 'library']
    title = 'Add default value support to collections.namedtuple()'
    updated_at = <Date 2018-01-11.05:45:59.929>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2018-01-11.05:45:59.929>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-01-11.05:45:59.929>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2017-12-14.08:44:35.051>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32320
    keywords = ['patch']
    message_count = 2.0
    messages = ['308282', '309792']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'levkivskyi']
    pr_nums = ['4859']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue32320'
    versions = ['Python 3.7']

    Activity

    1. rhettinger commented on Dec 14, 2017

      @rhettinger
      ContributorAuthor

      Add default argument support and _fields_defaults attribute modeled after typing.NamedTuple.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Dec 14, 2017
    3. rhettinger commented on Jan 11, 2018

      @rhettinger
      ContributorAuthor

      New changeset 3948207 by Raymond Hettinger in branch 'master':
      bpo-32320: Add default value support to collections.namedtuple() (bpo-4859)
      3948207

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

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions