[Python-Dev] how to test behavior wrt an extension type?

Raymond Hettinger python at rcn.com
Sun Jan 16 11:17:52 CET 2005


[Alex]
> So, as per discussion here, I have prepared a patch (to the
maintenance
> branch of 2.3, to start with) which adds unit tests to highlight these
> issues, and fixes them in copy.py.  This patch should go in the
> maintenance of 2.3 and 2.4, but in 2.5 a different approach based on
> new special descriptors for special methods is envisaged (though
> keeping compatibility with classic extension types may also require
> some patching to copy.py along the lines of my patch).

For Py2.5, do you have in mind changing something other than copy.py?
If so, please outline your plan.  I hope your not planning on wrapping
all special method access as descriptor look-ups -- that would be a
somewhat radical change.


Raymond



More information about the Python-Dev mailing list