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 marco.buttu
Recipients docs@python, marco.buttu
Date 2013-08-26.10:51:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377514292.79.0.0321965724475.issue18839@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.3::

    >>> import sys
    >>> print(sys.exit.__doc__)
    exit([status])

    Exit the interpreter by raising SystemExit(status).
    If the status is omitted or None, it defaults to zero (i.e., success).
    If the status is numeric, it will be used as the system exit status.
    If it is another kind of object, it will be printed and the system
    exit status will be one (i.e., failure).

The sentence "If the status is numeric, it will be used as the system exit status."
is wrong::

    >>> sys.exit(3.33)
    3.33
    $ echo $?
    1


It should be "If the status is an *integer*, it will be used as the system exit status.",
as specified in the SystemExit `doc`.

.. doc: http://docs.python.org/3/library/exceptions.html#SystemExit
History
Date User Action Args
2013-08-26 10:51:32marco.buttusetrecipients: + marco.buttu, docs@python
2013-08-26 10:51:32marco.buttusetmessageid: <1377514292.79.0.0321965724475.issue18839@psf.upfronthosting.co.za>
2013-08-26 10:51:32marco.buttulinkissue18839 messages
2013-08-26 10:51:32marco.buttucreate