From: Vinay Sajip Date: Sat, 14 Jun 2014 08:26:26 +0000 (+0100) Subject: Issue #21752: Documented change to behaviour of logging.getLevelName(). X-Git-Tag: v3.4.2rc1~392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0d324d02b5a9a5c22d79d0443ca68bf33398978;p=python Issue #21752: Documented change to behaviour of logging.getLevelName(). --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index c0a479e228..a3e2770c89 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)