[Numpy-tickets] [NumPy] #367: Startup errors in latest build variable 'as'
NumPy
numpy-tickets at scipy.net
Sat Oct 28 13:24:33 CDT 2006
#367: Startup errors in latest build variable 'as'
------------------------+---------------------------------------------------
Reporter: melson | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.core | Version: devel
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Using Python revision 52498 and numpy revision 3413 I get an error when
importing numpy:
{{{
me at legion>python setup.py build
~/Work/matplotlib-svn
Traceback (most recent call last):
File "setup.py", line 118, in <module>
import numpy
File "/home/me/Work/lib/python2.6/site-packages/numpy/__init__.py", line
36, in <module>
import core
File "/home/me/Work/lib/python2.6/site-packages/numpy/core/__init__.py",
line 10, in <module>
from numeric import *
File "/home/me/Work/lib/python2.6/site-packages/numpy/core/numeric.py",
line 293
as = a.shape
^
SyntaxError: invalid syntax
}}}
It looks like the problem is the use of 'as' as a variable name. I've
attached a patch changing it to 'a_s'.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/367>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list