-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-33943: Add references to logging.basicConfig #7858
Conversation
Doc/library/logging.rst
Outdated
| | <old-string-formatting>`, | | ||
| | :meth:`str.format` or | | ||
| | :class:`string.Template` respectively. | | ||
| | Defaults to ``'%'`` | |
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.
Missing a period at the end.
Doc/library/logging.rst
Outdated
+--------------+---------------------------------------------+ | ||
| ``format`` | Use the specified format string for the | | ||
| | handler. | | ||
+--------------+---------------------------------------------+ | ||
| ``datefmt`` | Use the specified date/time format. | | ||
| ``datefmt`` | Use the specified :func:`time.strftime` | | ||
| | style date/time format. | |
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.
I suggest a different wording, to avoid the non-hyphenated use of "style", e.g.:
"Use the specified date/time format, as accepted by time.strftime
."
Doc/library/logging.rst
Outdated
| ``filemode`` | Specifies the mode to open the file, if | | ||
| | filename is specified (if filemode is | | ||
| | unspecified, it defaults to 'a'). | | ||
| ``filemode`` | If ``filename`` is specified, open the file | |
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.
Use *filename*
rather than ``filename``
(here and elsewhere).
From the Documenting Python page in the developers guide:
Names of local variables, such as function/method arguments, are an exception, they should be marked simply with *var*.
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 |
I have made the requested changes; please review again Thanks for the review, Tal! |
Thanks for making the requested changes! @taleinat: please review the changes made to this pull request. |
e6fdb02
to
01e0c9b
Compare
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.
This looks great to me!
Thanks @andresdelfino for the PR, and @taleinat for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
Thanks @andresdelfino for the PR, and @taleinat for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7. |
Thanks @andresdelfino for the PR, and @taleinat for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-7899 is a backport of this pull request to the 3.6 branch. |
Sorry, @andresdelfino and @taleinat, I could not cleanly backport this to |
GH-7900 is a backport of this pull request to the 3.7 branch. |
…ythonGH-7858) Adds references to info about file modes, `time.strftime()`, string formatting syntaxes, and logging levels. (cherry picked from commit a8ddf85) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
…ythonGH-7858) Adds references to info about file modes, `time.strftime()`, string formatting syntaxes, and logging levels.. (cherry picked from commit a8ddf85) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
GH-7902 is a backport of this pull request to the 2.7 branch. |
https://bugs.python.org/issue33943