Georg Brandl wrote:
The explanation is that everything that comes after "import" is thereafter usable as an identifier (or expression, in the case of dotted names) in code. ".mymodule" is not a valid expression, so the question would be how to refer to it.
I think a reasonable answer is that you should be able to refer to it simply as 'mymodule'. This may require treating it as a bit of a special case, but it would make intuitive sense. -- Greg _______________________________________________ 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