INNER CODE UNIT · Python

__repr__

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

    def __repr__(self):
        return self.name

    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})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…