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

Yuval Greenfield ubershmekel at gmail.com
Mon Jun 4 19:02:19 EDT 2018

On Mon, Jun 4, 2018 at 3:58 PM George Leslie-Waksman <waksman at gmail.com>

> Semantically, I'm not sure append and extend would be universally
> understood to mean don't overwrite.
The proposed meanings surprised me too. My initial instinct for
`dict.append` was that it would always succeed, much like `list.append`
always succeeds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180604/f07dcebd/attachment.html>

More information about the Python-ideas mailing list