Normally I could do
class B(N.ndarray):
pass
a=N.arange(10)
a.__class__ = B
BUT I get this error:
#>>> a.__class__ = B
Traceback (most recent call last):
File "<input>", line 1, in ?
TypeError: __class__ assignment: only for heap types
What is a "heap type" ? Why ? How can I do what I want ?
-Kevin
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion