Skip to content

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

+1
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)