Returning a value from exec or a better solution
rtw at rtw.me.uk
Tue Aug 30 21:28:52 CEST 2011
Ethan Furman wrote in news:4E5D29C8.8010206 at stoneleaf.us in
> Jack Trades wrote:
>> On Tue, Aug 30, 2011 at 2:37 AM, Rob Williscroft wrote:
>>> If an impementation (as you say up thread) can populate globals
>>> or locals with whatever they want, then how do you know that last
>>> item added was the function definition the user supplied ?
> Because the implementation will add things before the exec is processed.
How do you know this ?, it isn't what the docs say.
More information about the Python-list