This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: exception doc updates
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: mwh Nosy List: loewis, mwh
Priority: normal Keywords: patch

Created on 2005-03-03 18:57 by mwh, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
exceptions-stuff.diff mwh, 2005-03-03 18:57 mwh patch #1
exceptions-docs-2.diff mwh, 2005-03-04 10:21 mwh's patch #2
Messages (5)
msg47874 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-03-03 18:57
I was going to bang on the exception docs until I discovered that 
they are already somewhat out-of-date.  This updates the reference 
manual to describe exceptions with the presumption that class 
exceptions are the default, and string exceptions are subsidiary and 
deprecated.

I'll probably check this in soon unless someone complains :) 
msg47875 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-03-03 22:25
Logged In: YES 
user_id=21627

Overall, the patch looks fine. One note though:  in the
first chunk, what about the information that you can also
pass an object in the raise, in addition to the type?
msg47876 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-03-04 10:21
Logged In: YES 
user_id=6656

If you mean the "if it's an instance, then ..., if it's a
tuple then ... if it's anything else then..." stuff, that's
described in the section on raise, which is where it belongs
IMHO.  By the time the exception has been raised, it really
is described (conceptually, at least) by the instance.

I've rephrased the first affected paragraph a bit (attached).
msg47877 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-03-04 14:25
Logged In: YES 
user_id=21627

I see. This is fine; please apply.
msg47878 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-03-04 14:35
Logged In: YES 
user_id=6656

Done, in:

ref4.tex revision 1.38
ref7.tex revision 1.43
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41646
2005-03-03 18:57:01mwhcreate