[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


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: