Inline assignments

Jorge Godoy godoy at ieee.org
Thu Mar 9 11:17:47 EST 2006


Duncan Booth <duncan.booth at invalid.invalid> writes:

>  wrote:
>
>> Coming from a background that exposed me to far too many languages, I
>> find the latter two examples (i.e. use try/except) to be horrible
>> solutions.  It's not a matter of light/heavy weight, it's a matter of
>> using exceptions for normal loop flow control is a really bad idea.
>> 1)  I think it's less clear why the loop works
>> 2)  The possibility (in more complicated examples) that this could mask
>> a real exception (if for example, your function
>
> I'm waiting for the end of that sentence...

While in the loop to mount the list, there was an exception thrown.  I mean
raised. :-) ;-)


-- 
Jorge Godoy      <godoy at ieee.org>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.



More information about the Python-list mailing list