Message111008
Alexander:
> When a is mutable, a += b updates it in-place, so there is no ambiguity: the type of a cannot change. When you do a + b, there is no reason to treat a as more deserving than b when selecting the type of the result
Does this means "a += b" is not the same as "a = a + b"? I'd think this can be seen as a pitfall for python. |
|
Date |
User |
Action |
Args |
2010-07-21 06:09:38 | ysj.ray | set | recipients:
+ ysj.ray, amaury.forgeotdarc, belopolsky, djc, eric.araujo |
2010-07-21 06:09:38 | ysj.ray | set | messageid: <1279692578.11.0.528380218473.issue9314@psf.upfronthosting.co.za> |
2010-07-21 06:09:36 | ysj.ray | link | issue9314 messages |
2010-07-21 06:09:36 | ysj.ray | create | |
|