Interest check in some delicious syntactic sugar for "except:pass"
Rhodri James
rhodri at wildebst.demon.co.uk
Wed Mar 3 19:11:26 EST 2010
On Wed, 03 Mar 2010 09:27:16 -0000, Oren Elrad <orenelrad at 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
-100
This catches Control-C interrupts, sys.exit(), subtle typos in the code,
and sundry other errors that actually you *did* want to know about.
Silence isn't so much golden as pyritic.
--
Rhodri James *-* Wildebeeste Herder to the Masses
More information about the Python-list
mailing list