From: C.A.M. Gerlach Date: Mon, 24 Oct 2022 12:33:04 +0000 (-0500) Subject: gh-95913 Add string section to Whatsnew with new Template methods (#98311) X-Git-Tag: v3.12.0a1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2dc223004a4230a9f820d2ff617770719a42cc6;p=thirdparty%2FPython%2Fcpython.git gh-95913 Add string section to Whatsnew with new Template methods (#98311) --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index c143a418f3c5..710b6c888f61 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -949,6 +949,18 @@ sqlite3 (Contributed by Aviv Palivoda and Erlend E. Aasland in :issue:`24905`.) +.. _whatsnew311-string: + +string +------ + +* Add :meth:`~string.Template.get_identifiers` + and :meth:`~string.Template.is_valid` to :class:`string.Template`, + which respectively return all valid placeholders, + and whether any invalid placeholders are present. + (Contributed by Ben Kehoe in :gh:`90465`.) + + sys ---