You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a bonus, the reference count of the string ‘b’ decreases, even though it still remains in the array x. So the interpreter will crash if you repeat the above:
Note that this bug does not seem to occur when x is dimension 1, or when basic selection is used. The offset of the object in the dtype does not seem to matter.
The text was updated successfully, but these errors were encountered:
Original ticket http://projects.scipy.org/numpy/ticket/1299 on 2009-11-19 by trac user crobin, assigned to unknown.
I think there is a bug with
__setitem__
when using advanced selection on a structured array with objects when dimension is at least 2.This gives:
The very last
'b'
should be an'a'
.As a bonus, the reference count of the string
‘b’
decreases, even though it still remains in the arrayx
. So the interpreter will crash if you repeat the above:...leads to:
Note that this bug does not seem to occur when
x
is dimension 1, or when basic selection is used. The offset of the object in the dtype does not seem to matter.The text was updated successfully, but these errors were encountered: