(zelf: &Py<Self>, mut args: FuncArgs, vm: &VirtualMachine)
| 70 | type Args = FuncArgs; |
| 71 | #[inline] |
| 72 | fn call(zelf: &Py<Self>, mut args: FuncArgs, vm: &VirtualMachine) -> PyResult { |
| 73 | if let Some(z) = &zelf.zelf { |
| 74 | // STATIC methods store the class in zelf for qualname/repr purposes, |
| 75 | // but should not prepend it to args (the Rust function doesn't expect it). |
| 76 | if !zelf.value.flags.contains(PyMethodFlags::STATIC) { |
| 77 | args.prepend_arg(z.clone()); |
| 78 | } |
| 79 | } |
| 80 | (zelf.value.func)(vm, args) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // meth_richcompare in CPython |
nothing calls this directly
no test coverage detected