[Python-Dev] Re: [Python-checkins] CVS: python/dist/src Makefile.pre.in,1.14,1.15

Thomas Wouters thomas@xs4all.net
Mon, 12 Feb 2001 01:42:52 +0100

On Fri, Feb 09, 2001 at 02:22:20PM -0800, Jeremy Hylton wrote:

> Log Message:
> Relax the rules for using 'from ... import *' and exec in the presence
> of nested functions.  Either is allowed in a function if it contains
> no defs or lambdas or the defs and lambdas it contains have no free
> variables.  If a function is itself nested and has free variables,
> either is illegal.

Wow. Thank you, Jeremy, I'm very happy with that! It's even better than I
dared hope for, since it means *most* lambdas (the simple ones that don't
reference globals) won't break functions using 'from .. import *', and the
ones that do reference globals can be fixed by doing 'global_var=global_var'
in the lambda argument list ( -- maybe we should put that in the docs ?)

+1-on-suffering-fools-a-whole-release-before-punishing-them-for-it-ly y'rs,
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!