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

Method extract

src/objects/sequence.rs:244–246  ·  view source on GitHub ↗
(py: Python, obj: &'s PyObject)

Source from the content-addressed store, hash-verified

242 for<'a> T: FromPyObject<'a>,
243{
244 fn extract(py: Python, obj: &'s PyObject) -> PyResult<Self> {
245 extract_sequence(py, obj)
246 }
247}
248
249/// Uses the sequence protocol and converts each individual element

Callers 3

Calls 2

extract_sequenceFunction · 0.85

Tested by 3