[Python-checkins] CVS: python/dist/src Makefile.pre.in,1.78,1.79

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 03 Apr 2002 14:41:52 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv31419

Modified Files:
	Makefile.pre.in 
Log Message:
Add the 'bool' type and its values 'False' and 'True', as described in
PEP 285.  Everything described in the PEP is here, and there is even
some documentation.  I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison.  I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.

Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.



Index: Makefile.pre.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.pre.in,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** Makefile.pre.in	29 Mar 2002 16:28:30 -0000	1.78
--- Makefile.pre.in	3 Apr 2002 22:41:49 -0000	1.79
***************
*** 250,253 ****
--- 250,254 ----
  OBJECT_OBJS=	\
  		Objects/abstract.o \
+ 		Objects/boolobject.o \
  		Objects/bufferobject.o \
  		Objects/cellobject.o \
***************
*** 432,435 ****
--- 433,437 ----
  		Include/Python.h \
  		Include/abstract.h \
+ 		Include/boolobject.h \
  		Include/bufferobject.h \
  		Include/ceval.h \