[Python-checkins] CVS: python/nondist/peps pep-0285.txt,1.1,1.2
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 08 Mar 2002 08:15:07 -0800
Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv11303
Modified Files:
pep-0285.txt
Log Message:
Clarify issues baded upon the first questions.
Don't add "(python-dev)" to Post-History header.
Index: pep-0285.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0285.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pep-0285.txt 8 Mar 2002 15:38:37 -0000 1.1
--- pep-0285.txt 8 Mar 2002 16:15:04 -0000 1.2
***************
*** 8,12 ****
Created: 8-Mar-2002
Python-Version: 2.3
! Post-History: 8-Mar-2002 (python-dev)
--- 8,12 ----
Created: 8-Mar-2002
Python-Version: 2.3
! Post-History: 8-Mar-2002
***************
*** 82,85 ****
--- 82,98 ----
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.