-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-46307: Add string.Template.get_identifiers() method #30493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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! |
3f90667
to
fc9ac1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
NEWS
entry. With https://blurb-it.herokuapp.com/ or CLI tool: https://github.com/larryhastings/blurb
fc9ac1f
to
0ce4073
Compare
0ce4073
to
319c8d7
Compare
Misc/NEWS.d/next/Library/2022-01-10-07-51-43.bpo-46307.SKvOIY.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for creating this PR!
Please be sure to update the string module's documentation too!
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 |
I have made the requested changes; please review again |
Thanks for making the requested changes! @warsaw: please review the changes made to this pull request. |
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 |
@benkehoe Have you signed the CLA? |
185c309
to
e80bb26
Compare
Do I need to put |
Thanks for making the requested changes! @warsaw: please review the changes made to this pull request. |
Yes, please. Sorry, I should have mentioned that earlier. |
Added the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @benkehoe for working on this! I'm approving it. I've also set CI to run and automerge label, so if that passes, this should land.
Awesome! Thanks @warsaw for helping me make my first contribution to Python! |
@benkehoe: Status check is done, and it's a success ✅ . |
Well done @benkehoe ! |
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_invalid
can be set toFalse
to ignore invalid identifiers (likesafe_substitute()
).https://bugs.python.org/issue46307
Automerge-Triggered-By: GH:warsaw