[Python-checkins] cpython (2.7): Issue #25508: Clarify documentation on LogRecord args attribute.

vinay.sajip python-checkins at python.org
Tue Nov 24 18:24:31 EST 2015


https://hg.python.org/cpython/rev/a365fb0dd5e1
changeset: 99334:a365fb0dd5e1
branch: 2.7
parent: 99324:01444d85bfe0
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Tue Nov 24 23:18:30 2015 +0000
summary:
 Issue #25508: Clarify documentation on LogRecord args attribute.
files:
 Doc/library/logging.rst | 4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -622,7 +622,9 @@
 | Attribute name | Format | Description |
 +================+=========================+===============================================+
 | args | You shouldn't need to | The tuple of arguments merged into ``msg`` to |
-| | format this yourself. | produce ``message``. |
+| | format this yourself. | produce ``message``, or a dict whose values |
+| | | are used for the merge (when there is only one|
+| | | argument, and it is a dictionary). |
 +----------------+-------------------------+-----------------------------------------------+
 | asctime | ``%(asctime)s`` | Human-readable time when the |
 | | | :class:`LogRecord` was created. By default |
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /