Incredibly minor clarification.

This commit is contained in:
Michael W. Hudson 2005-06-03 09:32:57 +00:00
parent 235d1d29e2
commit 9893f796ea
1 changed files with 5 additions and 4 deletions

View File

@ -13,11 +13,12 @@ Introduction
After a lot of discussion about PEP 340 and alternatives, I After a lot of discussion about PEP 340 and alternatives, I
decided to withdraw PEP 340 and proposed a slight variant on PEP decided to withdraw PEP 340 and proposed a slight variant on PEP
310. After more discussion, I have added back a mechanism 310. After more discussion, I have added back a mechanism for
for raising an exception in a suspended generator using a throw() raising an exception in a suspended generator using a throw()
method, and a close() method which throws a new GeneratorExit method, and a close() method which throws a new GeneratorExit
exception; these additions were first proposed in [2] and exception; these additions were first proposed on python-dev in
universally approved of. I'm also changing the keyword to 'with'. [2] and universally approved of. I'm also changing the keyword to
'with'.
If this PEP is approved, the following PEPs will be rejected due If this PEP is approved, the following PEPs will be rejected due
to overlap: to overlap: