[Numpy-discussion] planning for numpy 1.3.0 release
Tue Sep 9 04:06:14 CDT 2008
Tue, 09 Sep 2008 09:49:32 +0200, Stéfan van der Walt wrote:
> 2008/9/9 Christopher Barker <Chris.Barker@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
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.
More information about the Numpy-discussion