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 serhiy.storchaka
Recipients brett.cannon, eric.snow, ncoghlan, pitrou, serhiy.storchaka
Date 2017-07-12.06:56:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499842584.92.0.616886913537.issue30876@psf.upfronthosting.co.za>
In-reply-to
Content
When backported issue30876 to 3.5 I found that the lines

        elif not package:
            raise ImportError('attempted relative import with no known parent '
                              'package')

don't exist in 3.5. They where added in issue26367, but only in the 3.6 branch. The original example in issue26367 still returns a module with a wrong name in 3.5.

Why issue26367 changes were applied to 3.5 only partially? I afraid that the absence of this check may interfere with removing SystemError.
History
Date User Action Args
2017-07-12 06:56:24serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, pitrou, eric.snow
2017-07-12 06:56:24serhiy.storchakasetmessageid: <1499842584.92.0.616886913537.issue30876@psf.upfronthosting.co.za>
2017-07-12 06:56:24serhiy.storchakalinkissue30876 messages
2017-07-12 06:56:24serhiy.storchakacreate