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
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):
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
#
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