Definition.py
Go to the documentation of this file.
1 class Definition:
2  def __init__(self, name):
3  self.name = name
4  self.keys = []
5 
6  def addInfo(self, info):
7  self.keys = info.keys()
8  for key in info.keys():
9  setattr(self,key,info[key])
10 
11  def __repr__(self):
12  to_return = ""
13  to_return+= "def : --- %s"%self.name
14  for key in self.keys:
15  to_return += "\ndef : %s : %s"%(key,repr(getattr(self,key)))
16  return to_return
def __init__(self, name)
Definition: Definition.py:2
def addInfo(self, info)
Definition: Definition.py:6