On 31 March 2013 23:34, Dave Angel <[email protected]> wrote:
>[...] With my Python
> 2.7.2, exit(something) with something being a string prints the string and
> then exits. Nowhere have I seen that documented, and I thought it either
> took an int or nothing.
It is documented, just not exactly where you'd expect it (exit is a
constant, not a function):
http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
As for the behaviour when you pass a string, it's documented here:
http://docs.python.org/2/library/exceptions.html#exceptions.SystemExit
--
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list