comparison Python/sysmodule.c @ 85412:694e50a79638 3.3

#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 dca92e8a011a
children 780a0199c7f1 6cb3ae431bef
comparison
equal deleted inserted replaced
85409:bf2214d506d3 85412:694e50a79638
238 PyDoc_STRVAR(exit_doc, 238 PyDoc_STRVAR(exit_doc,
239 "exit([status])\n\ 239 "exit([status])\n\
240 \n\ 240 \n\
241 Exit the interpreter by raising SystemExit(status).\n\ 241 Exit the interpreter by raising SystemExit(status).\n\
242 If the status is omitted or None, it defaults to zero (i.e., success).\n\ 242 If the status is omitted or None, it defaults to zero (i.e., success).\n\
243 If the status is numeric, it will be used as the system exit status.\n\ 243 If the status is an integer, it will be used as the system exit status.\n\
244 If it is another kind of object, it will be printed and the system\n\ 244 If it is another kind of object, it will be printed and the system\n\
245 exit status will be one (i.e., failure)." 245 exit status will be one (i.e., failure)."
246 ); 246 );
247 247
248 248