• Michael Selik's avatar
    bpo-29957: change LBYL key lookup to dict.setdefault (#938) · 11fa3c7c
    Michael Selik yazdı
    * change LBYL key lookup to dict.setdefault
    
    The ``results`` was constructed as a defaultdict and we could simply
    delete the check ``if key not in results``. However, I think it's safer
    to use dict.setdefault as I'm not sure whether the caller expects a
    regular dict or defaultdict.
    
    * add name to the acknowledgements file
    
    * use defaultdict to make the key-lookup cleaner
    11fa3c7c
Adı
Son kayıt (commit)
Son güncelleme
..
fixes Loading commit data...
pgen2 Loading commit data...
tests Loading commit data...
Grammar.txt Loading commit data...
PatternGrammar.txt Loading commit data...
__init__.py Loading commit data...
__main__.py Loading commit data...
btm_matcher.py Loading commit data...
btm_utils.py Loading commit data...
fixer_base.py Loading commit data...
fixer_util.py Loading commit data...
main.py Loading commit data...
patcomp.py Loading commit data...
pygram.py Loading commit data...
pytree.py Loading commit data...
refactor.py Loading commit data...