[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith added the comment: I'm -1 on this, too. Closing. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: Done in r78166 (trunk), r78167 (py3k). -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith added the comment: Unless and until we implement 'd' exponents, we should add a test to make sure they don't work. That they ever worked on any platform was a surprise. -- Eric. -- title: reading scientific notation using d instead of e on max osx -> reading scientific not

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: > I would rather not do a search and replace every time before reading in > the > data. There's no need to do a search and replace *before* reading the data: read the data first, then have Python do the replace for you before passing each string to float:

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, I'm -1 on this: outside Fortran, using 'E' for the exponent marker seems to be near universal. It just doesn't seem worth adding the extra complication to the Python code, or going through all the various places that expect an 'e' (float literals in

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread ricitron
ricitron added the comment: I am running python 2.5.4. While it works on linux and windows, it does not work on mac. Fortran doubles are output using the D notation. If I am importing a large amount of data, I would rather not do a search and replace every time before reading in the data.

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson added the comment: Out of curiosity, where are your data coming from? For Python, this seems like a needless complication. It should be simple enough to replace the 'D's with 'E's prior to passing the strings to float. I notice that some varieties of Lisp and Scheme use 's', '

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith added the comment: That was supposed to say: The 'D' exponent will not work on any platform starting with those versions. -- ___ Python tracker ___ __

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith added the comment: str->float conversions have been reworked in 2.7 and 3.1. The 'D' exponent will not on any platform starting with those versions. So, this would be a non-platform specific feature request. -- assignee: ronaldoussoren -> components: +Interpreter Core -Mac

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread ricitron
New submission from ricitron : I would like to be able to read in data that uses scientific notation with a D instead of an E. This is possible on windows and other builds, but not on Mac OSX. example: float('1.23D+04') Traceback (most recent call last): File "", line 1, in ValueError: inv