P
Pierre Rouleau
Hi all,
Is there any reason that under Python you cannot instantiate the object
class and create any attributes like you would be able for a normal class?
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
.... pass
........ pass
....2
I also tried with Python 2.4.3 with the same results.
Being able to do it would seem a natural way of declaring namespaces.
Is there any reason that under Python you cannot instantiate the object
class and create any attributes like you would be able for a normal class?
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
.... pass
........ pass
....2
I also tried with Python 2.4.3 with the same results.
Being able to do it would seem a natural way of declaring namespaces.