Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Interest check in some delicious syntactic sugar for "except:pass"
Chris Rebert
3/3/2010 10:25:00 AM
On Wed, Mar 3, 2010 at 1:27 AM, Oren Elrad <orenelrad@gmail.com> wrote:
> Howdy all, longtime appreciative user, first time mailer-inner.
>
> I'm wondering if there is any support (tepid better than none) for the
> following syntactic sugar:
>
> silence:
> ........ block
>
> ------------------------->
>
> try:
> ........block
> except:
> ........pass
>
> The logic here is that there are a ton of "except: pass" statements[1]
> floating around in code that do not need to be there.
So, why exactly should the language /encourage/ unnecessary error
silencing? (which is what the proposed sugar would do)
> I appreciate any feedback
Applicable rules of The Zen[1] that the proposal arguably violates:
*Special cases aren't special enough to break the rules.
*There should be one-- and preferably only one --obvious way to do it.
Cheers,
Chris
--
http://blog.re...
[1]:
http://www.python.org/dev/peps...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Interest check in some delicious syntactic sugar for "except:pass"
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password