# HG changeset patch # User Paul Boddie # Date 1211133566 -7200 # Node ID e83bc6d2e3b40e38dffa2d92e0fafa7f5bdaa855 # Parent dfeec8c157581987fefb4deeb6d3a49caec2ff5e Added parent attributes to instances of various classes, since certain situations cause such attributes to be tested. diff -r dfeec8c15758 -r e83bc6d2e3b4 micropython/data.py --- a/micropython/data.py Sun May 18 01:08:03 2008 +0200 +++ b/micropython/data.py Sun May 18 19:59:26 2008 +0200 @@ -280,6 +280,7 @@ def __init__(self, value): self.value = value + self.parent = None # Image generation details. @@ -800,6 +801,7 @@ NamespaceDict.__init__(self, global_namespace) self.name = name self.parent_name = parent_name + self.parent = None def all_class_attributes(self): return {} @@ -825,6 +827,7 @@ def __init__(self, name): NamespaceDict.__init__(self, self) self.name = name + self.parent = None # Original location details.