Slight irritation with try/finally indentation
Mikko Rantalainen
mira at st.jyu.fi
Fri May 3 19:39:44 EDT 2002
David C. Ullrich wrote:
> On 24 Apr 2002 10:14:45 -0400, pinard at iro.umontreal.ca
> (=?iso-8859-1?q?Fran=E7ois?= Pinard) wrote:
>
> [...]
>
>> [...]
>> setup()
>> try:
>> process()
>> finally:
>> cleanup()
>> [...]
>>
>>What I find irritating is that `cleanup()' is not aligned anymore with
>>`setup()', as it was originally, so we loose on the legibility of the
>>parenthetical idiom we wanted to stress.
Why not the following?
try:
setup()
process()
finally:
cleanup()
--
Mikko
More information about the Python-list
mailing list