mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
(cherry picked from commit e2dc223004
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
parent
5288f66476
commit
2af406666e
1 changed files with 12 additions and 0 deletions
|
@ -949,6 +949,18 @@ sqlite3
|
||||||
(Contributed by Aviv Palivoda and Erlend E. Aasland in :issue:`24905`.)
|
(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
|
sys
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue