Explorar o código

Update codeobject.h

blueloveTH %!s(int64=2) %!d(string=hai) anos
pai
achega
5e54967903
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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){