[Python-ideas] Unpacking iterables for augmented assignment

James Lu jamtlu at gmail.com
Sun Aug 26 21:29:28 EDT 2018


[Kirill Balunov]

It may be worth taking a look at + and +=. However, the semantic
difference is due to the dunder add and dunder iadd methods-
necessary for supporting both mutable and immutable sequences. See my
earlier mail for discussion on this topic.

By the way,

> the absence of literals for `set` and `frozenset` types,
>
The literal for the set is {1, 2, 3, 4}.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180826/40248548/attachment.html>


More information about the Python-ideas mailing list