Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:

This proposal makes sense because it would make

import µTorrent

behave the same as

µTorrent = __import__('µTorrent')

However, I think this is a feature request and a language change because the 
current grammar is

import_stmt     ::=  "import" module ..
module          ::=  (identifier ".")* identifier

and in order to implement the proposed feature, "module" will have to become a 
separate AST node that won't be treated as identifier.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10952>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to