On 11/10/2013 19:41, Glenn Linderman wrote: > On 10/11/2013 10:19 AM, Eric V. Smith wrote: >> On 10/11/2013 12:43 PM, Barry Warsaw wrote: >>> On Oct 11, 2013, at 06:27 PM, Georg Brandl wrote: >>> >>>> Maybe to fit in with other verb-like APIs used as context managers: >>>> it's open() not opened(). >>> open() predates context managers, but maybe we need a new convention. >>> >>> with ignore(FileNotFoundError): >>> >>> vs >>> >>> with ignored(FileNotFoundError): >>> >>> To me anyway, the latter sounds better. >> I'm still -0, and maybe now -1 on the idea, mostly because it encourages >> an anti-pattern. >> >> But, to continue to paint the shed, shouldn't it be "ignoring", to match >> "closing"? > > Seriously, "with" is the wrong spelling for this using. It should be > > while ignorning(FileNotFoundError) > > Insistence on using "with" for the anti-pattern, and proper English, > would require: > > with ignorance_of(FileNotFoundError) > > :) > "Ignorance" means not knowing, but we _do_ know about FileNotFoundError. What we want is to ignore it.
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