-Original Message-
From: ch...@rebertia.com [mailto:ch...@rebertia.com] On
Behalf Of Chris Rebert
Sent: Sunday, February 22, 2009 22:12
To: Barak, Ron
Cc: python-list@python.org
Subject: Re: Is there a way to ask a class what its metaclasses are ?
On Sun, Feb 22, 2009 at 5:14 AM
En Mon, 23 Feb 2009 06:09:44 -0200, Barak, Ron ron.ba...@lsi.com
escribió:
I'm asking, because, even subclassing from object, viz.:
class CopyAndPaste(object):
def __init__(self):
pass
...
Still gives me:
$ python -u ./failover_pickle_demo09.py Traceback (most recent
Barak, Ron wrote:
When I try the following (to see the types of the classes involved):
#!/usr/bin/env python
import wx
from Debug import _line as line
class CopyAndPaste(object):
def __init__(self, *args, **kwargs):
super(CopyAndPaste, self).__init__(*args, **kwargs)
(object):
Cheers,
Chris
Thanks for the super-prompt replies.
Is there a way to ask a class what its metaclasses are ?
(e.g., how to ask wx.Frame what it's metaclass is)
I'm asking, because, even subclassing from object, viz.:
class CopyAndPaste(object):
def __init__(self):
pass
On Sun, Feb 22, 2009 at 5:14 AM, Barak, Ron ron.ba...@lsi.com wrote:
Hi Chris,
snip
Is there a way to ask a class what its metaclasses are ?
(e.g., how to ask wx.Frame what it's metaclass is)
Of course. A metaclass is the type of a class, so it's just type(wx.Frame).
Cheers,
Chris
--
Follow