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

Method concat

src/objects/sequence.rs:49–53  ·  view source on GitHub ↗
(&self, py: Python, other: &PySequence)

Source from the content-addressed store, hash-verified

47 /// Return the concatenation of o1 and o2. Equivalent to python `o1 + o2`
48 #[inline]
49 pub fn concat(&self, py: Python, other: &PySequence) -> PyResult<PyObject> {
50 unsafe {
51 err::result_from_owned_ptr(py, ffi::PySequence_Concat(self.as_ptr(), other.as_ptr()))
52 }
53 }
54
55 /// Return the result of repeating sequence object o count times.
56 /// Equivalent to python `o * count`

Callers 2

test_seq_concatFunction · 0.80
test_seq_concat_stringFunction · 0.80

Calls 2

result_from_owned_ptrFunction · 0.85
as_ptrMethod · 0.45

Tested by 2

test_seq_concatFunction · 0.64
test_seq_concat_stringFunction · 0.64