Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58207 > unrolled thread
| Started by | Ulrich Goebel <ml@fam-goebel.de> |
|---|---|
| First post | 2013-10-31 22:29 +0100 |
| Last post | 2013-10-31 23:23 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
"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
| From | Ulrich Goebel <ml@fam-goebel.de> |
|---|---|
| Date | 2013-10-31 22:29 +0100 |
| Subject | "Backward"-Iterator - Beginners question |
| Message-ID | <mailman.1892.1383255282.18130.python-list@python.org> |
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
[toc] | [next] | [standalone]
| From | Bernd Nawothnig <Bernd.Nawothnig@t-online.de> |
|---|---|
| Date | 2013-10-31 23:23 +0100 |
| Message-ID | <gs1bka-1fp.ln1@bernd.nawothnig.dialin.t-online.de> |
| In reply to | #58207 |
On 2013-10-31, Ulrich Goebel wrote: > 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). Simply write a class with these methods. Where is the problem? Bernd -- no time toulouse
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web