]> granicus.if.org Git - python/commitdiff
#7527: use standard versionadded tags.
authorGeorg Brandl <georg@python.org>
Sat, 19 Dec 2009 17:30:28 +0000 (17:30 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 19 Dec 2009 17:30:28 +0000 (17:30 +0000)
Doc/library/string.rst

index b636ca0116800e998494b25e69a7201e094c9ef9..8f8e1658b2af0c7f0e5c23a51c97cdeb756cd1b9 100644 (file)
@@ -105,7 +105,9 @@ The constants defined in this module are:
 String Formatting
 -----------------
 
-Starting in Python 2.6, the built-in str and unicode classes provide the ability
+.. versionadded:: 2.6
+
+The built-in str and unicode classes provide the ability
 to do complex variable substitutions and value formatting via the
 :meth:`str.format` method described in :pep:`3101`.  The :class:`Formatter`
 class in the :mod:`string` module allows you to create and customize your own
@@ -488,6 +490,8 @@ The available presentation types for floating point and decimal values are:
 Template strings
 ----------------
 
+.. versionadded:: 2.4
+
 Templates provide simpler string substitutions as described in :pep:`292`.
 Instead of the normal ``%``\ -based substitutions, Templates support ``$``\
 -based substitutions, using the following rules:
@@ -506,8 +510,6 @@ Instead of the normal ``%``\ -based substitutions, Templates support ``$``\
 Any other appearance of ``$`` in the string will result in a :exc:`ValueError`
 being raised.
 
-.. versionadded:: 2.4
-
 The :mod:`string` module provides a :class:`Template` class that implements
 these rules.  The methods of :class:`Template` are: