Shane Hathaway  <[EMAIL PROTECTED]> 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 Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  mailto:[EMAIL PROTECTED]

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to