Clarify issues baded upon the first questions.
Don't add "(python-dev)" to Post-History header.
This commit is contained in:
parent
0c7f6fd4fa
commit
fd7241aaa1
15
pep-0285.txt
15
pep-0285.txt
|
@ -7,7 +7,7 @@ Status: Draft
|
|||
Type: Standards Track
|
||||
Created: 8-Mar-2002
|
||||
Python-Version: 2.3
|
||||
Post-History: 8-Mar-2002 (python-dev)
|
||||
Post-History: 8-Mar-2002
|
||||
|
||||
|
||||
Abstract
|
||||
|
@ -82,6 +82,19 @@ Specification
|
|||
False = bool(0, _create=1)
|
||||
True = bool(1, _create=1)
|
||||
|
||||
The values False and True will be singletons, like None; the C
|
||||
implementation will not allow other instances of bool to be
|
||||
created.
|
||||
|
||||
All built-in operations that are defined to return a Boolean
|
||||
result will be changed to return False or True instead of 0 or 1.
|
||||
In particular, this affects comparisons (<, <=, ==, !=, >, >=, is,
|
||||
is not, in, not it), the unary operator 'not', and built-in
|
||||
functions like hasattr(), isinstance() and issubclass(), the dict
|
||||
method has_key(), string methods endswith(), isalnum(), isalpha(),
|
||||
isdigit(), islower(), isspace(), istitle(), isupper(), and
|
||||
startswith(), and the closed attribute of file objects.
|
||||
|
||||
|
||||
Issues
|
||||
|
||||
|
|
Loading…
Reference in New Issue