bpo-33828: Add missing versionchanged note for string.Formatter. (GH-… · python/cpython@29fdea5

Original file line numberDiff line numberDiff line change

@@ -231,8 +231,11 @@ attribute using :func:`getattr`, while an expression of the form ``'[index]'``

231231

does an index lookup using :func:`__getitem__`.

232232
233233

.. versionchanged:: 3.1

234-

The positional argument specifiers can be omitted, so ``'{} {}'`` is

235-

equivalent to ``'{0} {1}'``.

234+

The positional argument specifiers can be omitted for :meth:`str.format`,

235+

so ``'{} {}'.format(a, b)`` is equivalent to ``'{0} {1}'.format(a, b)``.

236+
237+

.. versionchanged:: 3.4

238+

The positional argument specifiers can be omitted for :class:`Formatter`.

236239
237240

Some simple format string examples::

238241