Class definition attribute order

Andrew Lentvorski bsder at allcaps.org
Fri Aug 1 19:23:02 EDT 2008


How do I determine the order of definition of class attributes?

For example, if I have a class

class Test(object):
     y = 11
     x = 22

How do I tell that y was defined before x?

Thanks,
-a



More information about the Python-list mailing list