[Numpy-discussion] formatting issues, locale and co

David Cournapeau cournape at gmail.com
Tue Dec 30 23:06:59 EST 2008


On Wed, Dec 31, 2008 at 3:41 AM, Lenard Lindstrom <len-l at telus.net> wrote:
> David Cournapeau wrote:
>> The thing is since I don't understand what happens in the print '%f'
>> case, I don't know how to clean it up, if it is at all possible. But in
>> anyway, it means that with my changes, we are not worse than python
>> itself, and I think we are better than before,
>>
>>
> Just a quick look in SVN, trunk/Objects/stringobject.c, shows that the
> call path for a "%f" format is string_mod -> PyString_Format ->
> formatfloat -> PyOS_ascii_formatd.

Thanks, I did not think about looking into stringobject. I now have to
understand why it does print differently, as going through
format_float should avoid the inconsistencies

cheers,

David
> --
> Lenard Lindstrom
> <len-l at telus.net>
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list