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/2010-December/106223.html below:

[Python-Dev] python3k : imp.find_module raises SyntaxError

[Python-Dev] python3k : imp.find_module raises SyntaxError [Python-Dev] python3k : imp.find_module raises SyntaxErrorNick Coghlan ncoghlan at gmail.com
Wed Dec 1 11:39:47 CET 2010
On Wed, Dec 1, 2010 at 8:22 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Nick Coghlan wrote:
>
>> For the directory-as-module-not-package idea ...
>> you would need to be very careful with it,
>> since all the files would be sharing a common globals() namespace.
>
> One of the things I like about Python's module system
> is that once I know which module a name was imported
> from, I also know which file to look in for its
> definition. If a module can be spread over several
> files, that feature would be lost.

There are many potential problems with the idea, I just chose to
mention one of the ones that could easily make the affected code
*break* :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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