MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / overflow_error

Function overflow_error

src/objects/num.rs:330–332  ·  view source on GitHub ↗
(py: Python)

Source from the content-addressed store, hash-verified

328);
329
330fn overflow_error(py: Python) -> PyErr {
331 PyErr::new_lazy_init(py.get_type::<exc::OverflowError>(), None)
332}
333
334/// Conversion of Rust `f32` to Python `float`.
335impl ToPyObject for f32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected