[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [Python-bugs-list] [ python-Bugs-601775 ] some int results that should be bool
From:       noreply () sourceforge ! net (noreply () sourceforge ! net)
Date:       2002-08-30 10:07:10
Message-ID: E17kigI-0000fW-00 () usw-sf-web5 ! sourceforge ! net
[Download RAW message or body]

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: 3
Submitted By: Christos Georgiou (tzot)
>Assigned to: Jeremy Hylton (jhylton)
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic