else in try/except

Grant Edwards invalid at invalid.invalid
Tue Nov 15 09:31:56 EST 2011


On 2011-11-15, Barry W Brown <brownbar at gmail.com> wrote:

> I thought that the point of the else clause is that it is reached
> only if there is no exception in the try clause.

Not really.  If that's all you wanted, then you just put the code at
the end of the try block.

-- 
Grant Edwards               grant.b.edwards        Yow! ... I see TOILET
                                  at               SEATS ...
                              gmail.com            



More information about the Python-list mailing list