[Zope-dev] ZEO cache instrumentation -- any takers?

Florent Guillaume fg@nuxeo.com
Sat, 5 Oct 2002 17:45:33 +0000 (UTC)


Shane Hathaway  <shane@zope.com> wrote:
> > The idiom of putting this long stretch of code into and 'else' block
> > after the 'try' block is underused, and not just in Zope. I wonder
> > why?
> 
> I think it's because its syntax is out of order. :-)  Whenever I'm about 
> to write a "try...except...else" block, I really want to spell it 
> "try...else...except".  This places the exceptional situation after the 
> common situation, where it should be.

Yep, that's exactly what I was about to say.
(Not that I suggest changing the syntax either.)

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com