1.1 --- a/simplify/simplified/program.py Sun Jul 29 01:51:44 2007 +0200
1.2 +++ b/simplify/simplified/program.py Sun Jul 29 01:53:25 2007 +0200
1.3 @@ -422,4 +422,15 @@
1.4 self.return_locals = set()
1.5 self.namespace = Namespace() # NOTE: Temporary.
1.6
1.7 + # NOTE: Logic similar to that below is used in simplify.fixinstances to
1.8 + # NOTE: identify equivalent attributes which are subprograms.
1.9 +
1.10 + """
1.11 + def __eq__(self, other):
1.12 + return self is other or \
1.13 + not getattr(self, "internal", 0) and not getattr(other, "internal", 0) and \
1.14 + getattr(self, "copy_of", self) is getattr(other, "copy_of", other) and \
1.15 + getattr(self, "paramtypes", None) == getattr(other, "paramtypes", None)
1.16 + """
1.17 +
1.18 # vim: tabstop=4 expandtab shiftwidth=4