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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bpo-46307: Update documentation
  • Loading branch information
benkehoe committed Jan 11, 2022
commit 2c7e74dcbaffd43b4f69be50e641269c14862e4d
4 changes: 4 additions & 0 deletions Doc/library/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -789,12 +789,16 @@ these rules. The methods of :class:`Template` are:
Returns false if the template has invalid placeholders that will cause
:meth:`substitute` to raise :exc:`ValueError`.

.. versionadded:: 3.11


.. method:: get_identifiers()

Returns a list of the valid identifiers in the template, in the order
they first appear, ignoring any invalid identifiers.

.. versionadded:: 3.11

:class:`Template` instances also provide one public data attribute:

.. attribute:: template
Expand Down