Author serhiy.storchaka
Recipients Julian.Gindi, Tim.Graham, berker.peksag, bignose, brett.cannon, davidszotten@gmail.com, eric.snow, ezio.melotti, ncoghlan, python-dev, rhettinger, serhiy.storchaka
Date 2017-10-25.05:41:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508910070.99.0.213398074469.issue21720@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think the index in error message is needed. Unlike to str.join() which accepts arbitrary iterables of arbitrary names, the fromlist usually is a short tuple.

Interesting, what happen if the fromlist is not a list or tuple?

>>> __import__('encodings', fromlist=iter(('aliases', b'codecs')))
<module 'encodings' from '/home/serhiy/py/cpython/Lib/encodings/__init__.py'>

Import is successful because the iterator was exhausted by "'*' in fromlist".
History
Date User Action Args
2017-10-25 05:41:11serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, rhettinger, ncoghlan, ezio.melotti, bignose, python-dev, eric.snow, berker.peksag, Julian.Gindi, davidszotten@gmail.com, Tim.Graham
2017-10-25 05:41:10serhiy.storchakasetmessageid: <1508910070.99.0.213398074469.issue21720@psf.upfronthosting.co.za>
2017-10-25 05:41:10serhiy.storchakalinkissue21720 messages
2017-10-25 05:41:10serhiy.storchakacreate