Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:192.168.178': 0.07; 'hallo,': 0.09; 'method,': 0.09; 'subject:question': 0.10; '120,': 0.16; 'goebel': 0.16; 'received:192.168.178.20': 0.16; 'example': 0.22; 'header:User-Agent:1': 0.23; '(for': 0.26; "i'm": 0.30; 'end,': 0.31; 'beginning': 0.33; 'but': 0.35; 'two': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'subject:"': 0.60; 'received:217': 0.63; 'directions,': 0.84; 'forward,': 0.84 Date: Thu, 31 Oct 2013 22:29:12 +0100 From: Ulrich Goebel User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Python Subject: "Backward"-Iterator - Beginners question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 31 Oct 2013 22:34:42 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383255283 news.xs4all.nl 15883 [2001:888:2000:d::a6]:47312 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58207 Hallo, I'm locking for an "iterator" type with not only the .next() method, but with a .previous(), .first() and .last() method, so that I can through it from the beginning or from the end, and in both directions, even alternately (for example two steps forward, one backward, two steps forward). Any help will be wellcome! Ulrich -- Ulrich Goebel Paracelsusstr. 120, 53177 Bonn