[NumPy-Tickets] [NumPy] #2019: concatenate() segfaults on dict_values (Python 3)
NumPy Trac
numpy-tickets@scipy....
Wed Apr 11 19:39:42 CDT 2012
#2019: concatenate() segfaults on dict_values (Python 3)
------------------------+---------------------------------------------------
Reporter: takluyver | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.1
Keywords: python3 |
------------------------+---------------------------------------------------
Comment(by charris):
Replying to [comment:2 charris]:
> With python 3.2.1 I get an error:
>
>
> {{{
> >>> d
> {1: array([ 1., 1., 1., 1., 1.]), 2: array([ 0., 0., 0., 0.,
0.])}
> >>> np.concatenate(d.values())
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: 'dict_values' object does not support indexing
>
> }}}
>
> So this looks like it might be a Python bug as far as the segfault goes.
I don't know that we should support the new dict_values type.
Oh, and this is with current devel. Could you test that to see if it is
still a problem?
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2019#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list