Carl Banks wrote:
I wouldn't say that the possibility of EAFP in Python makes it obsolute to use LBYL.
when using CPython, EAFP at the Python level always involve LBYL at the C level. and it should be obvious to any programmer that checking for the same thing twice is quite often a waste of time and resources.
</F> -- http://mail.python.org/mailman/listinfo/python-list