]> granicus.if.org Git - python/commit
Use the new PyErr_WarnExplicit() API to issue better warnings for
authorGuido van Rossum <guido@python.org>
Wed, 28 Feb 2001 21:55:38 +0000 (21:55 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 28 Feb 2001 21:55:38 +0000 (21:55 +0000)
commit0bba7f83f2e04652e074acd918c2966c42f77af1
tree0d16b0b31a92052b3327e312a00113b799fdca5d
parent9da7f3b4f44eb4e2c9782f9f73da5e46dc1b9f96
Use the new PyErr_WarnExplicit() API to issue better warnings for
global after assign / use.

Note: I'm not updating the PyErr_Warn() call for import * / exec
combined with a function, because I can't trigger it with an example.
Jeremy, just follow the example of the call to PyErr_WarnExplicit()
that I *did* include.
Python/compile.c