1
2 """ This module implements the base class for almost everything"""
3
4
6 """
7 """
8
10 """
11 """
12 self.name = name
13 self.description = descr
14 self.attributes = {}
15
17 """
18 """
19 if self.description is None:
20 return self.name
21 return "{}({})".format(self.name, self.description)
22
23 - def get(self, attribute):
24 """
25 """
26 if attribute in self.attributes:
27 return self.attributes[attribute]
28 return None
29
30 - def set(self, attribute, value):
31 """
32 """
33 self.attributes[attribute] = value
34