summaryrefslogtreecommitdiff
path: root/Doc/library/platform.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/platform.rst')
-rw-r--r--Doc/library/platform.rst14
1 files changed, 12 insertions, 2 deletions
diff --git a/Doc/library/platform.rst b/Doc/library/platform.rst
index b98d9926bd..c2b85e6096 100644
--- a/Doc/library/platform.rst
+++ b/Doc/library/platform.rst
@@ -38,6 +38,16 @@ Cross Platform
and then only if the executable points to the Python interpreter. Reasonable
defaults are used when the above needs are not met.
+ .. note::
+
+ On Mac OS X (and perhaps other platforms), executable files may be
+ universal files containing multiple architectures.
+
+ To get at the "64-bitness" of the current interpreter, it is more
+ reliable to query the :attr:`sys.maxsize` attribute::
+
+ is_64bits = sys.maxsize > 2**32
+
.. function:: machine()
@@ -98,7 +108,7 @@ Cross Platform
.. function:: python_implementation()
Returns a string identifying the Python implementation. Possible return values
- are: 'CPython', 'IronPython', 'Jython'.
+ are: 'CPython', 'IronPython', 'Jython', 'PyPy'.
.. versionadded:: 2.6
@@ -194,7 +204,7 @@ Windows Platform
.. note::
- Note: this function works best with Mark Hammond's
+ This function works best with Mark Hammond's
:mod:`win32all` package installed, but also on Python 2.3 and
later (support for this was added in Python 2.6). It obviously
only runs on Win32 compatible platforms.