MCPcopy Index your code
hub / github.com/RustPython/RustPython / slot_setattro

Method slot_setattro

crates/vm/src/builtins/object.rs:366–373  ·  view source on GitHub ↗
(
        obj: &PyObject,
        attr_name: &Py<PyStr>,
        value: PySetterValue,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

364
365 #[pyslot]
366 pub(crate) fn slot_setattro(
367 obj: &PyObject,
368 attr_name: &Py<PyStr>,
369 value: PySetterValue,
370 vm: &VirtualMachine,
371 ) -> PyResult<()> {
372 obj.generic_setattr(attr_name, value, vm)
373 }
374
375 /// Return str(self).
376 #[pyslot]

Callers

nothing calls this directly

Calls 1

generic_setattrMethod · 0.80

Tested by

no test coverage detected