[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2012-06-07 Thread R. David Murray
R. David Murray added the comment: The Python3 tutorial was already fixed, and the explanation of the parens is not needed there since the "old syntax" is not supported. I did not do any reordering since the use of 'as' immediately follows in the text and seems to make fine sense as is. Actu

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2012-06-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset b873afe640e2 by R David Murray in branch '2.7': #8652: update errors tutorial. http://hg.python.org/cpython/rev/b873afe640e2 -- nosy: +python-dev ___ Python tracker __

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2011-02-09 Thread Éric Araujo
Éric Araujo added the comment: > Removes the two instances I noticed of treating exception instances as > sequences. Looks good. > Adds a warning explaining ``except FooException, BarException:`` does not do > what you might think. Ditto. > There are two things I'm not entirely happy about:

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2010-09-12 Thread Marien Zwart
Marien Zwart added the comment: Sorry for forgetting about this for so long. The attached patch makes the following changes: Removes the two instances I noticed of treating exception instances as sequences. This no longer works in python 3 and is not very useful in python 2, so best avoided.

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2010-08-24 Thread Éric Araujo
Éric Araujo added the comment: Since there has been no feedback, you could write a patch to get the discussion going. -- ___ Python tracker ___ _

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2010-05-14 Thread Éric Araujo
Éric Araujo added the comment: The older exception catching syntax should not be promoted but could be mentioned, I agree. Adding a paragraph explaining why it was changed would do the trick. Regarding the non-obviousness of which Python version the docs apply to, it is indeed mentioned on t

[issue8652] Minor improvements to the "Handling Exceptions" part of the tutorial

2010-05-07 Thread Marien Zwart
New submission from Marien Zwart : Based on questions asked on freenode's #python by people reading the tutorial I would like to suggest two improvements to http://docs.python.org/tutorial/errors.html#handling-exceptions : - Mention the older "except SomeException, e:" syntax too, not just "ex