[Python-Dev] variable name resolution in exec is incorrect

Colin H hawkett at gmail.com
Wed May 26 11:15:02 CEST 2010


Hi,

   issue991196 was closed being described as intentional.  I've added
a comment in that issue which argues that this is a serious bug (also
aserted by a previous commenter - Armin Rigo), because it creates a
unique, undocumented, oddly behaving scope that doesn't apply closures
correctly. At the very least I think this should be acknowledged as a
plain old bug (rather than a feature), and then a discussion about
whether it will be fixed or not.  Appreciate your thoughts - cheers,

Colin


More information about the Python-Dev mailing list