Eric Snow added the comment:

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

----------
nosy: +eric.snow

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to