summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-10 13:25:32 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-10 13:25:32 (GMT)
commitda5cc82d5919318c33393ba0a0dc90e4552f011d (patch)
tree019dcd54984de5a6934198f274812c58668548a6
parent230cae7474858a8ce2147849a7a00a5501564641 (diff)
downloadcpython-da5cc82d5919318c33393ba0a0dc90e4552f011d.zip
cpython-da5cc82d5919318c33393ba0a0dc90e4552f011d.tar.gz
cpython-da5cc82d5919318c33393ba0a0dc90e4552f011d.tar.bz2
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.
-rw-r--r--PC/config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/PC/config.h b/PC/config.h
index 13da33f..1491e32 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -234,7 +234,10 @@ typedef int pid_t;
/* End of compilers - finish up */
#if defined(MS_WIN64)
-#define PLATFORM "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)
#define PLATFORM "win32"