Paddy 3118 wrote: > Hi, > I'd like extra opinions on this issue please: > http://bugs.python.org/issue3214 > > It's about changing the definition of Duck typing to remove hasattr and > leave just EAFP in the enablers - more detail is in the issue log. > The change seems to make sense. Use of hasattr() to determine method availability, while not strictly "look before you leap" because it doesn't test for a specific type, certainly isn't EAFP either. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
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