Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

> Augmented assignment behaves identically to the update method called with a 
> single positional argument, so it also accepts anything implementing the 
> Mapping protocol (more specifically, anything with the keys and __getitem__ 
> methods) or iterables of key-value pairs. This is analogous to list += and 
> list.extend, which accept any iterable, not just lists. Continued from above:

Couldn't link to the specific part but the rationale is explained at 
https://www.python.org/dev/peps/pep-0584/#specification

----------
nosy: +xtreak -serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39806>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to