homepage

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 ethan.furman
Recipients docs@python, ethan.furman
Date 2015年04月24日.00:47:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429836429.07.0.888331603842.issue24045@psf.upfronthosting.co.za>
In-reply-to
Content
Not sure if this is a bug, or just One of Those Things:
sys.exit(large_value) can wrap around if the value is too large, but this is O/S dependent.
linux (ubuntu 14.04)
 $ python
 Python 2.7.8 (default, Oct 20 2014, 15:05:29) 
 [GCC 4.9.1] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 --> import sys
 --> sys.exit(256)
 $ echo $?
 0
 $ python
 Python 2.7.8 (default, Oct 20 2014, 15:05:29) 
 [GCC 4.9.1] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 --> import sys
 --> sys.exit(257)
 $ echo $?
 1
M$ (Windows 7)
 > python
 Python 2.7... 
 --> import sys
 --> sys.exit(65535)
 > echo %errorlevel%
 65535
 > python
 Python 2.7...
 --> import sys
 --> sys.exit(100000)
 > echo %errorlevel%
 100000
Perhaps a minor doc update that talks about return codes and why they might not be exactly what was given to Python?
History
Date User Action Args
2015年04月24日 00:47:09ethan.furmansetrecipients: + ethan.furman, docs@python
2015年04月24日 00:47:09ethan.furmansetmessageid: <1429836429.07.0.888331603842.issue24045@psf.upfronthosting.co.za>
2015年04月24日 00:47:08ethan.furmanlinkissue24045 messages
2015年04月24日 00:47:07ethan.furmancreate

AltStyle によって変換されたページ (->オリジナル) /