[Python-checkins] CVS: python/dist/src/Lib/test test_generators.py,1.22,1.23
Tim Peters
tim_one@users.sourceforge.net
Sun, 15 Jul 2001 19:29:47 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Include Python.h,2.34,2.35 ceval.h,2.42,2.43 compile.h,2.32,2.33 pythonrun.h,2.41,2.42
- Next message: [Python-checkins] CVS: python/dist/src/Modules main.c,1.53,1.54
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv30317/python/dist/src/Lib/test
Modified Files:
test_generators.py
Log Message:
Part way to allowing "from __future__ import generators" to communicate
that info to code dynamically compiled *by* code compiled with generators
enabled. Doesn't yet work because there's still no way to tell the parser
that "yield" is OK (unlike nested_scopes, the parser has its fingers in
this too).
Replaced PyEval_GetNestedScopes by a more-general
PyEval_MergeCompilerFlags. Perhaps I should not have? I doubted it was
*intended* to be part of the public API, so just did.
Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** test_generators.py 2001/07/13 09:12:12 1.22
--- test_generators.py 2001/07/16 02:29:45 1.23
***************
*** 1,2 ****
--- 1,4 ----
+ from __future__ import generators
+
tutorial_tests = """
Let's try a simple generator:
- Previous message: [Python-checkins] CVS: python/dist/src/Include Python.h,2.34,2.35 ceval.h,2.42,2.43 compile.h,2.32,2.33 pythonrun.h,2.41,2.42
- Next message: [Python-checkins] CVS: python/dist/src/Modules main.c,1.53,1.54
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]