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

Function newString

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

Source from the content-addressed store, hash-verified

14var StringType = (*Type)(unsafe.Pointer(&C.PyString_Type))
15
16func newString(obj *C.PyObject) *String {
17 return (*String)(unsafe.Pointer(obj))
18}
19
20func NewString(s string) *String {
21 cs := C.CString(s)

Callers 3

NewStringFunction · 0.85
AsStringFunction · 0.85
FormatMethod · 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…