~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/platform.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
:mod:`platform` ---  Access to underlying platform's identifying data.
3
 
======================================================================
 
1
:mod:`platform` ---  Access to underlying platform's identifying data
 
2
=====================================================================
4
3
 
5
4
.. module:: platform
6
5
   :synopsis: Retrieves as much platform identifying data as possible.
99
98
.. function:: python_implementation()
100
99
 
101
100
   Returns a string identifying the Python implementation. Possible return values
102
 
   are: 'CPython', 'IronPython', 'Jython'
 
101
   are: 'CPython', 'IronPython', 'Jython'.
103
102
 
104
103
   .. versionadded:: 2.6
105
104
 
169
168
 
170
169
.. function:: java_ver(release='', vendor='', vminfo=('','',''), osinfo=('','',''))
171
170
 
172
 
   Version interface for JPython.
 
171
   Version interface for Jython.
173
172
 
174
173
   Returns a tuple ``(release, vendor, vminfo, osinfo)`` with *vminfo* being a
175
174
   tuple ``(vm_name, vm_release, vm_vendor)`` and *osinfo* being a tuple
234
233
 
235
234
.. function:: dist(distname='', version='', id='', supported_dists=('SuSE','debian','redhat','mandrake',...))
236
235
 
237
 
   This is another name for :func:`linux_distribution`.
 
236
   This is an old version of the functionality now provided by
 
237
   :func:`linux_distribution`. For new code, please use the
 
238
   :func:`linux_distribution`.
 
239
 
 
240
   The only difference between the two is that ``dist()`` always
 
241
   returns the short name of the distribution taken from the
 
242
   ``supported_dists`` parameter.
 
243
 
 
244
   .. deprecated:: 2.6
238
245
 
239
246
.. function:: linux_distribution(distname='', version='', id='', supported_dists=('SuSE','debian','redhat','mandrake',...), full_distribution_name=1)
240
247
 
252
259
   parameters.  ``id`` is the item in parentheses after the version number.  It
253
260
   is usually the version codename.
254
261
 
 
262
   .. versionadded:: 2.6
 
263
 
255
264
.. function:: libc_ver(executable=sys.executable, lib='', version='', chunksize=2048)
256
265
 
257
266
   Tries to determine the libc version against which the file executable (defaults