4 ms·The exec Statement and A Python Mystery12 points by dcrosta 14y agocomex 14y agoNote also that the behavior changed in Python 3: exec is now a function, and changes to locals made through exec won't show up in the original scope.dcrosta 14y agoThanks -- I updated the post with a note about Py3k.