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: code class autosuper(type): def __init__(cls,name,bases,dict): super(autosuper,cls).__init__(name,bases,dict)

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

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: code class autosuper(type): def __init__(cls,name,bases,dict):