Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75278 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2014-07-28 04:10 +1000 |
| Last post | 2014-07-28 04:10 +1000 |
| 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: complete brain fart, it doesn't loop Chris Angelico <rosuav@gmail.com> - 2014-07-28 04:10 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-07-28 04:10 +1000 |
| Subject | Re: complete brain fart, it doesn't loop |
| Message-ID | <mailman.12363.1406484657.18130.python-list@python.org> |
On Mon, Jul 28, 2014 at 4:07 AM, Peter Otten <__peter__@web.de> wrote: > By the way, Python has something similar to a function that temporarily > interrupts execution but preserves state. It's called generator. Yeah, but I have a suspicion his web framework (which he hasn't identified, but I suspect *any* web framework) won't be looking for a generator :) More likely, what he wants is to collect up the return values in a list, and then return ''.join() that list. ChrisA
Back to top | Article view | comp.lang.python
csiph-web