![](https://secure.gravatar.com/avatar/db5f70d2f2520ef725839f046bdc32fb.jpg?s=120&d=mm&r=g)
Feb. 22, 2014
9:58 a.m.
On Sat, 22 Feb 2014 20:29:27 +1100 Chris Angelico <rosuav@gmail.com> wrote:
Which means that, fundamentally, EAFP is the way to do it. So if PEP 463 expressions had existed from the beginning, hasattr() probably wouldn't have been written - people would just use an except-expression instead.
Really? hasattr() is much easier to write than the corresponding except-expression. Regards Antoine.