The same problem is also present in the BTrees module. It manifests itself in various ways, like slicing not working correctly.
I have attached a patch for the BTrees module. It needs the "#if PY_VERSION_HEX" like the other patch and typedefs for the other new types (lenfunc, ssizeargfunc, etc.) to work with older python versions. I felt that this code is better put in some common place instead of being copy & pasted into each file (but not sure where that is).
The same problem is also present in the BTrees module. It manifests itself in various ways, like slicing not working correctly.
I have attached a patch for the BTrees module. It needs the "#if PY_VERSION_HEX" like the other patch and typedefs for the other new types (lenfunc, ssizeargfunc, etc.) to work with older python versions. I felt that this code is better put in some common place instead of being copy & pasted into each file (but not sure where that is).
All tests pass with both patches applied.
Shane