classification
Title: TypeError: popitem() takes no keyword arguments
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Some C OrderedDict methods need to support keyword arguments.
View: 24368
Assigned To: Nosy List: cool-RR, eric.snow, rhettinger
Priority: normal Keywords:

Created on 2015-06-06 14:00 by cool-RR, last changed 2015-06-06 15:38 by eric.snow. This issue is now closed.

Messages (3)
msg244906 - (view) Author: Ram Rachum (cool-RR) * Date: 2015-06-06 14:00
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
msg244908 - (view) Author: Ram Rachum (cool-RR) * Date: 2015-06-06 14:06
I'm seeing a similar problem with `move_to_end` and its `last` keyword argument.
msg244916 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2015-06-06 15:38
This has been fixed in issue24368.  The fix came just after the beta 2 release.
History
Date User Action Args
2015-06-06 15:38:26eric.snowsetstatus: open -> closed
superseder: Some C OrderedDict methods need to support keyword arguments.
messages: + msg244916

resolution: duplicate
stage: resolved
2015-06-06 14:23:01serhiy.storchakasetnosy: + rhettinger, eric.snow

type: behavior
components: + Library (Lib)
versions: + Python 3.5, Python 3.6
2015-06-06 14:06:12cool-RRsetmessages: + msg244908
2015-06-06 14:00:50cool-RRcreate