diff options
author | Ben Kehoe <bkehoe@irobot.com> | 2022-01-11 19:15:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 19:15:42 (GMT) |
commit | dce642f24418c58e67fa31a686575c980c31dd37 (patch) | |
tree | 90e9eb86f921027c33819c29490de8be68990b56 /PC | |
parent | cf496d657a1a82eaf9ebfb47d721676fef6effa5 (diff) | |
download | cpython-dce642f24418c58e67fa31a686575c980c31dd37.zip cpython-dce642f24418c58e67fa31a686575c980c31dd37.tar.gz cpython-dce642f24418c58e67fa31a686575c980c31dd37.tar.bz2 |
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
Diffstat (limited to 'PC')
0 files changed, 0 insertions, 0 deletions