[Python-ideas] exit as a statement

Oleg Broytmann phd at phd.pp.ru
Wed Feb 20 19:06:01 CET 2008


On Wed, Feb 20, 2008 at 04:22:46PM +0100, BJ?rn Lindqvist wrote:
> exit could be a statement that does the same thing that
> sys.exit() does currently. Bare "exit" to terminate with return code
> 0, and "exit X" to terminate with return code X.

http://phd.pp.ru/Software/dotfiles/init.py.html

   See class _Exit.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.



More information about the Python-ideas mailing list