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

Method isatty

crates/vm/src/stdlib/_io.rs:485–488  ·  view source on GitHub ↗
(instance: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

483
484 #[pymethod]
485 fn isatty(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
486 check_closed(&instance, vm)?;
487 Ok(false)
488 }
489
490 #[pygetset]
491 fn closed(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 12

check_closedFunction · 0.85
io_closed_errorFunction · 0.85
isattyFunction · 0.85
try_to_boolMethod · 0.80
ErrClass · 0.50
cloneMethod · 0.45
lockMethod · 0.45
check_closedMethod · 0.45
call_methodMethod · 0.45
closedMethod · 0.45
filenoMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected