[Python-checkins] CVS: python/dist/src/Lib/test test_grammar.py,1.27,1.28
Jeremy Hylton
jhylton@users.sourceforge.net
Thu, 01 Feb 2001 12:20:47 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv14180/Lib/test
Modified Files:
test_grammar.py
Log Message:
Undo recent change that banned using import to bind a global, as per
discussion on python-dev. 'from mod import *' is still banned except
at the module level.
Fix value for special NOOPT entry in symtable. Initialze to 0 instead
of None, so that later uses of PyInt_AS_LONG() are valid. (Bug
reported by Donn Cave.)
replace local REPR macros with PyObject_REPR in object.h
Index: test_grammar.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_grammar.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** test_grammar.py 2001/01/30 01:25:56 1.27
--- test_grammar.py 2001/02/01 20:20:45 1.28
***************
*** 369,373 ****
from sys import path, argv
check_syntax("def f(): from sys import *")
- check_syntax("def f(): global time; import ")
print 'global_stmt' # 'global' NAME (',' NAME)*
--- 369,372 ----