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

Method as_integer_ratio

crates/vm/src/builtins/int.rs:520–522  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

518
519 #[pymethod]
520 fn as_integer_ratio(&self, vm: &VirtualMachine) -> (PyRef<Self>, i32) {
521 (vm.ctx.new_bigint(&self.value), 1)
522 }
523
524 #[pymethod]
525 fn bit_length(&self) -> u64 {

Callers

nothing calls this directly

Calls 1

new_bigintMethod · 0.80

Tested by

no test coverage detected