[Python-checkins] python/nondist/peps pep-0008.txt,1.11,1.12

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 24 May 2002 12:46:22 -0700


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv5154

Modified Files:
	pep-0008.txt 
Log Message:
Two tiny clarifications.


Index: pep-0008.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0008.txt,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** pep-0008.txt	24 May 2002 19:42:30 -0000	1.11
--- pep-0008.txt	24 May 2002 19:46:20 -0000	1.12
***************
*** 507,511 ****
        really mean "if x is not None" -- e.g. when testing whether a
        variable or argument that defaults to None was set to some other
!       value.
  
      - Class-based exceptions are always preferred over string-based
--- 507,512 ----
        really mean "if x is not None" -- e.g. when testing whether a
        variable or argument that defaults to None was set to some other
!       value.  The other value might be a value that's false in a
!       Boolean context!
  
      - Class-based exceptions are always preferred over string-based
***************
*** 555,559 ****
  
      - Don't compare boolean values to True or False using == (bool
!       types are new in Python 2.3).
  
  
--- 556,563 ----
  
      - Don't compare boolean values to True or False using == (bool
!       types are new in Python 2.3):
! 
!         No:  if greeting == True: print "Hello world"
!         Yes: if greeting: print "Hello world"