Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105001 > unrolled thread
| Started by | "Sven R. Kunze" <srkunze@mail.de> |
|---|---|
| First post | 2016-03-16 11:36 +0100 |
| Last post | 2016-03-16 11:36 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: empty clause of for loops "Sven R. Kunze" <srkunze@mail.de> - 2016-03-16 11:36 +0100
| From | "Sven R. Kunze" <srkunze@mail.de> |
|---|---|
| Date | 2016-03-16 11:36 +0100 |
| Subject | Re: empty clause of for loops |
| Message-ID | <mailman.188.1458124572.12893.python-list@python.org> |
On 16.03.2016 11:28, Joaquin Alzola wrote: > If len(my_iterable) is not 0: > for x in my_iterable: > # do > else: > # do something else I am sorry, I should have been more precise here. my_iterable is an iterator that's exhausted after a complete iteration and cannot be restored. It's furthermore too large to fit into memory completely. Best, Sven
Back to top | Article view | comp.lang.python
csiph-web