This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zaazbb
Recipients zaazbb
Date 2016-09-09.02:15:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473387337.55.0.425238747247.issue28034@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-09-09 02:15:37zaazbbsetrecipients: + zaazbb
2016-09-09 02:15:37zaazbbsetmessageid: <1473387337.55.0.425238747247.issue28034@psf.upfronthosting.co.za>
2016-09-09 02:15:37zaazbblinkissue28034 messages
2016-09-09 02:15:37zaazbbcreate