Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
03813399
Commit
03813399
authored
Jul 16, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document doctest's generator-future hack.
parent
fb38c76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/doctest.py
Lib/doctest.py
+7
-0
No files found.
Lib/doctest.py
View file @
03813399
...
@@ -348,6 +348,13 @@ Test passed.
...
@@ -348,6 +348,13 @@ Test passed.
# 0,9,7 9-Feb-2001
# 0,9,7 9-Feb-2001
# string method conversion
# 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
from
__future__
import
generators
__version__
=
0
,
9
,
7
__version__
=
0
,
9
,
7
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment