diff --git a/include/pocketpy/pocketpy.h b/include/pocketpy/pocketpy.h index 73f2445f..d2479a8e 100644 --- a/include/pocketpy/pocketpy.h +++ b/include/pocketpy/pocketpy.h @@ -203,7 +203,7 @@ void* py_touserdata(py_Ref); /// Get the type of the object. py_Type py_typeof(py_Ref self); -/// Get type by module and name. e.g. `py_gettype("time", "struct_time")`. +/// Get type by module and name. e.g. `py_gettype("time", py_name("struct_time"))`. /// Return `0` if not found. py_Type py_gettype(const char* module, py_Name name); /// Check if the object is exactly the given type. diff --git a/src/public/stack_ops.c b/src/public/stack_ops.c index 92b53709..4434a20a 100644 --- a/src/public/stack_ops.c +++ b/src/public/stack_ops.c @@ -21,9 +21,6 @@ py_Ref py_getdict(py_Ref self, py_Name name) { void py_setdict(py_Ref self, py_Name name, py_Ref val) { assert(self && self->is_ptr); - // if(py_isidentical(self, &pk_current_vm->main)){ - // printf("Setting main: %s\n", py_name2str(name)); - // } if(!py_ismagicname(name) || self->type != tp_type) { NameDict__set(PyObject__dict(self->_obj), name, *val); } else {