[Numpy-discussion] planning for numpy 1.3.0 release

Pauli Virtanen pav at iki.fi
Tue Sep 9 05:06:14 EDT 2008


Tue, 09 Sep 2008 09:49:32 +0200, Stéfan van der Walt wrote:
> 2008/9/9 Christopher Barker <Chris.Barker at noaa.gov>:
>> Jarrod Millman wrote:
>>>  So if there is something that you would like to work on during this
>>> release cycle, please bring it up now.
>>
>> Anyone want to help with improvements to fromfile() for text files?
> 
> This is low hanging fruit for anyone with some experience in C.  We can
> definitely get it done for 1.3.  Chris, would you file a ticket and add
> the detail from your mailing list posts, if that hasn't already been
> done?

I'd like to address the C locale dependency of fromfile and fromstring. 
(setlocale() affects fromfile, but does not affect fromstring; locale can 
make eg. "," become the decimal separator instead of ".").

I'd assume we want to follow Fortran and Python here, and *not* format or 
parse floating point numbers according the C locale. Use of fscanf might 
need to be reconsidered, or the calls need to be wrapped in setlocale
("C"); setlocale(old_locale); pairs...

Locale-related tickets: #884, #902, #695

Running numpy tests under different locales and calling
setlocale(LC_ALL, "") may reveal some additional points to address.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list