[Python-checkins] cpython (3.4): Issue #21752: Documented change to behaviour of logging.getLevelName().
vinay.sajip
python-checkins at python.org
Sat Jun 14 10:27:27 CEST 2014
http://hg.python.org/cpython/rev/277d099a134b
changeset: 91170:277d099a134b
branch: 3.4
parent: 91165:f44275c66fcf
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Sat Jun 14 09:26:26 2014 +0100
summary:
Issue #21752: Documented change to behaviour of logging.getLevelName().
files:
Doc/library/logging.rst | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1049,6 +1049,11 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list