8000 Clarify a guarantee of the logging module. (GH-19132) · python/cpython@9b8e74c · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b8e74c

Browse files
authored
Clarify a guarantee of the logging module. (GH-19132)
When no additional arguments are passed to logging.debug() and related methods, no % operation is performed on the passed in message.
1 parent 5804f87 commit 9b8e74c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/logging.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ is the module's name in the Python package namespace.
159159
message format string, and the *args* are the arguments which are merged into
160160
*msg* using the string formatting operator. (Note that this means that you can
161161
use keywords in the format string, together with a single dictionary argument.)
162+
No % formatting operation is performed on *msg* when no *args* are supplied.
162163

163164
There are four keyword arguments in *kwargs* which are inspected:
164165
*exc_info*, *stack_info*, *stacklevel* and *extra*.

0 commit comments

Comments
 (0)
0