Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bgrimstad/splinter
/ get_c_string
Function
get_c_string
python/splinter/utilities.py:23–27 ·
view source on GitHub ↗
(py_string)
Source
from the content-addressed store, hash-verified
21
22
23
def
get_c_string(py_string):
24
if
is_python3():
25
return
c_char_p(py_string.encode(
"UTF-8"
))
26
else
:
27
return
c_char_p(py_string)
28
29
30
def
get_py_string(c_string):
Callers
3
save
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
Calls
1
is_python3
Function · 0.85
Tested by
no test coverage detected