[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

Raymond Hettinger report at bugs.python.org
Sat Apr 1 11:56:28 EDT 2017


Raymond Hettinger added the comment:

Rather than removing the defaultdict, I think a cleaner fix is to just remove the unnecessary LBYL.   That leaves the code a little more compact, faster, and nice looking.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29957>
_______________________________________


More information about the Python-bugs-list mailing list