Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
var
StringType = (*Type)(unsafe.Pointer(&C.PyString_Type))
15
16
func
newString(obj *C.PyObject) *String {
17
return
(*String)(unsafe.Pointer(obj))
18
}
19
20
func
NewString(s string) *String {
21
cs := C.CString(s)
Callers
3
NewString
Function · 0.85
AsString
Function · 0.85
Format
Method · 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…