Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ decode
Function
decode
IPython/utils/py3compat.py:17–19 ·
view source on GitHub ↗
(s, encoding=None)
Source
from the content-addressed store, hash-verified
15
16
17
def
decode(s, encoding=None):
18
encoding = encoding or DEFAULT_ENCODING
19
return
s.decode(encoding,
"replace"
)
20
21
def
encode(u, encoding=None):
22
encoding = encoding or DEFAULT_ENCODING
Callers
3
run
Method · 0.90
run_iptestall
Function · 0.90
cast_unicode
Function · 0.85
Calls
no outgoing calls
Tested by
2
run
Method · 0.72
run_iptestall
Function · 0.72