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 xiang.zhang
Recipients larry, xiang.zhang
Date 2016-04-22.08:43:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461314592.35.0.0784234136535.issue26825@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to a behaviour change. In 2.7, return ans compiles to LOAD_NAME so it can find ans. But in 3.x, it compiles to LOAD_GLOBAL which searches ans from global scope. I don't know when this change is introduced.
History
Date User Action Args
2016-04-22 08:43:12xiang.zhangsetrecipients: + xiang.zhang, larry
2016-04-22 08:43:12xiang.zhangsetmessageid: <1461314592.35.0.0784234136535.issue26825@psf.upfronthosting.co.za>
2016-04-22 08:43:12xiang.zhanglinkissue26825 messages
2016-04-22 08:43:12xiang.zhangcreate