]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Oct 2022 12:41:42 +0000 (05:41 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Oct 2022 12:41:42 +0000 (05:41 -0700)
(cherry picked from commit e2dc223004a4230a9f820d2ff617770719a42cc6)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/whatsnew/3.11.rst

index b0b0b1791f74cc5c415802233f6fee24f60801d8..d8e8764aa33831127edfa7f70f7c4b434e1e7f00 100644 (file)
@@ -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
 ---