Presence autoload in Python 3.x?
Similar feature as:
function __autoload(UndefinedClass)
{
include 'l开发者_JS百科ibrary/'.UndefinedClass.'.php';
}
?>
Python package = _init.py, BIOS=MBR, C++= STIL or templates, PHP5 = autoload, but python 3.x ?
No, there is no such feature, because you don't need it. If you want to not import a module until it's needed, then you just import it when it's needed. If you want to avoid circular imports, you do pretty much the same thing.
There, now this question has an answer. :-)
精彩评论