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

« back to all changes in this revision

Viewing changes to Doc/library/sys.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
909
909
.. data:: version
910
910
 
911
911
   A string containing the version number of the Python interpreter plus additional
912
 
   information on the build number and compiler used. It has a value of the form
913
 
   ``'version (#build_number, build_date, build_time) [compiler]'``.  The first
914
 
   three characters are used to identify the version in the installation
915
 
   directories (where appropriate on each platform).  An example::
916
 
 
917
 
      >>> import sys
918
 
      >>> sys.version
919
 
      '1.5.2 (#0 Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)]'
 
912
   information on the build number and compiler used.  This string is displayed
 
913
   when the interactive interpreter is started.  Do not extract version information
 
914
   out of it, rather, use :data:`version_info` and the functions provided by the
 
915
   :mod:`platform` module.
920
916
 
921
917
 
922
918
.. data:: api_version