summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-30 06:09:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-30 06:09:54 (GMT)
commit7901b48a1f89b9bfa9d111ae3725400b466a9baa (patch)
tree4cebbcaeeb7b1f29f5440c7762f55bf3a57c0c54 /Doc
parenta695f83f0de060a77352174be8a5c6f6500ab98a (diff)
downloadcpython-7901b48a1f89b9bfa9d111ae3725400b466a9baa.zip
cpython-7901b48a1f89b9bfa9d111ae3725400b466a9baa.tar.gz
cpython-7901b48a1f89b9bfa9d111ae3725400b466a9baa.tar.bz2
Issue #23171: csv.Writer.writerow() now supports arbitrary iterables.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/csv.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index e7516b6..325a421 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -419,7 +419,7 @@ Writer Objects
:class:`Writer` objects (:class:`DictWriter` instances and objects returned by
the :func:`writer` function) have the following public methods. A *row* must be
-a sequence of strings or numbers for :class:`Writer` objects and a dictionary
+an iterable of strings or numbers for :class:`Writer` objects and a dictionary
mapping fieldnames to strings or numbers (by passing them through :func:`str`
first) for :class:`DictWriter` objects. Note that complex numbers are written
out surrounded by parens. This may cause some problems for other programs which
@@ -431,6 +431,8 @@ read CSV files (assuming they support complex numbers at all).
Write the *row* parameter to the writer's file object, formatted according to
the current dialect.
+ .. versionchanged:: 3.5
+ Added support of arbitrary iterables.
.. method:: csvwriter.writerows(rows)