Matthew Brett wrote: >Hi, > >Would it be easy and / or sensible for - say - int32.itemsize to >return the same as dtype(int32).itemsize, rather than the <attribute >'itemsize' of 'numpy.generic' objects> that it returns at the moment? > > > You can do int32(0).itemsize.
Getting the itemsize attribute to "do the right thing" when called from the type-object (instead of an instance of the type-object) is beyond my current skill. It might be possible, but I haven't spent the time to figure it out. -Travis _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
