[Python-Dev] python3k : imp.find_module raises SyntaxError (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Dec 1 11:22:42 CET 2010
- Previous message: [Python-Dev] python3k : imp.find_module raises SyntaxError
- Next message: [Python-Dev] python3k : imp.find_module raises SyntaxError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
-- Greg
- Previous message: [Python-Dev] python3k : imp.find_module raises SyntaxError
- Next message: [Python-Dev] python3k : imp.find_module raises SyntaxError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]