[Python-checkins] CVS: python/dist/src/Lib doctest.py,1.15,1.16
Tim Peters
tim_one@users.sourceforge.net
Mon, 16 Jul 2001 11:40:00 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1726/python/dist/src/Lib
Modified Files:
doctest.py
Log Message:
Document doctest's generator-future hack.
Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** doctest.py 2001/07/16 05:37:24 1.15
--- doctest.py 2001/07/16 18:39:58 1.16
***************
*** 349,352 ****
--- 349,359 ----
# 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