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


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

Re: Returning a value from exec or a better solution

Started byEthan Furman <ethan@stoneleaf.us>
First post2011-08-30 15:28 -0700
Last post2011-08-30 15:28 -0700
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 Ethan Furman <ethan@stoneleaf.us> - 2011-08-30 15:28 -0700

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

FromEthan Furman <ethan@stoneleaf.us>
Date2011-08-30 15:28 -0700
SubjectRe: Returning a value from exec or a better solution
Message-ID<mailman.587.1314742280.27778.python-list@python.org>
Rob Williscroft wrote:
> Arnaud Delobelle wrote:
>> That's not an issue. The last statement that is executed will be the
>> "def" statement.
> 
> You don't know that, an implementation may for example set __bultins__ 
> to None, prior to returning, its not an unreasonable thing to do and
> the docs don't say they can't.

Yet another excellent reason to have unit tests!

~Ethan~

[toc] | [standalone]


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


csiph-web