diff --git a/lutin/heritage.py b/lutin/heritage.py index 0339f99..30a0b14 100644 --- a/lutin/heritage.py +++ b/lutin/heritage.py @@ -130,7 +130,9 @@ class HeritageList: append_to_list(self.src['src'], element.src['src']) append_to_list(self.src['dynamic'], element.src['dynamic']) append_to_list(self.src['static'], element.src['static']) - + + def __repr__(self): + return "{HeritageList:" + str(self.list_heritage) + "}" class heritage: def __init__(self, module, target): @@ -224,5 +226,8 @@ class heritage: if self.flags["c++-version"] > ver: ver = self.flags["c++-version"] self.flags["c++-version"] = ver + + def __repr__(self): + return "{Heritage:" + str(self.name) + " ... }" diff --git a/lutin/module.py b/lutin/module.py index d80aa6f..7354572 100644 --- a/lutin/module.py +++ b/lutin/module.py @@ -124,6 +124,9 @@ class Module: } self.sub_heritage_list = None + def __repr__(self): + return "{lutin.Module:" + str(self.name) + "}" + def get_type(self): return self.type ## diff --git a/lutin/system.py b/lutin/system.py index 2f327a2..da4477d 100644 --- a/lutin/system.py +++ b/lutin/system.py @@ -47,6 +47,8 @@ class System: else: self.action_on_state[name_of_state].append([level, name, action]) + def __repr__(self): + return "{lutin.System}"