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

TypeError: popitem() takes no keyword arguments #68582

Closed
cool-RR mannequin opened this issue Jun 6, 2015 · 3 comments
Closed

TypeError: popitem() takes no keyword arguments #68582

cool-RR mannequin opened this issue Jun 6, 2015 · 3 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@cool-RR
Copy link
Mannequin

cool-RR mannequin commented Jun 6, 2015

BPO 24394
Nosy @rhettinger, @cool-RR, @ericsnowcurrently
Superseder
  • bpo-24368: Some C OrderedDict methods need to support keyword arguments.
  • 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 2015-06-06.15:38:26.200>
    created_at = <Date 2015-06-06.14:00:50.791>
    labels = ['type-bug', 'library']
    title = 'TypeError: popitem() takes no keyword arguments'
    updated_at = <Date 2015-06-06.15:38:26.198>
    user = 'https://github.com/cool-RR'

    bugs.python.org fields:

    activity = <Date 2015-06-06.15:38:26.198>
    actor = 'eric.snow'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-06-06.15:38:26.200>
    closer = 'eric.snow'
    components = ['Library (Lib)']
    creation = <Date 2015-06-06.14:00:50.791>
    creator = 'cool-RR'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 24394
    keywords = []
    message_count = 3.0
    messages = ['244906', '244908', '244916']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'cool-RR', 'eric.snow']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '24368'
    type = 'behavior'
    url = 'https://bugs.python.org/issue24394'
    versions = ['Python 3.5', 'Python 3.6']

    @cool-RR
    Copy link
    Mannequin Author

    cool-RR mannequin commented Jun 6, 2015

    Python 3.5.0b2 (v3.5.0b2:7a088af5615b, May 31 2015, 06:22:19) [MSC v.1900 64 bit (AMD64)] on win32  
    Type "help", "copyright", "credits" or "license" for more information.                              
    >>> import collections                                                                              
    >>> o=collections.OrderedDict()                                                                     
    >>> o.popitem(last=True)                                                                            
    Traceback (most recent call last):                                                                  
      File "<stdin>", line 1, in <module>                                                               
    TypeError: popitem() takes no keyword arguments

    @cool-RR
    Copy link
    Mannequin Author

    cool-RR mannequin commented Jun 6, 2015

    I'm seeing a similar problem with move_to_end and its last keyword argument.

    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jun 6, 2015
    @ericsnowcurrently
    Copy link
    Member

    This has been fixed in bpo-24368. The fix came just after the beta 2 release.

    @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-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants