Re: Bug in 0.9.6

Guido van Rossum (Guido.van.Rossum@cwi.nl)
Fri, 17 Apr 1992 16:24:00 +0200

>The only thing I've noticed so far is the use of the finally: clause. The
>documentation states that a finally: clause needs to be placed after all
>except statements, but python 0.9.6 won't accept a finally: clause at all if
>except statements exist.

This was a last-minute change to the grammar; in the previous version
a try clause could have both except clauses and a finally clause; in
the new version it can have only one of the two kinds. The reason for
the change is that it is both easier to explain and easier to
implement this way, and that the combination is rarely needed anyway.

I must admit that I haven't tried the python.py script for a long time
(since the Emacs python-mode.el has similar functionality); I'll fix
it for the next release.

Where in the docs did you see the old situation described? I'm pretty
sure the reference manual describes the new version.

--Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
"It has ceased to be"