M
Marcob
Let's see these simple classes:
class base_foo()
pass
class foo(base_foo):
a=1
b={}
c="zz"
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?
Thanks for your time.
Ciao.
Marco.
class base_foo()
pass
class foo(base_foo):
a=1
b={}
c="zz"
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?
Thanks for your time.
Ciao.
Marco.