Skip to content
Snippets Groups Projects

Draft: New debug tree

Open Alexander Schlemmer requested to merge f-new-debug-tree into dev
7 files
+ 288
27
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -438,6 +438,15 @@ class Converter(object, metaclass=ABCMeta):
self.setup()
def get_dict(self):
"""
Return a dictionary containing all the attributes from this structure element.
This is used for the (new) debug tree.
"""
return {"name": self.name,
"type": str(type(self))[8:-2],
"definition": self.definition}
def setup(self):
"""
Analogous to `cleanup`. Can be used to set up variables that are permanently
Loading