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

Function all_strings

numpy/distutils/misc_util.py:490–495  ·  view source on GitHub ↗

Return True if all items in lst are string objects.

(lst)

Source from the content-addressed store, hash-verified

488 return isinstance(s, str)
489
490def all_strings(lst):
491 """Return True if all items in lst are string objects. """
492 for item in lst:
493 if not is_string(item):
494 return False
495 return True
496
497def is_sequence(seq):
498 if is_string(seq):

Callers 1

is_sequence_of_stringsFunction · 0.90

Calls 1

is_stringFunction · 0.85

Tested by

no test coverage detected