Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/platform.rst

    r2 r391  
    1010.. versionadded:: 2.3
    1111
     12**Source code:** :source:`Lib/platform.py`
     13
     14--------------
     15
    1216.. note::
    1317
     
    3034
    3135   Values that cannot be determined are returned as given by the parameter presets.
    32    If bits is given as ``''``, the :cfunc:`sizeof(pointer)` (or
    33    :cfunc:`sizeof(long)` on Python version < 1.5.2) is used as indicator for the
     36   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
    3438   supported pointer size.
    3539
     
    3943   defaults are used when the above needs are not met.
    4044
     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
    4155
    4256.. function:: machine()
     
    99113
    100114   Returns a string identifying the Python implementation. Possible return values
    101    are: 'CPython', 'IronPython', 'Jython'.
     115   are: 'CPython', 'IronPython', 'Jython', 'PyPy'.
    102116
    103117   .. versionadded:: 2.6
     
    184198
    185199   Get additional version information from the Windows Registry and return a tuple
    186    ``(version, csd, ptype)`` referring to version number, CSD level and OS type
    187    (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).
    188202
    189203   As a hint: *ptype* is ``'Uniprocessor Free'`` on single processor NT machines
     
    195209   .. note::
    196210
    197       Note: this function works best with Mark Hammond's
     211      This function works best with Mark Hammond's
    198212      :mod:`win32all` package installed, but also on Python 2.3 and
    199213      later (support for this was added in Python 2.6). It obviously
     
    224238   strings.
    225239
    226    Documentation for the underlying :cfunc:`gestalt` API is available online at
    227    http://www.rgaros.nl/gestalt/.
    228 
    229240
    230241Unix Platforms
Note: See TracChangeset for help on using the changeset viewer.