]> granicus.if.org Git - python/commit
Undo recent change that banned using import to bind a global, as per
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 1 Feb 2001 20:20:45 +0000 (20:20 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 1 Feb 2001 20:20:45 +0000 (20:20 +0000)
commit483638c9a865d504b1131c098f010590103415dd
treecc49b6b15d72f8cdf4b34e4c4f681f30c35c3521
parentfb9d7127211447337602ab1d5c8f2920302e8525
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
Include/object.h
Lib/test/output/test_grammar
Lib/test/test_grammar.py
Python/ceval.c
Python/compile.c