At 09:12 PM 9/14/2005 +0400, Sokolov Yura wrote: >We could cash looks by this way: >Store with a class its version. Every time after creation when we change >a class >(add,remove or chage class member, including __base__, __bases__ and mro) , >we increase the version number. Lets call it VERSION
FYI, there is already a mechanism for new-style classes that notifies subclasses of changes to the base class; this mechanism could be used to push cache flushes downward, rather than doing version checking upward. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com