5 Oct
2002
5 Oct
'02
5:45 p.m.
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