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 Pavol Lisy
Recipients Pavol Lisy, THRlWiTi, Victor.Varvariuc, barry, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2017-04-20.00:41:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492648892.68.0.781999517231.issue30024@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe I am wrong but don't we get another weird behavior? 

   import sys.path  # this is error now
   ModuleNotFoundError: No module named 'sys.path'; 'sys' is not a package

So we probably expect same behavior here:

   import sys.path as foo

But if we just replace LOAD_ATTR with IMPORT_FROM in the compiler then wouldn't it works like:

   from sys import path as foo

?
History
Date User Action Args
2017-04-20 00:41:32Pavol Lisysetrecipients: + Pavol Lisy, barry, brett.cannon, ncoghlan, THRlWiTi, eric.snow, serhiy.storchaka, Victor.Varvariuc
2017-04-20 00:41:32Pavol Lisysetmessageid: <1492648892.68.0.781999517231.issue30024@psf.upfronthosting.co.za>
2017-04-20 00:41:32Pavol Lisylinkissue30024 messages
2017-04-20 00:41:31Pavol Lisycreate