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

Function as_list

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

Source from the content-addressed store, hash-verified

507 return is_string(s) and ('*' in s or '?' in s)
508
509def as_list(seq):
510 if is_sequence(seq):
511 return list(seq)
512 else:
513 return [seq]
514
515def get_language(sources):
516 # not used in numpy/scipy packages, use build_ext.detect_language instead

Callers 1

__init__Method · 0.85

Calls 1

is_sequenceFunction · 0.85

Tested by

no test coverage detected