[issue16613] ChainMap.new_child could use improvement

Vinay Sajip report at bugs.python.org
Thu Jan 10 17:28:59 CET 2013


Vinay Sajip added the comment:

> d if d is not None else {}

Your intention makes sense, though I would prefer to write it as:

    if d is None:
        d = {}
    return self.__class__(d, *self.maps)

----------

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


More information about the Python-bugs-list mailing list