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 eric.snow
Recipients brett.cannon, dmalcolm, eric.snow, georg.brandl, pitrou, vstinner
Date 2012-08-09.22:53:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344552832.79.0.0900126028019.issue15610@psf.upfronthosting.co.za>
In-reply-to
Content
> Changing the macro's expansion would be good enough IMO.

Sounds good to me.

> PyImport_ImportModuleLevel() is part of the stable API...

From what I understand, as long as the function header has not changed, the stable ABI is still stable.

> Can't we just drop the check "level < 0"?

In Python 3 a negative value makes no sense, since there are no accommodations for implicit relative imports.  The fact that builtins.__import__() accommodated -1 still was an oversight that was corrected in 3.3.  Looks like this is just one bit that got missed.
History
Date User Action Args
2012-08-09 22:53:52eric.snowsetrecipients: + eric.snow, brett.cannon, georg.brandl, pitrou, vstinner, dmalcolm
2012-08-09 22:53:52eric.snowsetmessageid: <1344552832.79.0.0900126028019.issue15610@psf.upfronthosting.co.za>
2012-08-09 22:53:52eric.snowlinkissue15610 messages
2012-08-09 22:53:52eric.snowcreate