Interest check in some delicious syntactic sugar for "except:pass"

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Mar 4 12:59:27 CET 2010


Oren Elrad a écrit :
> 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
> 

Hopefully not.

> 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.

s/do not need to be/NEVER should have been at first/






More information about the Python-list mailing list