Re: Metaclasses and new-style classes

2005-08-07 Thread Robert Kern
Jan-Ole Esleben wrote: > Hi! > > I've just posted a question about metaclasses in ZOPE on the ZOPE > list, and one of the replies said that metaclasses (at least > "painless" metaclasses) cannot be used without new-style classes (or > rather, that they don't work where you cannot explicitly use ne

Re: Metaclasses and new-style classes

2005-08-07 Thread Jordan Rastrick
Correct me if I'm wrong, but I think the OP was asking if metaclasses work with old-style classes, not new-style. [EMAIL PROTECTED] wrote: > This may be a limitation Zope imposes. > > I wrote this program: > #--- > class M(type):

Re: Metaclasses and new-style classes

2005-08-07 Thread jepler
This may be a limitation Zope imposes. I wrote this program: #--- class M(type): def __new__(*args): print "new M", args class T(object): __metaclass__ = M #

Metaclasses and new-style classes

2005-08-07 Thread Jan-Ole Esleben
Hi! I've just posted a question about metaclasses in ZOPE on the ZOPE list, and one of the replies said that metaclasses (at least "painless" metaclasses) cannot be used without new-style classes (or rather, that they don't work where you cannot explicitly use new-style classes). I haven't so far