[issue2356] sys.exitfunc should raise a Py3K warning

2008-08-21 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Aug 21, 2008 at 11:45 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > On Thu, Aug 21, 2008 at 1:21 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: >> >> So for every sys impor

[issue2356] sys.exitfunc should raise a Py3K warning

2008-08-21 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Thu, Aug 21, 2008 at 1:21 PM, Brett Cannon <[EMAIL PROTECTED]> 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 canno

[issue2356] sys.exitfunc should raise a Py3K warning

2008-08-21 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Aug 21, 2008 at 6:43 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > This is going to be very hard to implement without module descriptors. > It might be better to make a

[issue2356] sys.exitfunc should raise a Py3K warning

2008-08-21 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> 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. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL

[issue2356] sys.exitfunc should raise a Py3K warning

2008-08-20 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Actually, a fixer probably won't work since that would require the atexit module to be imported. ___ Python tracker <[EMAIL PROTECTED]> _

[issue2356] sys.exitfunc should raise a Py3K warning

2008-03-17 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- priority: immediate -> urgent __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue2356] sys.exitfunc should raise a Py3K warning

2008-03-17 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: A fixer to use the atexit module is needed. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list ma

[issue2356] sys.exitfunc should raise a Py3K warning

2008-03-17 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: sys.exitfunc should raise a Py3K warning when set/used. -- components: Interpreter Core keywords: 26backport messages: 63731 nosy: brett.cannon priority: immediate severity: normal status: open title: sys.exitfunc should raise a Py3K