[issue2356] sys.exitfunc should raise a Py3K warning
report at bugs.python.org
Thu Aug 21 20:45:17 CEST 2008
Benjamin Peterson <musiccomposition at gmail.com> added the comment:
On Thu, Aug 21, 2008 at 1:21 PM, Brett Cannon <report at bugs.python.org> wrote:
> So for every sys import you are going to add an "import atexit"? That
> doesn't seem reasonable. And if the call is in an expression context
> you definitely cannot add the import.
You're right; it's not going to be perfect, but 2to3 could warn when
it couldn't insert the import statement.
> Python tracker <report at bugs.python.org>
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list