[Python-bugs-list] [ python-Bugs-579991 ] LibRef 2.2.1, replace zero with False

noreply@sourceforge.net noreply@sourceforge.net
Wed, 07 Aug 2002 08:41:58 -0700


Bugs item #579991, was opened at 2002-07-11 03:52
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=579991&group_id=5470

Category: Documentation
Group: Python 2.3
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Yitz Gale (yitzg)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: LibRef 2.2.1, replace zero with False

Initial Comment:
In Library Refernce, 2.2.1 Truth Value Testing:

In current text "...when that method returns zero." and
the associated footnote, the word "zero" should be
replaced with "a false value".


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-08-07 11:41

Message:
Logged In: YES 
user_id=3066

Checked in as Doc/lib/libstdtypes.tex revisions 1.104,
1.80.6.11.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-08-06 17:51

Message:
Logged In: YES 
user_id=3066

I'll add a clarification that returning an integer includes
returns a boolean.  The True and False values are integers
in 2.2.1 and instances of bool in 2.3, but bool is a
subclass of the integer type, so returning False from
__nonzero__ really is returning an integer.

I'll check this into CVS once SourceForge clears a stale
lock; leaving it open until then so I don't forget.

----------------------------------------------------------------------

Comment By: Yitz Gale (yitzg)
Date: 2002-07-13 19:02

Message:
Logged In: YES 
user_id=576391

Hmm - in that case, there is also a bug in Ref. Guide 3.3.1
which says
that __nonzero__() is allowed to return boolean. But that would
be really quirky, are you sure boolean is not allowed?

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-07-12 13:16

Message:
Logged In: YES 
user_id=3066

Clarified in Doc/lib/libstdtypes.tex revisions 1.99 and
1.80.6.10.
__nonzero__() *must* return an integer.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=579991&group_id=5470