[Python-checkins] r42943 - peps/trunk/pep-0352.txt

andrew.kuchling python-checkins at python.org
Thu Mar 9 19:22:06 CET 2006


Author: andrew.kuchling
Date: Thu Mar 9 19:22:01 2006
New Revision: 42943
Modified:
 peps/trunk/pep-0352.txt
Log:
Various edits to improve sentences
Modified: peps/trunk/pep-0352.txt
==============================================================================
--- peps/trunk/pep-0352.txt	(original)
+++ peps/trunk/pep-0352.txt	Thu Mar 9 19:22:01 2006
@@ -17,11 +17,11 @@
 In Python 2.4 and before, any (classic) class can be raised as an
 exception. The plan is to allow new-style classes starting in Python
 2.5, but this makes the problem worse -- it would mean *any* class (or
-instance) can be raised (this is not the case in the final version;
+instance) can be raised! (This is not the case in the final version;
 only built-in exceptions can be new-style which means you need to
 inherit from a built-in exception to have user-defined exceptions also
-by new-style)! This is a problem since it
-prevents any guarantees to be made about the interface of exceptions.
+be new-style) This is a problem because it
+prevents any guarantees from being made about the interface of exceptions.
 This PEP proposes introducing a new superclass that all raised objects
 must inherit from. Imposing the restriction will allow a standard
 interface for exceptions to exist that can be relied upon.
@@ -159,8 +159,7 @@
 SystemExit has been moved for similar reasons. Since the exception is
 raised when ``sys.exit()`` is called the interpreter should normally
 be allowed to terminate. Unfortunately overly broad ``except``
-clauses can prevent the exit to occur which had been explicitly
-requested.
+clauses can prevent the explicitly requested exit from occurring.
 
 To make sure that people catch Exception most of the time, various
 parts of the documentation and tutorials will need to be updated to


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /