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/2010-October/104611.html below:

[Python-Dev] Another relative imports question

[Python-Dev] Another relative imports question [Python-Dev] Another relative imports questionGreg Ewing greg.ewing at canterbury.ac.nz
Sat Oct 9 01:35:38 CEST 2010
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


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