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
gh-95516: Add param types and clarify param descriptions of LogRecord (GH-95517) #95517
Conversation
Doc/library/logging.rst
Outdated
where the logging call was made. | ||
:type lineno: int | ||
|
||
:param msg: The event description message; |
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.
Perhaps change to
The event description message, which can be a %-format string
with placeholders for variable data.
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.
Sure, that's way better, thanks. I've made that an actual suggestion and applied it.
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 |
Thanks for the great feedback @vsajip , and sorry for the delay—was busy taking care of other docs issues and PRs. I have made the requested changes; please review again. |
Thanks for making the requested changes! @vsajip: please review the changes made to this pull request. |
Thanks @CAM-Gerlach for the PR, and @vsajip for merging it |
Thanks @CAM-Gerlach for the PR, and @vsajip for merging it |
GH-95565 is a backport of this pull request to the 3.10 branch. |
…Record (pythonGH-95517) (cherry picked from commit 75a6441) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
GH-95566 is a backport of this pull request to the 3.11 branch. |
…Record (pythonGH-95517) (cherry picked from commit 75a6441) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Adds missing parameter type information to the existing structured Sphinxdoc parameter list of
logging.LogRecord
, following the same format as PR #94701 did forlogging.Formatter
.In addition, it clarifies several ambiguities in the existing parameter description text, particularly related to the types to pass. Most notably:
Path
or some bespoke "pathname" entity)Before and after:
Fixes #95516