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

Method get_fd

crates/vm/src/stdlib/_io.rs:5684–5687  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

5682 }
5683
5684 fn get_fd(&self, vm: &VirtualMachine) -> PyResult<crt_fd::Borrowed<'_>> {
5685 self.fileno(vm)
5686 .map(|fd| unsafe { crt_fd::Borrowed::borrow_raw(fd) })
5687 }
5688
5689 #[pymethod]
5690 fn readable(&self, vm: &VirtualMachine) -> PyResult<bool> {

Callers 7

readMethod · 0.80
readintoMethod · 0.80
writeMethod · 0.80
seekableMethod · 0.80
seekMethod · 0.80
tellMethod · 0.80
truncateMethod · 0.80

Calls 2

mapMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected