[Numpy-discussion] basic python questions

Alan G Isaac aisaac@american....
Wed Apr 4 22:26:30 CDT 2007


On Wed, 04 Apr 2007, Eric Firing apparently wrote: 
> Key point: properties work with new-style classes but fail 
> silently and mysteriously with classic classes. 

Or making the same point a little more generally,
descriptors only work for new-style classes:
http://users.rcn.com/python/download/Descriptor.htm

I am nevertheless uncertain why you need new-style
classes if you create a iterable class that you
want numpy to be able to convert to an array.

Cheers,
Alan Isaac




More information about the Numpy-discussion mailing list