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/2003-December/041193.html below:

[Python-Dev] Relative import

[Python-Dev] Relative import [Python-Dev] Relative importSkip Montanaro skip at pobox.com
Thu Dec 18 08:50:12 EST 2003
    Andrew> Or it can be fixed by not having the entire standard library at
    Andrew> the toplevel, but instead inside a single "stdlib" package.
    ...
    Andrew> The backwards compatibility problems probably means this isn't
    Andrew> feasible until Python 3.0, though :(

Not necessarily.  It has been proposed (more than once I think) that such a
stdlib package could be created in parallel using symlinks.  At its
simplest, I think all you'd need would be a stdlib directory, a nearly empty
__init__.py file and symlinks to all the current standard modules and
packages.  (The __init__.py file would take care of importing builtin
modules.)

I would choose a very short name for such a package ("std" seems best) even
though it might create clashes because it will be used a lot.

Skip


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