Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-103384: Generalize the regex patternBaseConfigurator.INDEX_PATTERN to allow spaces and non-alphanumeric characters in keys.#103391
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 ourterms of service andprivacy 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
bedevere-bot commentedApr 9, 2023
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
ghost commentedApr 9, 2023 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
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.
tomasr8 commentedApr 9, 2023
I think a test with some special characters would also be useful :) |
dhuadaar commentedApr 9, 2023
Makes sense. Thanks for the suggestions. I will add some of those combinations. |
tomasr8 commentedApr 9, 2023
I'd also add tests for some edge cases like the empty string (if we want to allow that) and multiple nesting levels e.g. |
Uh oh!
There was an error while loading.Please reload this page.
dhuadaar commentedApr 9, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I have added a new nested dictionary to the existing template we use in the test. Added new assertions specifically for the nested cases.
Update: Added this anyways. |
vsajip 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 the PR!
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2023-04-09-05-30-41.gh-issue-103384.zAV7iB.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedApr 12, 2023
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 |
BaseConfigurator.INDEX_PATTERN to allow spaces and non-alphanumeric characters in keys.BaseConfigurator.INDEX_PATTERN to allow spaces and non-alphanumeric characters in keys.…AV7iB.rstCo-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Misc/NEWS.d/next/Library/2023-04-09-05-30-41.gh-issue-103384.zAV7iB.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
dhuadaar commentedApr 13, 2023
I have made the requested changes; please review again. |
bedevere-bot commentedApr 13, 2023
Thanks for making the requested changes! @vsajip: please review the changes made to this pull request. |
BaseConfigurator.INDEX_PATTERN to allow spaces and non-alphanumeric characters in keys.BaseConfigurator.INDEX_PATTERN to allow spaces and non-alphanumeric characters in keys.dhuadaar commentedMay 2, 2023
@vsajip |
vsajip commentedAug 4, 2023
Sorry I've not had time to look at this. Hope to get to it soon. |
erlend-aasland commentedAug 25, 2023
erlend-aasland commentedAug 25, 2023
Should this be backported? |
vsajip commentedAug 25, 2023
Perhaps - it's arguable whether it's an enhancement or could have been considered a documentation bug. |
erlend-aasland commentedAug 25, 2023
Ok; if no backport is needed, we should close the linked issue. |
Uh oh!
There was an error while loading.Please reload this page.
The issue described a broken regex pattern in the logging module.
Fixed the regex and added tests for the same.
logging.configcfgprotocol rejects non-alphanumeric names, contrary to the documentation #103384