Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ is_unicode
Function
is_unicode
tools/npy_tempita/compat3.py:36–40 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
34
35
36
def
is_unicode(obj):
37
if
sys.version_info[0] < 3:
38
return
isinstance(obj, unicode)
39
else
:
40
return
isinstance(obj, str)
41
42
43
def
coerce_text(v):
Callers
3
__init__
Method · 0.85
_repr
Method · 0.85
url
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected