Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0d324d

Browse files
committed
Issue #21752: Documented change to behaviour of logging.getLevelName().
1 parent a40e6b0 commit e0d324d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/logging.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,11 @@ functions.
10491049
of the defined levels is passed in, the corresponding string representation is
10501050
returned. Otherwise, the string 'Level %s' % lvl is returned.
10511051

1052+
.. versionchanged:: 3.4
1053+
In Python versions earlier than 3.4, this function could also be passed a
1054+
text level, and would return the corresponding numeric value of the level.
1055+
This undocumented behaviour was a mistake, and has been removed in Python
1056+
3.4.
10521057

10531058
.. function:: makeLogRecord(attrdict)
10541059

0 commit comments

Comments
 (0)