bpo-46307: Add string.Template.get_identifiers() method (GH-30493)
Add `string.Template.get_identifiers()` method that returns the identifiers within the template. By default, raises an error if it encounters an invalid identifier (like `substitute()`). The keyword-only argument `raise_on_invalid` can be set to `False` to ignore invalid identifiers (like `safe_substitute()`). Automerge-Triggered-By: GH:warsaw
B
Ben Kehoe committed
dce642f24418c58e67fa31a686575c980c31dd37
Parent: cf496d6
Committed by GitHub <noreply@github.com>
on 1/11/2022, 7:15:42 PM