On Wed, Dec 1, 2010 at 8:22 PM, Greg Ewing <greg.ew...@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   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to