diff --git a/Doc/library/platform.rst b/Doc/library/platform.rst index 60c6089ad3ccb5..771160cf4f81ea 100644 --- a/Doc/library/platform.rst +++ b/Doc/library/platform.rst @@ -40,9 +40,12 @@ Cross Platform and then only if the executable points to the Python interpreter. Reasonable defaults are used when the above needs are not met. + To only get the pointer size of the running Python interpreter, + :attr:`sys.maxsize` or ``struct.calcsize('P')`` can be used. + .. note:: - On Mac OS X (and perhaps other platforms), executable files may be + On macOS (and perhaps other platforms), executable files can be universal files containing multiple architectures. To get at the "64-bitness" of the current interpreter, it is more