[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 ___

[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 ___

[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 Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Is this complete and ready to close, or does the doc need a note? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13573

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

2011-12-16 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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 rep...@bugs.python.org

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

2011-12-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: +1 for fixing this. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13573 ___

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

2011-12-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-12-10 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: 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