On Sat, 22 Feb 2014 21:09:07 +1100 Chris Angelico <rosuav at gmail.com> wrote: > On Sat, Feb 22, 2014 at 8:58 PM, Antoine Pitrou <solipsis at pitrou.net> wrote: > > On Sat, 22 Feb 2014 20:29:27 +1100 > > Chris Angelico <rosuav at 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. > > But would it be sufficiently easier to justify the creation of a > built-in? Well, can you propose the corresponding except-expression? Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4