need something like __init__ in classes __classinit__

Michael Chermside mcherm at destiny.com
Mon Apr 8 08:33:15 EDT 2002


Kevin Jacobs writes:
>   o A metaclass that lazily instantiates slots so that you can write:
       [...]
>   o A metaclass that adds constraint checking to attributes and slots.  This
       [...]
>   o A tuple building metaclass
       [...]
>   o The above ClassInit metaclass.
       [...]

COOL!!!  These seem FUN. Where did you say you had these posted? Sounds 
like the beginning of a new section of the cookbook or something... nice 
examples!

-- Michael Chermside





More information about the Python-list mailing list