[issue13573] csv.writer uses str() for floats instead of repr()

2016-02-28 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13573] csv.writer uses str() for floats instead of repr()

2016-02-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13573] csv.writer uses str() for floats instead of repr()

2016-02-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3ac0214b7b8 by Raymond Hettinger in branch '2.7': Issue 13573: Document that csv.writer uses str() for floats instead of repr(). https://hg.python.org/cpython/rev/d3ac0214b7b8 -- ___ Python tracker

[issue13573] csv.writer uses str() for floats instead of repr()

2016-02-27 Thread Berker Peksag
Berker Peksag added the comment: csv.writer() documentation says: "All other non-string data are stringified with str() before being written." https://docs.python.org/2.7/library/csv.html#csv.writer I guess adding a sentence to document the special case for floats wouldn't hurt. -

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: The code is fixed. Am leaving this open until I have a chance to see if anything in the docs need to be updated. -- ___ Python tracker ___

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this complete and ready to close, or does the doc need a note? -- nosy: +terry.reedy ___ Python tracker ___

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf7329190ca6 by Raymond Hettinger in branch '2.7': Issue #13573: The csv.writer now uses the repr() for floats rather than str(). http://hg.python.org/cpython/rev/bf7329190ca6 -- nosy: +python-dev ___ Py

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-11 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for fixing this. -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-10 Thread Raymond Hettinger
New submission from Raymond Hettinger : The csv.writer needs a special case for floats to print them to full precision. See http://stackoverflow.com/a/8455313/1001643 In Py2.7, the csv.writer converts floats to strings using str(). This will store 1323494016.8556759 as '1323494016.86' and un