Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Indexing crash #2713

Closed
Tillsten opened this Issue · 7 comments

3 participants

@Tillsten

Following snippet:

import numpy as np
a = np.array([[0.]])
a[np.array([[True]]).squeeze()]

is crashing Python for me. System: win32, numpy 1.6.2 mkl-build from Christoph.

@Tillsten

Can anybody just check if it is not only me?

@seberg
Owner

@Tillsten no its not only you. This is a known bug which probably needs to be adressed by a special case early on (so that it also has the expected behavior). Its the same as gh-579 (and maybe others).

@Tillsten

@seberg: Thanks, sorry i did not found the issues.

@seberg
Owner

The segfault is fixed with gh-3225 (and also its advanced indexing counter part). But it actually interprets the True/False as 1/0 for the simple index. That might be better then the segfault, but is is not quite right, so I will leave it open for now.

@charris
Owner

@seberg Can this be closed?

@seberg
Owner
@seberg
Owner

This is fixed with gh-2701.

@seberg seberg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.