[issue2356] sys.exitfunc should raise a Py3K warning

Brett Cannon report at bugs.python.org
Thu Aug 21 20:21:10 CEST 2008


Brett Cannon <brett at python.org> added the comment:

On Thu, Aug 21, 2008 at 6:43 AM, Benjamin Peterson
<report at bugs.python.org> wrote:
>
> Benjamin Peterson <musiccomposition at gmail.com> added the comment:
>
> This is going to be very hard to implement without module descriptors.
> It might be better to make a 2to3 fixer which inserts an import too.
>

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.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2356>
_______________________________________


More information about the Python-bugs-list mailing list