[issue27937] logging.getLevelName microoptimization
Xiang Zhang
report at bugs.python.org
Fri Sep 2 05:06:22 EDT 2016
Xiang Zhang added the comment:
No, I mean this method you propose:
return _levelToName.get(level, (_nameToLevel.get(level, ("Level %s" % level))))
I cannot see any difference with the original code, except parentheses.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27937>
_______________________________________
More information about the Python-bugs-list
mailing list