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

Function is_sequence

numpy/distutils/misc_util.py:497–504  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

495 return True
496
497def is_sequence(seq):
498 if is_string(seq):
499 return False
500 try:
501 len(seq)
502 except Exception:
503 return False
504 return True
505
506def is_glob_pattern(s):
507 return is_string(s) and ('*' in s or '?' in s)

Callers 15

_fix_argsFunction · 0.90
setupFunction · 0.90
_check_append_libraryFunction · 0.90
CCompiler_spawnFunction · 0.90
gen_lib_optionsFunction · 0.90
get_pathsMethod · 0.90
_check_libsMethod · 0.90
_exec_commandFunction · 0.90
is_sequence_of_stringsFunction · 0.90
build_extensionMethod · 0.90

Calls 1

is_stringFunction · 0.85

Tested by

no test coverage detected