-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
logging.Formatter
docstring missing processName attribute.
#134360
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
Comments
I'm working on this! As part of the PyCon US 25 sprints :) Already opened a PR: #134371, waiting for review. |
…tring (pythonGH-134371) (cherry picked from commit c740fe3) Co-authored-by: Sofia Toro <sofie.torch@outlook.com>
…tring (pythonGH-134371) (cherry picked from commit c740fe3) Co-authored-by: Sofia Toro <sofie.torch@outlook.com>
Thanks @SofieTorch !! |
Thanks @SofieTorch @vsajip @tomasr8 . I actually had the change before submitting this detailed issue, went for lunch and saw a PR was already put up. And now the PR has been merged. All was done in less than a day which is really amazing. Is PyCon US 25 a competition of some sort? I was going to set an assignee as me on the issue but wasn't able to due to lack of access. I guess this one-line change is minor, but is there a way to avoid duplicate work by contributors? |
These are some other items I wanted to address in the PR draft:
Shall we file a separate issues / PRs for the fixes? |
@junhaoliao Sorry about that! I didn't realize you were already working on it :/ When you open an issue that you are planning to work on, you can mention it in the description so that others know not to pick up the issue 🙂 The PyConUS sprints are currently taking place so there are lots of new contributors around :)
Not sure, some other docstrings in the module do have those notes. What do you think @vsajip ?
We normally don't encourage purely stylistic changes/typo fixes but it ultimately depends on the module maintainer if they want to make that change. A separate issue would not be needed for this though, a PR is fine. |
Uh oh!
There was an error while loading. Please reload this page.
Documentation
The docstring for
logging.Formatter
class is missing theprocessName
attribute that is available inLogRecord
and documented in the official Python documentation.Issues
The
processName
attribute is documented in the LogRecord attributes section of the Python documentation, but it's not listed in theFormatter
class docstring that enumerates the attributes users can include in format strings.cpython/Doc/library/logging.rst
Lines 995 to 1075 in ec39fd2
Missing attribute:
processName
- Process name (if available), added in Python 3.1Suggested Fix
Add the
processName
attribute to the docstring with its description:Linked PRs
logging.Formatter
docstring #134371logging.Formatter
docstring (GH-134371) #134404logging.Formatter
docstring (GH-134371) #134405The text was updated successfully, but these errors were encountered: