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

Method set_command

numpy/distutils/fcompiler/__init__.py:270–278  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

268 self.set_command(k, v)
269
270 def set_command(self, key, value):
271 if not key in self._executable_keys:
272 raise ValueError(
273 "unknown executable '%s' for class %s" %
274 (key, self.__class__.__name__))
275 if is_string(value):
276 value = split_quoted(value)
277 assert value is None or is_sequence_of_strings(value[1:]), (key, value)
278 self.executables[key] = value
279
280 ######################################################################
281 ## Methods that subclasses may redefine. But don't call these methods!

Callers 3

set_executableMethod · 0.95
set_commandsMethod · 0.95
set_exeMethod · 0.95

Calls 2

is_stringFunction · 0.90
is_sequence_of_stringsFunction · 0.85

Tested by

no test coverage detected