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-November/018531.html below:

[Python-Dev] Proposal for a modified import mechanism.

[Python-Dev] Proposal for a modified import mechanism. [Python-Dev] Proposal for a modified import mechanism.Gordon McMillan gmcm@hypernet.com
Sat, 10 Nov 2001 18:06:48 -0500
Prabhu wrote:

[Just singling out one section, since I've said plenty on this 
subject at other points in these threads]

[Prabhu works on knee.py]

> it also fixes a bug where the parent package is an extension
> module.

Python provides no support for an extension module being a 
package parent module. More precisely, I think the fact that 
an extension module can be made to behave like a package 
parent module is an accident. There is special code in import 
for modules named __init__, and the code is bypassed for 
extension modules.

I suspect you'd have to provide a pretty strong justification 
before this would become supported behavior.


- Gordon



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