MCPcopy 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
36def is_unicode(obj):
37 if sys.version_info[0] < 3:
38 return isinstance(obj, unicode)
39 else:
40 return isinstance(obj, str)
41
42
43def coerce_text(v):

Callers 3

__init__Method · 0.85
_reprMethod · 0.85
urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected