This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients belopolsky, eryksun, ethan.furman, skrah
Date 2015-04-24.17:09:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429895373.85.0.715963046398.issue24052@psf.upfronthosting.co.za>
In-reply-to
Content
> I believe a better behavior for sys.exit() would be to truncate 
> the code values to 8-bit range so that non-zero status would 
> always be returned as non-zero, but possibly different value.

OK, so long as it's just for POSIX systems. Windows ExitProcess, ExitThread, TerminateProcess, and TerminateThread all use an unsigned int value for the exit code, and it's common to use a [Win32 error code][1] in the 16-bit range 0x0000 to 0xFFFF.

[1]: https://msdn.microsoft.com/en-us/library/cc231199
History
Date User Action Args
2015-04-24 17:09:33eryksunsetrecipients: + eryksun, belopolsky, skrah, ethan.furman
2015-04-24 17:09:33eryksunsetmessageid: <1429895373.85.0.715963046398.issue24052@psf.upfronthosting.co.za>
2015-04-24 17:09:33eryksunlinkissue24052 messages
2015-04-24 17:09:33eryksuncreate