summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2014-06-14 08:26:26 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2014-06-14 08:26:26 (GMT)
commite0d324d02b5a9a5c22d79d0443ca68bf33398978 (patch)
tree78cacfd774fdba1681c0004d4e45dbc9120e1895 /Doc/library
parenta40e6b0c9482c9aa7f94396430274251abfdf655 (diff)
downloadcpython-e0d324d02b5a9a5c22d79d0443ca68bf33398978.zip
cpython-e0d324d02b5a9a5c22d79d0443ca68bf33398978.tar.gz
cpython-e0d324d02b5a9a5c22d79d0443ca68bf33398978.tar.bz2
Issue #21752: Documented change to behaviour of logging.getLevelName().
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/logging.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index c0a479e..a3e2770 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1049,6 +1049,11 @@ functions.
of the defined levels is passed in, the corresponding string representation is
returned. Otherwise, the string 'Level %s' % lvl is returned.
+ .. versionchanged:: 3.4
+ In Python versions earlier than 3.4, this function could also be passed a
+ text level, and would return the corresponding numeric value of the level.
+ This undocumented behaviour was a mistake, and has been removed in Python
+ 3.4.
.. function:: makeLogRecord(attrdict)