Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100418
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Why is break allowed in finally, but continue is not? |
| Date | 2015-12-14 18:40 +0000 |
| Message-ID | <mailman.13.1450118447.14916.python-list@python.org> (permalink) |
| References | <b976659a-a7e0-40b4-b74b-2b3689e64d5c@googlegroups.com> <mailman.222.1450045698.12405.python-list@python.org> <c6ede47c-7e3e-4ef3-850c-4363fe936133@googlegroups.com> |
On 14/12/2015 17:37, Ned Batchelder wrote: > On Sunday, December 13, 2015 at 5:28:44 PM UTC-5, Ben Finney wrote: >> Ned Batchelder <ned@nedbatchelder.com> writes: >>> So why treat 'continue' specially? >> >> I am inclined to agree, but in the opposite direction: a case should be >> made for allowing *any* flow-control statement in an exception-handler's >> 'finally' clause. > > I agree, those all seem like bad ideas. But 'continue' has been singled > out for a SyntaxError. Rumor has it that continue was difficult to make > work at all, while the other keywords, while ill-advised, were at least > possible. > > --Ned. > Part of the rumour mill http://www.gossamer-threads.com/lists/python/dev/484210? This was referenced from the stackoverflow question that Ben Finney referred to yesterday. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Why is break allowed in finally, but continue is not? Ned Batchelder <ned@nedbatchelder.com> - 2015-12-13 13:10 -0800
Re: Why is break allowed in finally, but continue is not? Ben Finney <ben+python@benfinney.id.au> - 2015-12-14 09:27 +1100
Re: Why is break allowed in finally, but continue is not? Ned Batchelder <ned@nedbatchelder.com> - 2015-12-14 09:37 -0800
Re: Why is break allowed in finally, but continue is not? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-14 18:40 +0000
csiph-web