Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove __get__ and __set__ pymethod
  • Loading branch information
youknowone committed Jan 1, 2026
commit e625cc8252c829b0ae8ebde1a4df271cb7c7b6fb
3 changes: 1 addition & 2 deletions crates/vm/src/builtins/getset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ impl PyGetSet {
)))
}
}
#[pymethod]
fn __set__(
zelf: PyObjectRef,
obj: PyObjectRef,
Expand All @@ -127,7 +126,7 @@ impl PyGetSet {
) -> PyResult<()> {
Self::descr_set(&zelf, obj, PySetterValue::Assign(value), vm)
}
#[pymethod]

fn __delete__(zelf: PyObjectRef, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
Self::descr_set(&zelf, obj, PySetterValue::Delete, vm)
}
Expand Down
3 changes: 1 addition & 2 deletions crates/vm/src/builtins/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ impl PyProperty {
}
}
}
#[pymethod]
fn __set__(
zelf: PyObjectRef,
obj: PyObjectRef,
Expand All @@ -134,7 +133,7 @@ impl PyProperty {
) -> PyResult<()> {
Self::descr_set(&zelf, obj, PySetterValue::Assign(value), vm)
}
#[pymethod]

fn __delete__(zelf: PyObjectRef, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
Self::descr_set(&zelf, obj, PySetterValue::Delete, vm)
}
Expand Down