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
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
É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
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
É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
É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
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