MCPcopy Create free account
hub / github.com/goplus/py / newTuple

Function newTuple

tuple.go:18–20  ·  view source on GitHub ↗
(obj *C.PyObject)

Source from the content-addressed store, hash-verified

16var TupleType = (*Type)(unsafe.Pointer(&C.PyTuple_Type))
17
18func newTuple(obj *C.PyObject) *Tuple {
19 return (*Tuple)(unsafe.Pointer(obj))
20}
21
22// NewTuple returns a new *Tuple of the specified size. However the entries are
23// all set to NULL, so the tuple should not be shared, especially with Python

Callers 4

NewTupleFunction · 0.85
AsTupleFunction · 0.85
PackTupleFunction · 0.85
GetSliceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…