[Python-ideas] except expression

Paul Moore p.f.moore at gmail.com
Tue Feb 18 17:19:30 CET 2014


On 18 February 2014 15:27, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
> We must be able to specify the exception(s) to catch.  Otherwise the whole
> thing is pretty useless:
>
> MisspeltVariableName / x except "You divided by zero." # No you didn't, you
> raised a NameError.

Killer argument. You're right, absolutely.
Paul


More information about the Python-ideas mailing list