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
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 2to3 fixer
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 cannot add the
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 import you are going
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]
http://bugs.python.org/issue2356
___
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
Brett Cannon [EMAIL PROTECTED] added the comment:
A fixer to use the atexit module is needed.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2356
__
___
Python-bugs-list mailing
Changes by Brett Cannon [EMAIL PROTECTED]:
--
priority: immediate - urgent
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2356
__
___
Python-bugs-list mailing list