summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-16 18:39:58 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-16 18:39:58 (GMT)
commit03813399cc19b09cddd031b3c2924038423098f0 (patch)
treed4393e19aa6cce2b985f450a601c85c5f935fbec
parentfb38c76e0f15e15d08e4635a24719cc120809191 (diff)
downloadcpython-03813399cc19b09cddd031b3c2924038423098f0.zip
cpython-03813399cc19b09cddd031b3c2924038423098f0.tar.gz
cpython-03813399cc19b09cddd031b3c2924038423098f0.tar.bz2
Document doctest's generator-future hack.
-rw-r--r--Lib/doctest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index fc826df..3062f63 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -348,6 +348,13 @@ Test passed.
# 0,9,7 9-Feb-2001
# string method conversion
+# XXX Until generators are part of the language, examples in doctest'ed
+# modules will inherit doctest's __future__ settings (see PEP 236 for
+# more on that). In the absence of a better working idea, the std
+# test suite needs generators, while the set of doctest'ed modules that
+# don't use "yield" in a generator context may well be empty. So
+# enable generators here. This can go away when generators are no
+# longer optional.
from __future__ import generators
__version__ = 0, 9, 7