GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-43858: Add logging.getLevelNamesMapping() by akulakov · Pull Request #26459 · python/cpython Conversation
| ||||||||||||||||||||||||||||||||||
|
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.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @ericvsmith: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is looking good to me. @vsajip : I'll let you have the final word.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| @@ -0,0 +1 @@ | |||
| Added a function that returns a copy of a dict of logging levels: func::`logging.getLevelNamesMapping()` | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Now that I look at this: isn't the correct syntax:
:func:`logging.getLevelNamesMapping`
?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You are right, well spotted!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vsajip @ericvsmith Pushed an update per comments, please take a look! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
With the one small item I mentioned, this looks good to me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1 @@ | |||
| Added a function that returns a copy of a dict of logging levels: :func:`logging.getLevelNamesMapping()` | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that :func: adds the parens, so you should leave them off in this message. I've looked at other files, and they don't have the parens.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ericvsmith I fixed the parens, please take a look.. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Accidental double-definition in test?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self.assertEqual(rc, 1) | ||
|
|
||
| def test_get_level_names_mapping(self): | ||
| def test_get_level_names_mapping(self): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think you meant this double level of indentation! That causes the test to do nothing effective 😞
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Whoops, somehow doubling made it hard to spot for me..
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vsajip Fixed the doubled test.. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me. Thanks, @akulakov !
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ericvsmith and @vsajip much thanks for the help with the PR! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.