Commit fc8ea20c authored by Xiang Zhang's avatar Xiang Zhang Committed by GitHub

[2.7] bpo-33828: Clarify auto-numbering is not available to string.Formatter. (GH-7668) (GH-7676)

string.Formatter auto-numbering feature was added in 3.4 and not
available in 2.7. Make the documentation unambiguous.
parent 42ca8367
......@@ -257,8 +257,9 @@ attribute using :func:`getattr`, while an expression of the form ``'[index]'``
does an index lookup using :func:`__getitem__`.
.. versionchanged:: 2.7
The positional argument specifiers can be omitted, so ``'{} {}'`` is
equivalent to ``'{0} {1}'``.
The positional argument specifiers can be omitted for :meth:`str.format` and
:meth:`unicode.format`, so ``'{} {}'`` is equivalent to ``'{0} {1}'``,
``u'{} {}'`` is equivalent to ``u'{0} {1}'``.
Some simple format string examples::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment