INNER CODE UNIT · Python

__lt__

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

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

        for node_key in sorted(self.children.keys()):
            node = self.children[node_key]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…