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/2002-June/024908.html below:

[Python-Dev] intra-package mutual imports fail: "from <pkg> import <mod>"

[Python-Dev] intra-package mutual imports fail: "from <pkg> import <mod>" [Python-Dev] intra-package mutual imports fail: "from <pkg> import <mod>"Matthias Urlichs smurf@noris.de
Sun, 2 Jun 2002 18:05:37 +0200
Hi,

Gisle Aas:
> Perl doesn't add references to names.  It imports direct reference as
> well.

What I meant to say was: Perl shares the actual symbol table slot when you
import something; so a later reassignment to the variable in question will
affect every module.

Python doesn't have that additional indirection.

> In Perl this works because we at import time know if we are importing
> a variable (and what kind) or a function, and later assignments to
> variables or redefinitions of functions mutate the object in-place.
> 
... which is essentially a different way to state the same thing. ;-)

-- 
Matthias Urlichs     |     noris network AG     |     http://smurf.noris.de/




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