[issue2356] sys.exitfunc should raise a Py3K warning

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


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

On Thu, Aug 21, 2008 at 11:45 AM, Benjamin Peterson
<report at bugs.python.org> wrote:
>
> 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.
>>

OK, I can live with that.

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


More information about the Python-bugs-list mailing list