[Python-ideas] try-else without except or finally
Antoine Pitrou
solipsis at pitrou.net
Tue Nov 15 00:18:18 CET 2011
On Tue, 15 Nov 2011 08:38:40 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 11/15/11, Chris Kaynor <ckaynor at zindagigames.com> wrote:
> > On Mon, Nov 14, 2011 at 11:34 AM, Matt Joiner <anacrolix at gmail.com> wrote:
> >> So I maintain that the else block could be made allowable even without
> >> an except block, but it would be purely for convenience. I don't think
> >> it's worth it anymore.
> >
> > While it is redundant to allow else without except, I would agree that
> > it should be allowed for the same reason that else is allowed on for
> > and while without a break. The alternative would be to make the later
> > illegal. Either seems reasonable, however the former maintains
> > backwards compatibility, while the later breaks it.
>
> This change is *not going to happen*. Guido said drop it. Every core
> developer in the conversation said drop it. Please let the thread die
> already.
What Nick said!
Regards
Antoine.
More information about the Python-ideas
mailing list