I have copied this from what was used to determine equivalence (__eq__). If it's appropriate then this can be added. It would seem to me that it is intentional as the special case AnnotationWrapper class has overridden __eq__ to factor in self.getNs()