MCPcopy Index your code
hub / github.com/numpy/numpy / _is_string_like

Function _is_string_like

numpy/lib/_iotools.py:38–46  ·  view source on GitHub ↗

Check whether obj behaves like a string.

(obj)

Source from the content-addressed store, hash-verified

36
37
38def _is_string_like(obj):
39 """
40 Check whether obj behaves like a string.
41 """
42 try:
43 obj + ''
44 except (TypeError, ValueError):
45 return False
46 return True
47
48
49def _is_bytes_like(obj):

Callers 3

drop_fieldsFunction · 0.90
savetxtFunction · 0.85
genfromtxtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…