(zelf: &Py<Self>, vm: &VirtualMachine)
| 829 | |
| 830 | impl Representable for PyFuture { |
| 831 | fn repr_str(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<String> { |
| 832 | let class_name = zelf.class().name().to_string(); |
| 833 | if let Some(_guard) = ReprGuard::enter(vm, zelf.as_object()) { |
| 834 | let info = get_future_repr_info(zelf.as_object(), vm)?; |
| 835 | Ok(format!("<{} {}>", class_name, info)) |
| 836 | } else { |
| 837 | Ok(format!("<{} ...>", class_name)) |
| 838 | } |
| 839 | } |
| 840 | } |
| 841 | |
| 842 | impl Iterable for PyFuture { |
nothing calls this directly
no test coverage detected