This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, vstinner
Date 2011-01-20.02:18:38
SpamBayes Score 1.3936352e-05
Marked as misclassified No
Message-id <1295489924.05.0.981148788417.issue10952@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-01-20 02:18:44belopolskysetrecipients: + belopolsky, vstinner
2011-01-20 02:18:44belopolskysetmessageid: <1295489924.05.0.981148788417.issue10952@psf.upfronthosting.co.za>
2011-01-20 02:18:38belopolskylinkissue10952 messages
2011-01-20 02:18:38belopolskycreate