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 -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:[EMAIL PROTECTED] _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )