comparison Python/sysmodule.c @ 85411:187a678c6033 2.7

#18839: document that sys.exit() will not accept a non-integer numeric value as exit status.
author Ezio Melotti <ezio.melotti@gmail.com>
date Mon, 26 Aug 2013 14:00:39 +0300
parents a0f43f4481e0
children
comparison
equal deleted inserted replaced
85405:33b156e118c0 85411:187a678c6033
217 PyDoc_STRVAR(exit_doc, 217 PyDoc_STRVAR(exit_doc,
218 "exit([status])\n\ 218 "exit([status])\n\
219 \n\ 219 \n\
220 Exit the interpreter by raising SystemExit(status).\n\ 220 Exit the interpreter by raising SystemExit(status).\n\
221 If the status is omitted or None, it defaults to zero (i.e., success).\n\ 221 If the status is omitted or None, it defaults to zero (i.e., success).\n\
222 If the status is numeric, it will be used as the system exit status.\n\ 222 If the status is an integer, it will be used as the system exit status.\n\
223 If it is another kind of object, it will be printed and the system\n\ 223 If it is another kind of object, it will be printed and the system\n\
224 exit status will be one (i.e., failure)." 224 exit status will be one (i.e., failure)."
225 ); 225 );
226 226
227 #ifdef Py_USING_UNICODE 227 #ifdef Py_USING_UNICODE