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-February/020533.html below:

[Python-Dev] PEP 273 - Import from Zip Archives

[Python-Dev] PEP 273 - Import from Zip Archives [Python-Dev] PEP 273 - Import from Zip ArchivesDavid Abrahams David Abrahams" <david.abrahams@rcn.com
Thu, 28 Feb 2002 11:45:59 -0500
----- Original Message -----
From: "Gordon McMillan" <gmcm@hypernet.com>

> That's not even part of import. import is done when it
> has [name1, name2, name3]. It's ceval.c that
> does the binding.

Yep, so I discovered.

> Sounds to me like you want to override __setitem__
> on the module's __dict__.

Not neccessarily, though that might be one approach. I might want to treat
explicit setting of attributes differently from an import.

> Tricky, 'cause a module
> is hardly in charge of its own __dict__.
>
> But if you see value in it, you'd better persue it
> now, because Jeremy's plans for optimization of
> module __dict__ will likely make things harder.

I thought this /was/ pursuing it. What did you have in mind?

-Dave




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