Re: how to add class attributes in __new__

2007-02-01 Thread aspineux
On 1 fév, 17:50, "jeremito" <[EMAIL PROTECTED]> wrote: > I am subclassing the array class and have __new__ to initialize and > create my class. In that class I create not only do I create an array > object, but I also create some other data in __new__ I want to have > access to outside of __new__.

Re: how to add class attributes in __new__

2007-02-01 Thread Bruno Desthuilliers
jeremito a écrit : > I am subclassing the array class and have __new__ to initialize and > create my class. In that class I create not only do I create an array > object, but I also create some other data in __new__ I want to have > access to outside of __new__. I tried > > self.mydata = mydata

how to add class attributes in __new__

2007-02-01 Thread jeremito
I am subclassing the array class and have __new__ to initialize and create my class. In that class I create not only do I create an array object, but I also create some other data in __new__ I want to have access to outside of __new__. I tried self.mydata = mydata but that didn't work. Can som