Re:Facts and myths about Python names and values
by rflrob on Sunday July 14, 2013 @02:16PM
(#6041612)
uses the __iadd__ method, which almost certainly uses the exact same mechanism as the list.extend() method. When this method isn't defined (c.f. the Counter class from the collections module), a += b works like a = a + b.
[ Parent
| on HN ]
There are no comments on this comment yet.