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

Method __str__

numpy/distutils/misc_util.py:1796–1807  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1794 raise ValueError("Don't know about key=%r" % (key))
1795
1796 def __str__(self):
1797 from pprint import pformat
1798 known_keys = self.list_keys + self.dict_keys + self.extra_keys
1799 s = '<'+5*'-' + '\n'
1800 s += 'Configuration of '+self.name+':\n'
1801 known_keys.sort()
1802 for k in known_keys:
1803 a = getattr(self, k, None)
1804 if a:
1805 s += '%s = %s\n' % (k, pformat(a))
1806 s += 5*'-' + '>'
1807 return s
1808
1809 def get_config_cmd(self):
1810 """

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected