[NumPy-Tickets] [NumPy] #2001: Seg fault when using r_ incorrectly
NumPy Trac
numpy-tickets@scipy....
Thu Apr 12 10:11:40 CDT 2012
#2001: Seg fault when using r_ incorrectly
----------------------+-----------------------------------------------------
Reporter: claumann | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
----------------------+-----------------------------------------------------
Comment(by claumann):
Checked on Lion with build from yesterday (9bb1d1e). Looks like it works
now.
{{{
$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.1-1 (64-bit)
Python 2.7.2 |EPD 7.1-1 (64-bit)| (default, Jul 3 2011, 15:56:02)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "packages", "demo" or "enthought" for more information.
>>> import numpy as np
/Users/claumann/Documents/numpy/numpy/random/__init__.py:91:
RuntimeWarning: numpy.ndarray size changed, may indicate binary
incompatibility
from mtrand import *
>>> np.__version__
'1.7.0.dev-9bb1d1e'
>>> dat1 = np.zeros(5, dtype=[('a', '<f8')])
>>> dat2 = np.zeros(5, dtype=[('a', '<f8')])
>>> np.r_[dat1,dat2]
array([(0.0,), (0.0,), (0.0,), (0.0,), (0.0,), (0.0,), (0.0,), (0.0,),
(0.0,), (0.0,)],
dtype=[('a', '<f8')])
>>> np.r_[[dat1,dat2]]
array([[(0.0,), (0.0,), (0.0,), (0.0,), (0.0,)],
[(0.0,), (0.0,), (0.0,), (0.0,), (0.0,)]],
dtype=[('a', '<f8')])
>>>
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2001#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list