Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ asunicode
Function
asunicode
numpy/_utils/_conversions.py:9–12 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
7
8
9
def
asunicode(s):
10
if
isinstance(s, bytes):
11
return
s.decode(
'latin1'
)
12
return
str(s)
13
14
15
def
asbytes(s):
Callers
2
write_normal
Method · 0.90
build_module
Function · 0.90
Calls
1
decode
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…