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

Method __enter__

crates/stdlib/src/select.rs:729–732  ·  view source on GitHub ↗
(zelf: PyRef<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

727
728 #[pymethod]
729 fn __enter__(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
730 zelf.get_epoll(vm)?;
731 Ok(zelf)
732 }
733
734 #[pymethod]
735 fn __exit__(

Callers

nothing calls this directly

Calls 1

get_epollMethod · 0.80

Tested by

no test coverage detected