From df82c82ddcff9a791dfa6722e7bcc2182761a391 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 15 Jun 2005 16:34:03 +0000 Subject: [PATCH] Withdraw 288 in favor of 343. --- pep-0000.txt | 4 ++-- pep-0288.txt | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pep-0000.txt b/pep-0000.txt index 9a841165d..06cb7835e 100644 --- a/pep-0000.txt +++ b/pep-0000.txt @@ -92,7 +92,6 @@ Index by Category S 284 Integer for-loops Eppstein, Ewing S 286 Enhanced Argument Tuples von Loewis I 287 reStructuredText Docstring Format Goodger - S 288 Generators Attributes and Exceptions Hettinger S 294 Type Names in the types Module Tirosh S 297 Support for System Upgrades Lemburg S 298 The Locked Buffer Interface Heller @@ -205,6 +204,7 @@ Index by Category SD 269 Pgen Module for Python Riehl SR 270 uniq method for list objects Petrone SR 271 Prefixing sys.path by command line option Giacometti + SR 288 Generators Attributes and Exceptions Hettinger SR 295 Interpretation of multiline string constants Koltsov SR 296 Adding a bytes Object Type Gilbert SR 308 If-then-else expression GvR, Hettinger @@ -330,7 +330,7 @@ Numerical Index SF 285 Adding a bool type GvR S 286 Enhanced Argument Tuples von Loewis I 287 reStructuredText Docstring Format Goodger - S 288 Generators Attributes and Exceptions Hettinger + SR 288 Generators Attributes and Exceptions Hettinger SF 289 Generator Expressions Hettinger I 290 Code Migration and Modernization Hettinger I 291 Backward Compatibility for Standard Library Norwitz diff --git a/pep-0288.txt b/pep-0288.txt index 25e45c9ad..db25c952b 100644 --- a/pep-0288.txt +++ b/pep-0288.txt @@ -3,7 +3,7 @@ Title: Generators Attributes and Exceptions Version: $Revision$ Last-Modified: $Date$ Author: python@rcn.com (Raymond D. Hettinger) -Status: Draft +Status: Withdrawn Type: Standards Track Created: 21-Mar-2002 Python-Version: 2.5 @@ -16,6 +16,14 @@ Abstract raising exceptions and sharing data with running generators. +Status + + This PEP is withdrawn. The exception raising mechanism was extended + and subsumed into PEP 343. The attribute passing capability + never built a following, did not have a clear implementation, + and did not have a clean way for the running generator to access + its own namespace. + Rationale @@ -49,7 +57,7 @@ Specification for Generator Attributes the reference. For example: def mygen(filename): - self = mygen.get_instance() + self = sys.get_generator() myfile = open(filename) for line in myfile: if len(line) < 10: