[Scipy-tickets] [SciPy] #1253: Wrong argument parsing and value building scipy/scipy/odr/__odrpack.c

SciPy Trac scipy-tickets@scipy....
Tue Aug 3 04:25:59 CDT 2010


#1253: Wrong argument parsing and value building scipy/scipy/odr/__odrpack.c
--------------------+-------------------------------------------------------
 Reporter:  gav     |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  0.9.0   
Component:  Other   |     Version:  devel   
 Keywords:          |  
--------------------+-------------------------------------------------------
 Replace 'l' by 'i' in the format strings of Py_BuildValue,
 PyArg_ParseTuple, and PyArg_ParseTupleAndKeywords, since the variables to
 be converted are of type 'int' instead of 'long'.

 The 'l' format character leads at least to a random reason for halting  as
 displayed by scipy.odr.Output.pprint() on a 64 bit Linux system running
 Python-2.6.

 The other results displayed by scipy.odr.Output.pprint() look correct.

 Attached are a patch and a small demo script.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1253>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list