A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-August/017152.html below:

[Python-Dev] Putting a builtin module into a package

[Python-Dev] Putting a builtin module into a package [Python-Dev] Putting a builtin module into a packageSkip Montanaro skip@pobox.com (Skip Montanaro)
Tue, 21 Aug 2001 10:58:34 -0500
    Jack> Or should I rename the module to an underscore name and simply put
    Jack> a wrapper module in the package?

This seems the safest (and the sanest) to me.  I realize you're thinking
mostly about MacOS, but putting object files inside packages that are
otherwise Python code makes the whole package platform-dependent.  In
general, it would prevent system administrators from installing the
Lib/site-packages directory tree on a shared filesystem like NFS.  In your
package __init__.py file you might want to check for the existence of any
object modules and raise ImportError as early as possible.

Skip



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