]> granicus.if.org Git - python/commitdiff
Issue 13573: Document that csv.writer uses str() for floats instead of repr().
authorRaymond Hettinger <python@rcn.com>
Sun, 28 Feb 2016 07:34:54 +0000 (23:34 -0800)
committerRaymond Hettinger <python@rcn.com>
Sun, 28 Feb 2016 07:34:54 +0000 (23:34 -0800)
Doc/library/csv.rst

index d3d505e42192c98971dc85406aa2290535d02625..dbef60f0a6b69701719991a65366798b39b05545 100644 (file)
@@ -112,6 +112,7 @@ The :mod:`csv` module defines the following functions:
    value :const:`None` is written as the empty string.  While this isn't a
    reversible transformation, it makes it easier to dump SQL NULL data values to
    CSV files without preprocessing the data returned from a ``cursor.fetch*`` call.
+   Floats are stringified with :func:`repr` before being written.
    All other non-string data are stringified with :func:`str` before being written.
 
    A short usage example::