--To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9db016be-bc63-44b4-934c-7b2c64ae9863%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/K26vVvKWnTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
>>> class Bomb(object):
... def __getattr__(self, id):
... assert False
...
>>> bomb = Bomb()
>>> bomb.foo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 3, in __getattr__
AssertionError
>>> hasattr(bomb, 'foo')
False
Thankfully Python 3 fixes this. One more reason to switch, I guess.