bpo-46307: Add string.Template.get_identifiers() method#30493
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Sorry, something went wrong.
3f90667 to
fc9ac1f
Compare
January 9, 2022 04:38
sobolevn
left a comment
There was a problem hiding this comment.
Hi! Thanks for the patch!
Since this is your first PR to CPython, you would need to:
- Sign CLA agreement, just follow the process in the reply above. If you have any questions - feel free to ping me 🙂
- Add
NEWSentry. With https://blurb-it.herokuapp.com/ or CLI tool: https://github.com/larryhastings/blurb
Sorry, something went wrong.
fc9ac1f to
0ce4073
Compare
January 9, 2022 12:42
0ce4073 to
319c8d7
Compare
January 10, 2022 14:52
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
warsaw
left a comment
There was a problem hiding this comment.
Thanks for creating this PR!
Please be sure to update the string module's documentation too!
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @warsaw: please review the changes made to this pull request. |
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
185c309 to
e80bb26
Compare
January 11, 2022 02:04
|
Do I need to put |
Sorry, something went wrong.
|
Thanks for making the requested changes! @warsaw: please review the changes made to this pull request. |
Sorry, something went wrong.
Yes, please. Sorry, I should have mentioned that earlier. |
Sorry, something went wrong.
|
Added the |
Sorry, something went wrong.
|
Awesome! Thanks @warsaw for helping me make my first contribution to Python! |
Sorry, something went wrong.
Add
string.Template.get_identifiers()method that returns the identifiers within the template. By default, raises an error if it encounters an invalid identifier (likesubstitute()). The keyword-only argumentraise_on_invalidcan be set toFalseto ignore invalid identifiers (likesafe_substitute()).https://bugs.python.org/issue46307
Automerge-Triggered-By: GH:warsaw