Browse Source

Update codeobject.h

blueloveTH 2 năm trước cách đây
mục cha
commit
5e54967903
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      include/pocketpy/codeobject.h

+ 2 - 2
include/pocketpy/codeobject.h

@@ -203,7 +203,7 @@ struct Py_<Function> final: PyObject {
     Function _value;
     template<typename... Args>
     Py_(Type type, Args&&... args): PyObject(type), _value(std::forward<Args>(args)...) {
-        _enable_instance_dict();
+        // _enable_instance_dict();
     }
     void _obj_gc_mark() override {
         _value.decl->_gc_mark();
@@ -220,7 +220,7 @@ struct Py_<NativeFunc> final: PyObject {
     NativeFunc _value;
     template<typename... Args>
     Py_(Type type, Args&&... args): PyObject(type), _value(std::forward<Args>(args)...) {
-        _enable_instance_dict();
+        // _enable_instance_dict();
     }
     void _obj_gc_mark() override {
         if(_value.decl != nullptr){