[issue13853] SystemExit/sys.exit() doesn't print boolean argument

2012-01-25 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Thanks for going to the trouble to report this, but this is working as intended 
since bool is a subclass of int.

--
nosy: +brett.cannon
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13853
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13853] SystemExit/sys.exit() doesn't print boolean argument

2012-01-24 Thread Jon Brandvein

New submission from Jon Brandvein jon.brandv...@gmail.com:

Raising SystemExit manually, or calling sys.exit, with an argument of True or 
False results in no output to the screen. According to 
Doc/library/exceptions.rst and Doc/library/sys.rst, any object that is not an 
integer or None should be printed to stderr.

Also, I'm not sure whether this is a bug, but raise SystemExit(None) differs 
from sys.exit(None), in that the former produces an exception with an args 
tuple of (None,), and the latter produces one with an empty args tuple.

--
components: Interpreter Core
messages: 151920
nosy: brandj
priority: normal
severity: normal
status: open
title: SystemExit/sys.exit() doesn't print boolean argument
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13853
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com