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

Method dump_properties

numpy/distutils/fcompiler/__init__.py:556–572  ·  view source on GitHub ↗

Print out the attributes of a compiler instance.

(self)

Source from the content-addressed store, hash-verified

554 self.set_libraries(self.get_libraries())
555
556 def dump_properties(self):
557 """Print out the attributes of a compiler instance."""
558 props = []
559 for key in list(self.executables.keys()) + \
560 ['version', 'libraries', 'library_dirs',
561 'object_switch', 'compile_switch']:
562 if hasattr(self, key):
563 v = getattr(self, key)
564 props.append((key, None, '= '+repr(v)))
565 props.sort()
566
567 pretty_printer = FancyGetopt(props)
568 for l in pretty_printer.generate_help("%s instance properties:" \
569 % (self.__class__.__name__)):
570 if l[:4]==' --':
571 l = ' ' + l[4:]
572 print(l)
573
574 ###################
575

Callers 1

show_fcompilersFunction · 0.80

Calls 3

printFunction · 0.85
keysMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected