On  29 Nov 2006, at 1:10 AM, Greg Ewing wrote:



BTW, another advantage of all this is that it provides a lot
more flexibility in the overall approach to implementing
the type object. For example, we might decide to move the
type slots into a separate memory block, so that the
type struct could be extended by subclasses in the same
way as other types.

You underestimate the amount of effort that was spend on the 2.x PyTypeObject implementation :-). It is already possibly to extend the type struct in Python 2.3 and later (at least of heap allocated types). One example use of this is PyObjCClassObject in PyObjC.

This won't work in Python 2.2, the necessary machinery was added to the type implementation in 2.3.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to