Ben Finney <bignose+hates-s...@benfinney.id.au> writes: > You can override the behaviour of a class by defining a subclass. > > class UntouchableTypeWrapper(UntouchableType): > > def _foo_get(self): > return str(self.foo) > > foo = property(_foo_get)
Which, I realise now, won't work (and I didn't test it). But hopefully the idea is clear. -- \ “Pinky, are you pondering what I'm pondering?” “I think so, | `\ Brain, but if we have nothing to fear but fear itself, why does | _o__) Elanore Roosevelt wear that spooky mask?” —_Pinky and The Brain_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list