Find class attributes creation order
michele.simionato at gmail.com
Mon Jun 23 12:53:38 EDT 2008
On Jun 23, 5:53 pm, Marcob <marcob... at gmail.com> wrote:
> Let's see these simple classes:
> class base_foo()
> class foo(base_foo):
> I would like to find class foo attributes creation order.
> Using __metaclass__ is not of help because special method __new__
> receive attrs as a dictionary and so the order isn't preserved. Any
> other idea?
You need to wait for Python 3.0 metaclasses:
you should know already (ciao Marco! ;-)
More information about the Python-list