From 5e5496790385dcf89a5d600f9e2b2ec4d761f1b4 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 10 Nov 2023 16:18:03 +0800 Subject: [PATCH] Update codeobject.h --- include/pocketpy/codeobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/codeobject.h b/include/pocketpy/codeobject.h index b2f9c168..7aed2355 100644 --- a/include/pocketpy/codeobject.h +++ b/include/pocketpy/codeobject.h @@ -203,7 +203,7 @@ struct Py_ final: PyObject { Function _value; template Py_(Type type, Args&&... args): PyObject(type), _value(std::forward(args)...) { - _enable_instance_dict(); + // _enable_instance_dict(); } void _obj_gc_mark() override { _value.decl->_gc_mark(); @@ -220,7 +220,7 @@ struct Py_ final: PyObject { NativeFunc _value; template Py_(Type type, Args&&... args): PyObject(type), _value(std::forward(args)...) { - _enable_instance_dict(); + // _enable_instance_dict(); } void _obj_gc_mark() override { if(_value.decl != nullptr){