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

Class PyBytes

src/objects/string.rs:40–40  ·  view source on GitHub ↗

Represents a Python byte string. Corresponds to `str` in Python 2, and `bytes` in Python 3.

Source from the content-addressed store, hash-verified

38/// Represents a Python byte string.
39/// Corresponds to `str` in Python 2, and `bytes` in Python 3.
40pub struct PyBytes(PyObject);
41
42pyobject_newtype!(PyBytes, PyBytes_Check, PyBytes_Type);
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected