Guido van Rossum wrote: >> This is similar to >> >> x = ([1], 2) >> x[0] += [2] >> >> which doesn't currently work either, though it could. > > No it couldn't. You can't assign to x[0]. L += R is defined as L = > L.__iadd__(R) so L must be a valid assignment target. > Thanks for making that clear. I actually had filed a bug about that behavior (http://python.org/sf/1436226), and from your comment to my proposed patch I inferred that the report was valid, only the patch wasn't. Cheers, Georg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4