Skip to content

fix OrderedDict.__init__ docstring to reflect PEP 468 #74847

Closed

Description

@jonathaneunice
BPO 30662
Nosy @brettcannon, @rhettinger, @ericsnowcurrently, @serhiy-storchaka, @jonathaneunice, @Mariatta
PRs
  • bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 #2179
  • [3.6] bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (GH-… #3370
  • 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 = 'https://github.com/Mariatta'
    closed_at = <Date 2017-09-06.01:13:34.075>
    created_at = <Date 2017-06-14.04:46:10.997>
    labels = ['3.7', 'library']
    title = 'fix OrderedDict.__init__ docstring to reflect PEP 468'
    updated_at = <Date 2017-09-06.01:13:34.074>
    user = 'https://github.com/jonathaneunice'
    

    bugs.python.org fields:

    activity = <Date 2017-09-06.01:13:34.074>
    actor = 'Mariatta'
    assignee = 'Mariatta'
    closed = True
    closed_date = <Date 2017-09-06.01:13:34.075>
    closer = 'Mariatta'
    components = ['Library (Lib)']
    creation = <Date 2017-06-14.04:46:10.997>
    creator = 'jonathaneunice'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30662
    keywords = []
    message_count = 8.0
    messages = ['295982', '295987', '296039', '296053', '301397', '301410', '301426', '301427']
    nosy_count = 6.0
    nosy_names = ['brett.cannon', 'rhettinger', 'eric.snow', 'serhiy.storchaka', 'jonathaneunice', 'Mariatta']
    pr_nums = ['2179', '3370']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue30662'
    versions = ['Python 3.6', 'Python 3.7']
    

    Activity

    1. jonathaneunice commented on Jun 14, 2017

      jonathaneunicemannequin
      MannequinAuthor

      In Python 3.6 and current repo (pre-3.7), the docstring for collections.OrderedDict.__init__() stats that keyword argument order is arbitrary. That is untrue if I properly understand PEP-468, which as of Python 3.6 makes the order of kwargs stable / identical to the order seen in the source code.

      Associated PR imminent.

    2. added
      3.7 (EOL)
      stdlib
      on Jun 14, 2017
    3. self-assigned this
      on Jun 14, 2017
    4. serhiy-storchaka commented on Jun 14, 2017

      @serhiy-storchaka
      Member

      Currently there are two implementations of OrderedDict, and Python implementation is not used. Is C implementation need an update? What about the module documentation, is it need an update?

      I don't think that we should include such details about past Python versions in docstrings. I can't remember precedences.

    5. brettcannon commented on Jun 14, 2017

      @brettcannon
      Member

      Past Python details should not be included in docstrings; it should simply represent the current code.

    6. jonathaneunice commented on Jun 15, 2017

      jonathaneunicemannequin
      MannequinAuthor

      PR updated to incorporate Serhiy Storchaka and Brett Cannon feedback.

    7. rhettinger commented on Sep 5, 2017

      @rhettinger
      Contributor

      New changeset faa57cb by Raymond Hettinger (Jonathan Eunice) in branch 'master':
      bpo-30662: fixed OrderedDict.__init__ docstring re PEP-468 (bpo-2179)
      faa57cb

    8. rhettinger commented on Sep 6, 2017

      @rhettinger
      Contributor

      Mariatta is working on the backport.

    9. Mariatta commented on Sep 6, 2017

      @Mariatta
      Member

      New changeset 3b9d444 by Mariatta in branch '3.6':
      [3.6] bpo-30662: fixed OrderedDict.__init__ docstring re PEP-468 (GH-2179) (GH-3370)
      3b9d444

    10. Mariatta commented on Sep 6, 2017

      @Mariatta
      Member

      Backport done.
      Thanks all :)

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

    Labels

    3.7 (EOL)stdlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions