[Python-ideas] Add dict.append and dict.extend

Chris Angelico rosuav at gmail.com
Wed Jun 6 04:34:20 EDT 2018


On Wed, Jun 6, 2018 at 4:18 PM, Chris Barker via Python-ideas
<python-ideas at python.org> wrote:
>
> Also -- seems kind of odd to raise a KeyError when the key IS there?!?

class DuplicateKeyError(LookupError): pass

Problem solved :)

ChrisA


More information about the Python-ideas mailing list