INNER CODE UNIT · Python

__str__

KATRIN-Experiment/Kassiopeia · Scripts/gen-bindings-docs.py:55

    def __str__(self):
        return f"{self.name} = {self.xml_names}"

    def __lt__(self, other):
        return self.name < other.name

    """
    Procuces node documentation in simple ASCII format.
    """
    def pprint(self, level=0, stack=[], key=''):
        indent = level*'  '
        if not key and self.xml_names:
            key = list(self.xml_names)[0]

        #print(indent + f"{key} = {self.name}")  #  ({self.source_file})
        for attr_key in sorted(self.attributes.keys()):
            attr = self.attributes[attr_key]
            print(indent + f"{attr_key} = {attr.name}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…