[Patches] [ python-Patches-1516375 ] Remove sys.exitfunc

SourceForge.net noreply at sourceforge.net
Tue Mar 13 21:51:09 CET 2007


Patches item #1516375, was opened at 2006-07-03 10:30
Message generated for change (Comment added) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1516375&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Collin Winter (collinwinter)
Assigned to: Collin Winter (collinwinter)
Summary: Remove sys.exitfunc

Initial Comment:
As mentioned in PEP 3100, this patch removes the
interpreter's support for sys.exitfunc.

This patch is against r47222.

----------------------------------------------------------------------

>Comment By: Collin Winter (collinwinter)
Date: 2007-03-13 16:51

Message:
Logged In: YES 
user_id=1344176
Originator: YES

Me, either. I'd prefer to reimplement atexit in C and make use of
something like the Py_AtExit-related functionality in pythonrun.c.

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2007-03-13 16:47

Message:
Logged In: YES 
user_id=849994
Originator: NO

Hm, that doesn't make me too happy. Why do we need exitfunc at all if we
have atexit?

----------------------------------------------------------------------

Comment By: Collin Winter (collinwinter)
Date: 2007-03-13 16:30

Message:
Logged In: YES 
user_id=1344176
Originator: YES

Guido suggested renaming sys.exitfunc to sys._exitfunc:
http://mail.python.org/pipermail/python-3000/2007-March/006100.html

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2007-03-13 16:26

Message:
Logged In: YES 
user_id=849994
Originator: NO

How is the atexit module to work after this patch?

(It could be reimplemented in C and reuse the old exitfunc functionality.)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1516375&group_id=5470


More information about the Patches mailing list