Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ str_encode
Function
str_encode
Lib/test/test_urlparse.py:1759–1760 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
1757
1758
1759
def
str_encode(s):
1760
return
s.encode(
'ascii'
)
1761
1762
def
tuple_encode(t):
1763
return
tuple(str_encode(x)
for
x in t)
Callers
9
test_roundtrips
Method · 0.85
test_roundtrips_normalization
Method · 0.85
test_http_roundtrips
Method · 0.85
test_unparse_parse
Method · 0.85
test_RFC2732
Method · 0.85
test_RFC2732_invalid
Method · 0.85
test_urldefrag
Method · 0.85
test_attributes_bad_port
Method · 0.85
tuple_encode
Function · 0.85
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected