فهرست منبع

Update codeobject.h

blueloveTH 2 سال پیش
والد
کامیت
5e54967903
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      include/pocketpy/codeobject.h

+ 2 - 2
include/pocketpy/codeobject.h

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