MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / PyUnicodeFromString

Function PyUnicodeFromString

pkg/filament/cpython/string.go:31–35  ·  view source on GitHub ↗

PyUnicodeFromString creates the Python Unicode object from the Go string.

(s string)

Source from the content-addressed store, hash-verified

29
30// PyUnicodeFromString creates the Python Unicode object from the Go string.
31func PyUnicodeFromString(s string) *PyObject {
32 u := C.CString(s)
33 defer C.free(unsafe.Pointer(u))
34 return &PyObject{rawptr: C.PyUnicode_FromString(u)}
35}

Callers 7

dict.goFile · 0.92
newEventDictFunction · 0.92
AddPythonPathFunction · 0.85
TestDictFunction · 0.85
NewPyObjectFromValueFunction · 0.85
TestModuleRegisterFnFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestDictFunction · 0.68
TestModuleRegisterFnFunction · 0.68