Re: A newbie metaclass question

2005-05-22 Thread Steven Bethard
could ildg wrote: > When I try to learn metaclass of python by article at this place: > http://www.python.org/2.2/descrintro.html#metaclasses, > I changed the autosuper example a little as below: > > class autosuper(type): > def __init__(cls,name,bases,dict): > super(autosuper,cls).__i

Re: A newbie metaclass question

2005-05-22 Thread Peter Otten
could ildg wrote: > When I try to learn metaclass of python by article at this place: > http://www.python.org/2.2/descrintro.html#metaclasses, > I changed the autosuper example a little as below: > > class autosuper(type): > def __init__(cls,name,bases,dict): > super(autosuper,cls).__

Re: A newbie metaclass question

2005-05-22 Thread Michele Simionato
There are many resources for metaclasses on the Net. There was a Wiki page on www.python.org about them, but I don't find it now. So, I will refer you to the links I have handy: http://www-106.ibm.com/developerworks/linux/library/l-pymeta.html http://www-128.ibm.com/developerworks/linux/library/l-

A newbie metaclass question

2005-05-22 Thread could ildg
When I try to learn metaclass of python by article at this place: http://www.python.org/2.2/descrintro.html#metaclasses, I changed the autosuper example a little as below: class autosuper(type): def __init__(cls,name,bases,dict): super(autosuper,cls).__init__(name,bases,dict) s