From f2ac224b3f23537e022af4cab2b38dc2bec51659 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 6 Nov 2003 03:27:22 +0000 Subject: [PATCH] Take the __reversed__ protocol out of the pep. It's champions can argue their case elsewhere. Good luck to them. --- pep-0322.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pep-0322.txt b/pep-0322.txt index 2a008b50b..32bc1e560 100644 --- a/pep-0322.txt +++ b/pep-0322.txt @@ -94,17 +94,6 @@ The name *reverse* is not a candidate because it duplicates the name of the list.reverse() which mutates the underlying list. -Custom Reverse -============== - -Objects may optionally provide a *__reversed__* method that returns -a custom reverse iterator. - -This allows *reverse()* to be applied to objects that do not have -__getitem__() and __len__() but still have some useful way of -providing reverse iteration. - - Discussion ==========