[SciPy-dev] Fancy indexing curiosity

Sasha ndarray at mac.com
Sun Jan 8 00:22:59 CST 2006


>>> x = array([1])
>>> m = array([1], bool)
>>> x[m] = ''
>>> x
array([12998744])
>>> x[m] = ''
>>> x
array([12998752])

It looks like x gets the address of the '' object (note the number change).
This "feature" is present in 0.9.2 release and in svn 0.9.3.1831

-- sasha




More information about the Scipy-dev mailing list