Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 462d1b3

Browse files
committed
Move sys.subversion at the right place in alphabetical order, and informally deprecate it.
1 parent a83cdaa commit 462d1b3

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

Doc/library/sys.rst

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,6 @@ always available.
3636
little-endian (least-significant byte first) platforms.
3737

3838

39-
.. data:: subversion
40-
41-
A triple (repo, branch, version) representing the Subversion information of the
42-
Python interpreter. *repo* is the name of the repository, ``'CPython'``.
43-
*branch* is a string of one of the forms ``'trunk'``, ``'branches/name'`` or
44-
``'tags/name'``. *version* is the output of ``svnversion``, if the interpreter
45-
was built from a Subversion checkout; it contains the revision number (range)
46-
and possibly a trailing 'M' if there were local modifications. If the tree was
47-
exported (or svnversion was not available), it is the revision of
48-
``Include/patchlevel.h`` if the branch is a tag. Otherwise, it is ``None``.
49-
50-
5139
.. data:: builtin_module_names
5240

5341
A tuple of strings giving the names of all modules that are compiled into this
@@ -982,6 +970,24 @@ always available.
982970
to a console and Python apps started with :program:`pythonw`.
983971

984972

973+
.. data:: subversion
974+
975+
A triple (repo, branch, version) representing the Subversion information of the
976+
Python interpreter. *repo* is the name of the repository, ``'CPython'``.
977+
*branch* is a string of one of the forms ``'trunk'``, ``'branches/name'`` or
978+
``'tags/name'``. *version* is the output of ``svnversion``, if the interpreter
979+
was built from a Subversion checkout; it contains the revision number (range)
980+
and possibly a trailing 'M' if there were local modifications. If the tree was
981+
exported (or svnversion was not available), it is the revision of
982+
``Include/patchlevel.h`` if the branch is a tag. Otherwise, it is ``None``.
983+
984+
.. deprecated:: 3.2.1
985+
Python is now `developed <http://docs.python.org/devguide/>`_ using
986+
Mercurial. In recent Python 3.2 bugfix releases, :data:`subversion`
987+
therefore contains placeholder information. It is removed in Python
988+
3.3.
989+
990+
985991
.. data:: tracebacklimit
986992

987993
When this variable is set to an integer value, it determines the maximum number

0 commit comments

Comments
 (0)