mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
5ecd59f11c
commit
8b155ff95c
@ -941,7 +941,7 @@ PyObject* VM::getattr(PyObject* obj, StrName name, bool throw_err){
|
||||
}
|
||||
// handle instance __dict__
|
||||
if(!is_tagged(obj) && obj->is_attr_valid()){
|
||||
PyObject* val = obj->attr().try_get(name);
|
||||
PyObject* val = obj->attr().try_get_likely_found(name);
|
||||
if(val != nullptr) return val;
|
||||
}
|
||||
if(cls_var != nullptr){
|
||||
|
Loading…
x
Reference in New Issue
Block a user