summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-06-25 19:46:25 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-06-25 19:46:25 (GMT)
commit3e7b1a04a0fe02098ffc03b5c0fc6546a5f7d2d1 (patch)
tree1b79b6897c94e6914beb1f86e59c40a2ec9a056d /Doc
parentae1f65ff825f72f3972e503036966e206f5b39fa (diff)
downloadcpython-3e7b1a04a0fe02098ffc03b5c0fc6546a5f7d2d1.zip
cpython-3e7b1a04a0fe02098ffc03b5c0fc6546a5f7d2d1.tar.gz
cpython-3e7b1a04a0fe02098ffc03b5c0fc6546a5f7d2d1.tar.bz2
Teach the types module about generators. Thanks to James Althoff on the
Iterators list for bringing it up!
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libtypes.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libtypes.tex b/Doc/lib/libtypes.tex
index 8ade4a6..35495eb 100644
--- a/Doc/lib/libtypes.tex
+++ b/Doc/lib/libtypes.tex
@@ -83,6 +83,12 @@ The type of user-defined functions and lambdas.
An alternate name for \code{FunctionType}.
\end{datadesc}
+\begin{datadesc}{GeneratorType}
+The type of generator-iterator objects, produced by calling a
+generator function.
+\versionadded{2.2}
+\end{datadesc}
+
\begin{datadesc}{CodeType}
The type for code objects such as returned by
\function{compile()}\bifuncindex{compile}.