Re: [Python-Dev] syntax misfeature (exception)

2007-01-21 Thread Josiah Carlson
"Phillip J. Eby" <[EMAIL PROTECTED]> wrote: > > At 01:17 PM 1/20/2007, Josiah Carlson wrote: > > >Neal Becker <[EMAIL PROTECTED]> 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 go

Re: [Python-Dev] syntax misfeature (exception)

2007-01-21 Thread Phillip J. Eby
At 01:17 PM 1/20/2007, Josiah Carlson wrote: >Neal Becker <[EMAIL PROTECTED]> 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 all

Re: [Python-Dev] syntax misfeature (exception)

2007-01-20 Thread Anthony Baxter
On Sunday 21 January 2007 05:17, Josiah Carlson wrote: > Neal Becker <[EMAIL PROTECTED]> 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 > w

Re: [Python-Dev] syntax misfeature (exception)

2007-01-20 Thread Josiah Carlson
Neal Becker <[EMAIL PROTECTED]> 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 req

Re: [Python-Dev] syntax misfeature (exception)

2007-01-20 Thread Neal Becker
Georg Brandl wrote: > Neal Becker schrieb: >> I accidentally wrote: >> >> try: >> ... >> except a,b: >> >> rather than: >> >> try >> ... >> except (a,b): >> >> It appears that the 1st example syntax is silently accepted, but doesn't >> seem to work. Is this true? If so, I'd say it's a wart

Re: [Python-Dev] syntax misfeature (exception)

2007-01-20 Thread Georg Brandl
Neal Becker schrieb: > I accidentally wrote: > > try: > ... > except a,b: > > rather than: > > try > ... > except (a,b): > > It appears that the 1st example syntax is silently accepted, but doesn't > seem to work. Is this true? If so, I'd say it's a wart. Both have a meaning: The first ass

[Python-Dev] syntax misfeature (exception)

2007-01-20 Thread Neal Becker
I accidentally wrote: try: ... except a,b: rather than: try ... except (a,b): It appears that the 1st example syntax is silently accepted, but doesn't seem to work. Is this true? If so, I'd say it's a wart. ___ Python-Dev mailing list Python-Dev@