Message247228
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. |
|
Date |
User |
Action |
Args |
2015-07-23 19:19:57 | eric.frederich | set | recipients:
+ eric.frederich, rhettinger, eric.snow |
2015-07-23 19:19:57 | eric.frederich | set | messageid: <1437679197.52.0.102422129271.issue24685@psf.upfronthosting.co.za> |
2015-07-23 19:19:57 | eric.frederich | link | issue24685 messages |
2015-07-23 19:19:57 | eric.frederich | create | |
|