Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58207

"Backward"-Iterator - Beginners question

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 <ml@fam-goebel.de>
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 <ml@fam-goebel.de>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0
MIME-Version 1.0
To Python <python-list@python.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1892.1383255282.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

"Backward"-Iterator - Beginners question Ulrich Goebel <ml@fam-goebel.de> - 2013-10-31 22:29 +0100
  Re: "Backward"-Iterator - Beginners question Bernd Nawothnig <Bernd.Nawothnig@t-online.de> - 2013-10-31 23:23 +0100

csiph-web