[zope2-tracker] [Bug 833505] Re: in Script (Python) raised KeyboardInterrupt stops process
Hanno Schlichting
hanno at hannosch.eu
Sat Aug 27 11:51:16 EDT 2011
How do you produce a KeyboardInterrupt inside a Python script?
Can someone do this who doesn't run the process on the console and sends
Crtl-C on the console? For the console use-case I'd say no code should
stop a KeyboardInterrupt and always let that stop the process.
If you put a "raise KeyboardInterrupt" on purpose inside your Python
script, that should probably also work. Python scripts only protect you
against accidental mistakes - you can always kill a process in some way
if you really want to - like writing infinite loops or consuming all
memory.
** Changed in: zope2
Importance: Undecided => Low
** Changed in: zope2
Status: New => Opinion
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/833505
Title:
in Script (Python) raised KeyboardInterrupt stops process
To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/833505/+subscriptions
More information about the zope2-tracker
mailing list