This commit is contained in:
BLUELOVETH 2023-08-28 11:46:25 +08:00
parent 0ed2d8f3b1
commit 493c086ac3

View File

@ -247,7 +247,7 @@ namespace pkpy{
path = f_join(cpnts); path = f_join(cpnts);
} }
std::cout << "py_import(" << path.escape() << ")" << std::endl; // std::cout << "py_import(" << path.escape() << ")" << std::endl;
StrName name(path); // path to StrName StrName name(path); // path to StrName
@ -940,9 +940,8 @@ PyObject* VM::getattr(PyObject* obj, StrName name, bool throw_err){
return cls_var; return cls_var;
} }
if(is_non_tagged_type(obj, tp_module)){ // if(is_non_tagged_type(obj, tp_module)){
// try import and cache it! // }
}
if(throw_err) AttributeError(obj, name); if(throw_err) AttributeError(obj, name);
return nullptr; return nullptr;