(vm: &VirtualMachine, zelf: &PyObject, operation: &str)
| 204 | } |
| 205 | |
| 206 | fn _unsupported<T>(vm: &VirtualMachine, zelf: &PyObject, operation: &str) -> PyResult<T> { |
| 207 | Err(new_unsupported_operation( |
| 208 | vm, |
| 209 | format!("{}.{}() not supported", zelf.class().name(), operation), |
| 210 | )) |
| 211 | } |
| 212 | |
| 213 | #[derive(FromArgs)] |
| 214 | pub(super) struct OptionalSize { |