[Python-checkins] CVS: python/dist/src/PC config.h,1.34,1.35

Guido van Rossum python-dev@python.org
Wed, 10 May 2000 09:25:35 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/PC
In directory eric:/projects/python/develop/guido/src/PC

Modified Files:
	config.h 
Log Message:
Trent Mick:

Use "win32" for sys.platform on Win64 instead of "win32" because:
1. While it may be confusing to the Python scriptor on Win64 that he has to
   check for win*32*, that is something that he will learn the first time. It
   is better than the alternative of the scriptor happily using "win64" and
   then that code not running on Win32 for no good reason.
2. The main question is: is Win64 so much more like Win32 than different from
   it that the common-case general Python programmer should not ever have to
   make the differentiation in his Python code. Or, at least, enough so that
   such differentiation by the Python scriptor is rare enough that some other
   provided mechanism is sufficient (even preferable). Currently the answer
   is yes. Hopefully MS will not change this answer.


Index: config.h
===================================================================
RCS file: /projects/cvsroot/python/dist/src/PC/config.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** config.h	2000/05/08 14:14:48	1.34
--- config.h	2000/05/10 13:25:32	1.35
***************
*** 235,239 ****
  
  #if defined(MS_WIN64)
! #define PLATFORM "win64"
  #define SIZEOF_VOID_P 8
  #elif defined(MS_WIN32)
--- 235,242 ----
  
  #if defined(MS_WIN64)
! /* maintain "win32" sys.platform for backward compatibility of Python code,
!    the Win64 API should be close enough to the Win32 API to make this
!    preferable */
! #define PLATFORM "win32"
  #define SIZEOF_VOID_P 8
  #elif defined(MS_WIN32)