diff options
author | C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 2022-10-24 12:33:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 12:33:04 (GMT) |
commit | e2dc223004a4230a9f820d2ff617770719a42cc6 (patch) | |
tree | ca059b74fe1d29123831f2c68a63c4d574f3e110 /Doc/whatsnew | |
parent | 75a6fadf369315b27e12f670e6295cf2c2cf7d7e (diff) | |
download | cpython-e2dc223004a4230a9f820d2ff617770719a42cc6.zip cpython-e2dc223004a4230a9f820d2ff617770719a42cc6.tar.gz cpython-e2dc223004a4230a9f820d2ff617770719a42cc6.tar.bz2 |
gh-95913 Add string section to Whatsnew with new Template methods (#98311)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index c143a41..710b6c8 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 --- |