A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-February/013077.html below:

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

[Python-Dev] Those import related syntax errors again... [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.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4