[Python-bugs-list] [ python-Bugs-601775 ] some int results that should be bool
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 29 Aug 2002 02:53:50 -0700
Bugs item #601775, was opened at 2002-08-29 12:53
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=601775&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Christos Georgiou (tzot)
Assigned to: Nobody/Anonymous (nobody)
Summary: some int results that should be bool
Initial Comment:
Posting this as a SF bug since the relevant patch would
be very small. (I can post it as a patch if requested,
though).
1.
cStringIO.c, line 136, IO_isatty returns PyInt_FromLong
(0), while this should be PyBool_FromLong(0).
StringIO.isatty returns False --which is <type bool>--
and so should cStringIO.
Note: documentation states that file-like objects not
being real files should not define this method. Perhaps
it should be removed from cStringIO and StringIO.
2.
posixmodule.c, line 759, posix_access returns
PyInt_FromLong. It should be PyBool_FromLong.
3. (rather indifferent, this one)
svmodule.c, line 393, sv_IsVideoDisplayed should return
a bool also.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=601775&group_id=5470