Sudoku
Arnaud Delobelle
arnodel at gmail.com
Sun Mar 31 18:59:38 EDT 2013
On 31 March 2013 23:34, Dave Angel <davea at davea.name> 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
More information about the Python-list
mailing list