Peter Otten wrote: > You would normally expect that you can turn off a flag by setting it to > False instead of deleting it -- which is also how the OP's code works. So I > would prefer > > assertion = getattr(callable, "is_assertion", False)
agreed (but note that the OP used a decorator to set the attribute, so you could consider it an implementation detail...) </F> -- http://mail.python.org/mailman/listinfo/python-list