Message 53549 - Python tracker
Logged In: YES user_id=21627 My concern is that the getattr call already creates a danger, since you just have to find a 'suitable' object whose __getattr__ does funny things. In the revised form, this object would also have to appear as the __class__ of some other object, so I guess this is pretty safe. I'll ask python-dev.