This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.frederich
Recipients eric.frederich, eric.snow, rhettinger
Date 2015-07-23.19:19:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437679197.52.0.102422129271.issue24685@psf.upfronthosting.co.za>
In-reply-to
Content
Attached, as inj3.py, is a version I made which seems to work with Python2 but not with Python3's C implementation of OrderedDict.

I had to walk the MRO myself to get the unbound method to pass along as dict_setitem.

With Python3 it doesn't look like doing this was left configurable.
It crashes complaining "TypeError: wrapper __setitem__ doesn't take keyword arguments"

Re-opening this bug since it seems impossible to make OrderedDict cooperative in Python3 even with a wrapper.

Perhaps Python3's OrderedDict should either
(a) be cooperative at the C level
(b) support dict_setitem keyword argument to maintain compatibility with Python2.
History
Date User Action Args
2015-07-23 19:19:57eric.frederichsetrecipients: + eric.frederich, rhettinger, eric.snow
2015-07-23 19:19:57eric.frederichsetmessageid: <1437679197.52.0.102422129271.issue24685@psf.upfronthosting.co.za>
2015-07-23 19:19:57eric.frederichlinkissue24685 messages
2015-07-23 19:19:57eric.frederichcreate