[Python-ideas] relaxing keyword usage restrictions
hetchkay at gmail.com
Fri Sep 9 10:18:03 CEST 2011
As someone pointed out, I think PEP 342 (coroutines via enhanced generators)
anyway kills this proposal since it is currently possible to do something
val = yield
where yield is a keyword.
The fact that another language allows you to shoot yourself in the foot
> isn't a good argument that Python should allow that too.
If I do:
__builtins__.exit = os._exit = os.kill = sys.exit = lambda *args: False
is there a way to programmatically exit?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas