[Numpy-tickets] [NumPy] #884: fromfile and fromstring locale dependency

NumPy numpy-tickets@scipy....
Tue Dec 30 15:16:08 CST 2008


#884: fromfile and fromstring locale dependency
-----------------------+----------------------------------------------------
 Reporter:  pv         |        Owner:  cdavid
     Type:  defect     |       Status:  new   
 Priority:  normal     |    Milestone:  1.3.0 
Component:  numpy.lib  |      Version:  none  
 Severity:  normal     |   Resolution:        
 Keywords:             |  
-----------------------+----------------------------------------------------
Comment (by pv):

 I believe the issues mentioned in this ticket are now fixed in r6278, and
 r6279, r6280 in the `fix_float_format` branch. Plus, more comprehensive
 tests for fromfile/fromstring in r6277.

 I ended up working around the issue in PyOS_ascii_strtod (perhaps the
 workaround should be disabled for the "C" locale; TODO for later).

 Quick benchmark shows a 10% better speed for fromfile, and about 2% worse
 for fromstring, both under the "C" locale. So, no significant changes for
 the worse.

 #883 should probably also be remembered for 1.3 (the bugs there are in a
 different part of the code, not in the `*_scan` or `*_fromstr` functions).

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/884#comment:6>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list