[Python-Dev] Catch SIGINT at Python startup (original) (raw)

Brett Cannon brett at python.org
Thu Mar 11 22:35:48 CET 2010


On Thu, Mar 11, 2010 at 13:33, Benjamin Peterson <benjamin at python.org>wrote:

2010/3/11 Brett Cannon <brett at python.org>: > > > On Wed, Mar 10, 2010 at 17:21, Victor Stinner <_ _victor.stinner at haypocalc.com> > wrote: >> >> Hi, >> >> Some news about my patch. >> >> Le lundi 08 mars 2010 19:21:20, Maciej Fijalkowski a écrit : >> > On Mon, Mar 8, 2010 at 10:47 AM, Guido van Rossum <guido at python.org> >> > wrote: >> > > Actually it sounds like there's some overly general except clause >> > > somewhere that should be adjusted to catch just "Exception" instead of >> > > "*". >> > >> > There is at least one that prints "import 'site' failed" and continues >> > to run your program. >> >> I commited to patch and broke all buildbots \o/ There were errors in >> testsysconfig and testsubprocess related to issues #7774 and #7880 >> (problems >> with sys.executable and modified sys.argv[0]). >> >> I consider that it's a good point to detect the errors earlier, but it >> breaks >> code based on the errors :-) I will no backport the fix to 2.6 (or at >> least, >> not the fix about importing the site module) >> >> Should I backport the fix to 3.1? (The backport to py3k is not done yet) >> > > Once you are happy with the stability then please port it to 3.1. > -Brett

But after 3.1.2 please!

Sorry, I meant py3k (aka 3.2) and not 3.1. Since this is a behavior change I don't think it should be in 2.6/3.1.

-Brett

-- Regards, Benjamin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20100311/8a56cc8e/attachment-0001.html>



More information about the Python-Dev mailing list