Message275233
eg:
s = 'aaa'
print(s)
for s in '111', '222', '333':
print(s)
print(s)
the right result should be:
'aaa'
'111'
'222'
'333'
'aaa'
but, i got:
'aaa'
'111'
'222'
'333'
'333'
the local var in "for v in iter", modify the uplevel var value.
Is it wrong? |
|
Date |
User |
Action |
Args |
2016-09-09 02:15:37 | zaazbb | set | recipients:
+ zaazbb |
2016-09-09 02:15:37 | zaazbb | set | messageid: <1473387337.55.0.425238747247.issue28034@psf.upfronthosting.co.za> |
2016-09-09 02:15:37 | zaazbb | link | issue28034 messages |
2016-09-09 02:15:37 | zaazbb | create | |
|