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

Class PyLong

src/objects/num.rs:55–55  ·  view source on GitHub ↗

In Python 2.x, represents a Python `long` object. In Python 3.x, represents a Python `int` object. Both `PyInt` and `PyLong` refer to the same type on Python 3.x. You can usually avoid directly working with this type by using [ToPyObject](trait.ToPyObject.html) and [extract](struct.PyObject.html#method.extract) with the primitive Rust integer types.

Source from the content-addressed store, hash-verified

53/// and [extract](struct.PyObject.html#method.extract)
54/// with the primitive Rust integer types.
55pub struct PyLong(PyObject);
56pyobject_newtype!(PyLong, PyLong_Check, PyLong_Type);
57
58/// Represents a Python `float` object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected