Message215573
> PS: Try being a bit more polite.
You could definitely do some research before posting erroneous
statements (this one isn't difficult to check, as Alex showed).
Especially when the other posters (Alex and Raymond) are a lot more
competent than you on the topic at hand.
If you actually try to *reason* about it, there is no other way for:
x[k] += <some_expr>
to work in the general case than to execute
x.__setitem__(k, x.__getitem__(k) + <some_expr>)
So, yes, the lookup is done twice, because it currently can't work
otherwise. |
|
Date |
User |
Action |
Args |
2014-04-04 22:18:12 | pitrou | set | recipients:
+ pitrou, rhettinger, terry.reedy, Arfrever, alex, serhiy.storchaka, josh.r |
2014-04-04 22:18:12 | pitrou | link | issue21101 messages |
2014-04-04 22:18:12 | pitrou | create | |
|