summaryrefslogtreecommitdiffstats
path: root/Doc/library/csv.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-21 10:52:38 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-21 10:52:38 (GMT)
commitcf3fb259329eedfa9d2c802b2ea5ced287c21e78 (patch)
treebd09350c4ac4d66064526573c19ebbcd27f77279 /Doc/library/csv.rst
parentbb75e4e5d243a32cf31b91543b06b829c63e2c70 (diff)
downloadcpython-cf3fb259329eedfa9d2c802b2ea5ced287c21e78.zip
cpython-cf3fb259329eedfa9d2c802b2ea5ced287c21e78.tar.gz
cpython-cf3fb259329eedfa9d2c802b2ea5ced287c21e78.tar.bz2
Add :term: for generators.
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r--Doc/library/csv.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 34867f7..153dc89 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -442,9 +442,9 @@ it is 8-bit-clean save for some problems with ASCII NUL characters. So you can
write functions or classes that handle the encoding and decoding for you as long
as you avoid encodings like UTF-16 that use NULs. UTF-8 is recommended.
-:func:`unicode_csv_reader` below is a generator that wraps :class:`csv.reader`
+:func:`unicode_csv_reader` below is a :term:`generator` that wraps :class:`csv.reader`
to handle Unicode CSV data (a list of Unicode strings). :func:`utf_8_encoder`
-is a generator that encodes the Unicode strings as UTF-8, one string (or row) at
+is a :term:`generator` that encodes the Unicode strings as UTF-8, one string (or row) at
a time. The encoded strings are parsed by the CSV reader, and
:func:`unicode_csv_reader` decodes the UTF-8-encoded cells back into Unicode::