On Mon, 17 Jul 2006, John Lawless apparently wrote: >>>> from scipy import * >>>> a = array((1.2)) >>>> a += 1.3j >>>> a > array(1.2) > Shouldn't this generate either an error or an up-cast, rather than > silently discarding the imaginary part?
As I understand it: it cannot upcast, as the '+=' operation will use only the memory initially allocated for a. Cheers, Alan Isaac ------------------------------------------------------------------------- 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