MCPcopy 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
9def asunicode(s):
10 if isinstance(s, bytes):
11 return s.decode('latin1')
12 return str(s)
13
14
15def asbytes(s):

Callers 2

write_normalMethod · 0.90
build_moduleFunction · 0.90

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…