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

2012-06-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

2012-06-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-02-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-09-12 Thread Marien Zwart
Marien Zwart m_zw...@123mail.org 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

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

2010-08-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Since there has been no feedback, you could write a patch to get the discussion going. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8652

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

2010-05-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-05-07 Thread Marien Zwart
New submission from Marien Zwart m_zw...@123mail.org: 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