[Python-Dev] Those import related syntax errors again...

Mark Hammond MarkH@ActiveState.com
Thu, 22 Feb 2001 09:55:34 +1100


[Thomas W]

> appologize) to reduce the impact of the incompatibility. I do not believe
> the ability to leave out the default-argument-hack (if you don't use
> import-*/exec in the same function) is worth all that.

Ironically, I _fixed_ my original problem by _adding_ a
default-argument-hack.  This meant my lambda no longer used a global name
but a local one.

Well, I think it ironic anyway :)

For the record, the only reason I had to use exec in that case was because
the "new" module is not capable creating a new method.  Trying to compile a
block of code with a "return" statement but no function decl (to create a
code object suitable for a method) fails at compile time.

Like-sands-through-the-hourglass ly,

Mark.