[Python-Dev] Skiping searching throw dictionaries of mro() members. (original) (raw)

Phillip J. Eby pje at telecommunity.com
Wed Sep 14 19:49:42 CEST 2005


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.



More information about the Python-Dev mailing list