[Python-ideas] relaxing keyword usage restrictions

Chris Rebert pyideas at rebertia.com
Fri Sep 9 10:21:32 CEST 2011


On Fri, Sep 9, 2011 at 1:18 AM, H Krishnan <hetchkay at gmail.com> wrote:
<snip>
> If I do:
> __builtins__.exit = os._exit = os.kill = sys.exit = lambda *args: False
> is there a way to programmatically exit?

Yes: raise SystemExit

Cheers,
Chris



More information about the Python-ideas mailing list