From 5c42550605eb4e1185a944bd459d762dc36ee15c Mon Sep 17 00:00:00 2001 From: David Goodger Date: Sun, 15 May 2005 00:45:42 +0000 Subject: [PATCH] fixed typos --- pep-0343.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pep-0343.txt b/pep-0343.txt index 79c15a345..31154ff70 100644 --- a/pep-0343.txt +++ b/pep-0343.txt @@ -21,7 +21,7 @@ Motivation and Summary using generators as block templates, adding exception handling and finalization to generators, and more. Besides praise it received a lot of opposition from people who didn't like the fact that it - was, under the covers, a (optential) looping construct. This + was, under the covers, a (potential) looping construct. This meant that break and continue in a block-statement would break or continue the block-statement, even if it was used as a non-looping resource management tool. @@ -176,7 +176,7 @@ Specification If the "as VAR" part of the syntax is omitted, the "VAR =" part of the translation is omitted (but abc.__enter__() is still called). - The calling convention for abc.__exit__() is: as follows. If the + The calling convention for abc.__exit__() is as follows. If the finally-suite was reached through normal completion of BLOCK or through a non-local goto (a break, continue or return statement in BLOCK), abc.__exit__() is called with three None arguments. If @@ -190,9 +190,9 @@ Specification example must commit or roll back the transaction depending on whether an exception occurred or not. Rather than just having a boolean flag indicating whether an exception occurred, we pass the - complete exception information, for the benefor of an + complete exception information, for the benefit of an exception-logging facility for example. Relying on sys.exc_info() - to get att the exception information was rejected; sys.exc_info() + to get at the exception information was rejected; sys.exc_info() has very complex semantics and it is perfectly possible that it returns the exception information for an exception that was caught ages ago. It was also proposed to add an additional boolean to