Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
benkehoe commented Jan 9, 2022 • edited by miss-islington
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by miss-islington
Uh oh!
There was an error while loading. Please reload this page.
the-knights-who-say-ni commented Jan 9, 2022
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! |
sobolevn left a comment
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
NEWSentry. With https://blurb-it.herokuapp.com/ or CLI tool: https://github.com/larryhastings/blurb
0ce4073 to 319c8d7CompareMisc/NEWS.d/next/Library/2022-01-10-07-51-43.bpo-46307.SKvOIY.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
warsaw left a comment
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!
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Jan 10, 2022
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 commented Jan 10, 2022
I have made the requested changes; please review again |
bedevere-bot commented Jan 10, 2022
Thanks for making the requested changes! @warsaw: please review the changes made to this pull request. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Jan 11, 2022
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 |
warsaw commented Jan 11, 2022
@benkehoe Have you signed the CLA? |
185c309 to e80bb26Comparebenkehoe commented Jan 11, 2022
Do I need to put |
bedevere-bot commented Jan 11, 2022
Thanks for making the requested changes! @warsaw: please review the changes made to this pull request. |
warsaw commented Jan 11, 2022
Yes, please. Sorry, I should have mentioned that earlier. |
benkehoe commented Jan 11, 2022
Added the |
warsaw left a comment
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.
benkehoe commented Jan 11, 2022
Awesome! Thanks @warsaw for helping me make my first contribution to Python! |
miss-islington commented Jan 11, 2022
@benkehoe: Status check is done, and it's a success ✅ . |
warsaw commented Jan 11, 2022
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_invalidcan be set toFalseto ignore invalid identifiers (likesafe_substitute()).https://bugs.python.org/issue46307
Automerge-Triggered-By: GH:warsaw