[NumPy-Tickets] [NumPy] #1515: Python string exceptions no more allowed in Python >= 2.6
NumPy Trac
numpy-tickets@scipy....
Sat Jun 19 05:35:33 CDT 2010
#1515: Python string exceptions no more allowed in Python >= 2.6
-------------------------+--------------------------------------------------
Reporter: sandro.tosi | Owner: pearu
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.f2py | Version: 1.4.0
Keywords: |
-------------------------+--------------------------------------------------
Hello,
I'm forwarding here the Debian bugs http://bugs.debian.org/585309 .
We recently run an archive check for string exceptions, and numpy resulted
to contain one:
numpy/f2py/capi_maps.py: except: raise 'sign2map: expected
complex number `(r,i)\' but got `%s\' as initial value of %s.'%(init,`a`)
This code won't work with python version >= 2.6, so it would be really
nice to have this fixed soon (even because the solution is very simple,
wrap the string in Exception()).
Thanks in advance,
Sandro
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1515>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list