Changeset 391 for python/trunk/Doc/library/platform.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/platform.rst
r2 r391 10 10 .. versionadded:: 2.3 11 11 12 **Source code:** :source:`Lib/platform.py` 13 14 -------------- 15 12 16 .. note:: 13 17 … … 30 34 31 35 Values that cannot be determined are returned as given by the parameter presets. 32 If bits is given as ``''``, the :c func:`sizeof(pointer)` (or33 :c func:`sizeof(long)` on Python version < 1.5.2) is used as indicator for the36 If bits is given as ``''``, the :c:func:`sizeof(pointer)` (or 37 :c:func:`sizeof(long)` on Python version < 1.5.2) is used as indicator for the 34 38 supported pointer size. 35 39 … … 39 43 defaults are used when the above needs are not met. 40 44 45 .. note:: 46 47 On Mac OS X (and perhaps other platforms), executable files may be 48 universal files containing multiple architectures. 49 50 To get at the "64-bitness" of the current interpreter, it is more 51 reliable to query the :attr:`sys.maxsize` attribute:: 52 53 is_64bits = sys.maxsize > 2**32 54 41 55 42 56 .. function:: machine() … … 99 113 100 114 Returns a string identifying the Python implementation. Possible return values 101 are: 'CPython', 'IronPython', 'Jython' .115 are: 'CPython', 'IronPython', 'Jython', 'PyPy'. 102 116 103 117 .. versionadded:: 2.6 … … 184 198 185 199 Get additional version information from the Windows Registry and return a tuple 186 ``( version, csd, ptype)`` referring to version number, CSD level and OS type187 (multi/single processor).200 ``(release, version, csd, ptype)`` referring to OS release, version number, 201 CSD level (service pack) and OS type (multi/single processor). 188 202 189 203 As a hint: *ptype* is ``'Uniprocessor Free'`` on single processor NT machines … … 195 209 .. note:: 196 210 197 Note: this function works best with Mark Hammond's211 This function works best with Mark Hammond's 198 212 :mod:`win32all` package installed, but also on Python 2.3 and 199 213 later (support for this was added in Python 2.6). It obviously … … 224 238 strings. 225 239 226 Documentation for the underlying :cfunc:`gestalt` API is available online at227 http://www.rgaros.nl/gestalt/.228 229 240 230 241 Unix Platforms
Note:
See TracChangeset
for help on using the changeset viewer.