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

Method fileno

crates/stdlib/src/select.rs:632–634  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

630
631 #[pymethod]
632 fn fileno(&self, vm: &VirtualMachine) -> PyResult<i32> {
633 self.get_epoll(vm).map(|epoll_fd| epoll_fd.as_raw_fd())
634 }
635
636 #[pyclassmethod]
637 fn fromfd(cls: PyTypeRef, fd: OwnedFd, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {

Callers

nothing calls this directly

Calls 3

get_epollMethod · 0.80
mapMethod · 0.45
as_raw_fdMethod · 0.45

Tested by

no test coverage detected