MCPcopy Create free account
hub / github.com/numpy/numpy / asunicode_nested

Function asunicode_nested

numpy/compat/py3k.py:77–81  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

75 return asbytes(x)
76
77def asunicode_nested(x):
78 if hasattr(x, '__iter__') and not isinstance(x, (bytes, unicode)):
79 return [asunicode_nested(y) for y in x]
80 else:
81 return asunicode(x)
82
83def is_pathlib_path(obj):
84 """

Callers

nothing calls this directly

Calls 1

asunicodeFunction · 0.70

Tested by

no test coverage detected