Message131551
I'm just pointing out a problem. Lots of existing code uses the concrete API and that code can break subclasses of builtin types (possibly resulting in segfaults).
I don't really care what is done about it. I'm just observing that the current design of the concrete API is incompatible with subclassing of built-in types.
A practical consequence is that I don't see how to write a fast, light C version of OrderedDict that would be safe from calls to PyDict_SetItem(). AFAICT, there is no mechanism for adding extra state to a built-in type and being able to guarantee even very simple invariants. |
|
Date |
User |
Action |
Args |
2011-03-20 21:55:23 | rhettinger | set | recipients:
+ rhettinger, ncoghlan, pitrou, eric.araujo, Trundle, daniel.urban |
2011-03-20 21:55:23 | rhettinger | set | messageid: <1300658123.02.0.849113821695.issue10977@psf.upfronthosting.co.za> |
2011-03-20 21:55:22 | rhettinger | link | issue10977 messages |
2011-03-20 21:55:22 | rhettinger | create | |
|