fix a bug

This commit is contained in:
BLUELOVETH 2023-05-28 23:05:32 +08:00
parent f8ce2e3849
commit 59c6252503

View File

@ -335,6 +335,17 @@ struct Py_<BoundMethod> final: PyObject {
}
};
template<>
struct Py_<Property> final: PyObject {
Property _value;
void* value() override { return &_value; }
Py_(Type type, Property val): PyObject(type), _value(val) {}
void _obj_gc_mark() override {
OBJ_MARK(_value.getter);
OBJ_MARK(_value.setter);
}
};
template<>
struct Py_<Slice> final: PyObject {
Slice _value;