Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Interest check in some delicious syntactic sugar for "except:pass"
Tim Chase
3/3/2010 12:56:00 PM
Oren Elrad wrote:
> I'm wondering if there is any support (tepid better than none) for the
> following syntactic sugar:
>
> silence:
> ........ block
>
> ------------------------->
>
> try:
> ........block
> except:
> ........pass
The general response to "except: pass" from the Old Ones on the
python list (and those younger ones who tend to prescribe good
style) is a fairly immediate "don't use bare excepts". So
endorsing this "silence" syntax would be tantamount to condoning
bare excepts. I'm not sure you'll find much support.
http://www.google.com/search?q=site%3Amail.python.org+%22bare+...
(I've had problems with Google finding all posts to c.l.p on
m.p.o recently, so this may only be a recent representative sample)
-tkc
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