Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12443 > unrolled thread

Re: Returning a value from exec or a better solution

Started byRob Williscroft <rtw@rtw.me.uk>
First post2011-08-30 19:28 +0000
Last post2011-08-30 19:28 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Returning a value from exec or a better solution Rob Williscroft <rtw@rtw.me.uk> - 2011-08-30 19:28 +0000

#12443 — Re: Returning a value from exec or a better solution

FromRob Williscroft <rtw@rtw.me.uk>
Date2011-08-30 19:28 +0000
SubjectRe: Returning a value from exec or a better solution
Message-ID<mailman.578.1314732546.27778.python-list@python.org>
Ethan Furman wrote in news:4E5D29C8.8010206@stoneleaf.us in 
gmane.comp.python.general:

> 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.

http://docs.python.org/reference/simple_stmts.html#the-exec-statement

Rob.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web