[Python-Dev] syntax misfeature (exception)

Anthony Baxter anthony at interlink.com.au
Sun Jan 21 05:51:26 CET 2007


On Sunday 21 January 2007 05:17, Josiah Carlson wrote:
> Neal Becker <ndbecker2 at gmail.com> wrote:
> [snip]
>
> > It's not a question, it's a critique.  I believe this is a
> > misfeature since it's so easy to make this mistake.
>
> And it is going away with Py3k.  Making it go away for Python 2.6
> would either allow for two syntaxes to do the same thing, or
> would require everyone to change their except clauses.  Neither
> is very desireable (especially if writing code for 2.6 makes it
> not work for 2.5).

Note that we do plan to add "except a as b" to 2.6 - we're just not 
ripping out the old way of doing it.

Anthony
-- 
Anthony Baxter     <anthony at interlink.com.au>
It's never too late to have a happy childhood.


More information about the Python-Dev mailing list