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

Method fromfd

crates/stdlib/src/select.rs:637–640  ·  view source on GitHub ↗
(cls: PyTypeRef, fd: OwnedFd, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

635
636 #[pyclassmethod]
637 fn fromfd(cls: PyTypeRef, fd: OwnedFd, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
638 let epoll_fd = Some(fd).into();
639 Self { epoll_fd }.into_ref_with_type(vm, cls)
640 }
641
642 #[pymethod]
643 fn register(

Callers 7

test_fromfdMethod · 0.80
testFromFdMethod · 0.80
_test_closefdsMethod · 0.80
test_queue_eventMethod · 0.80
send_handleFunction · 0.80
recv_handleFunction · 0.80
reduce_connectionFunction · 0.80

Calls 2

into_ref_with_typeMethod · 0.80
SomeClass · 0.50

Tested by 4

test_fromfdMethod · 0.64
testFromFdMethod · 0.64
_test_closefdsMethod · 0.64
test_queue_eventMethod · 0.64