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/2004-July/046498.html below:

[Python-Dev] Fix import errors to have data

[Python-Dev] Fix import errors to have data [Python-Dev] Fix import errors to have dataBarry Warsaw barry at python.org
Wed Jul 28 19:26:41 CEST 2004
On Wed, 2004-07-28 at 12:53, Guido van Rossum wrote:

> Um, importing a module is executing code.  

Oh sure!  (I didn't mean it in that sense ;).

> Defining a class or method
> is executing code.  Defining a module-global (or class) constant is
> executing code.  Initializing a module-global variable.  Etc.  Where
> do you draw the line?

Actually, I wouldn't draw the line implicitly, but instead explicitly,
but...

> I don't think this can reasonably done.  It would have to contain
> everything that's currently at module scope, which would defeat the
> purpose.

yah, you're probably right.  Bleh.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040728/400970c8/attachment.pgp
More information about the Python-Dev mailing list

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