Message167849
| 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. |
|