Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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.063 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'processing.': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; '*any*': 0.16; '>on': 0.16; 'earlier.': 0.16; 'generator.': 0.16; 'preserves': 0.16; 'wrote:': 0.18; "hasn't": 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'mon,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'suggested': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; "i'm": 0.30; '(which': 0.31; 'framework': 0.33; 'table': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'collecting': 0.36; 'similar': 0.36; 'list.': 0.37; 'message-id:@gmail.com': 0.38; 'server': 0.38; 'list,': 0.38; 'called': 0.40; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'results': 0.69; 'jul': 0.74; '2014,': 0.84; 'otten': 0.84; 'suspicion': 0.84; 'url:apps': 0.91; 'state.': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:from:date:to:cc:message-id; bh=hnaMJD1cuu1we9SChAWtWjLg99EePFZO3Qjw+Ehi24s=; b=XCfRfQwvphxX7Eq+p8KBVk0KIIQz8KDfFwthmj/ASyVGR0xAc+wMOGyN1ZJOrV/yxh n1OG5Sje9WzdV1u7+zeJfFnKdIBC7JGJTaG2xeROWTPcSxxvjdnjEkBoMyI+SWMovKkJ NToi5zFsTSqp6a+2jVLreyiNGTW5VTS5/EP5vMkimxrbT7YjZLnr7ncq/B/oiauiIAtJ 4VX7ripNLI2i/ygKQ+Rm72vBb9sYVnGeEii26OiiORsztpMd6z2tlAsRDu0ek4LIo6Tm YVRxFq4DtXykDH5nxuPoK2hWkZbLm4lmF4OG2NnMAreJHb8hC3451fd/bI3dL0/s8yT0 z/jg== X-Received: by 10.112.198.161 with SMTP id jd1mr27852525lbc.56.1406488905537; Sun, 27 Jul 2014 12:21:45 -0700 (PDT) User-Agent: K-@ Mail for Android X-Priority: 3 In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----MROWK1PJW9CPX99F1L6XGG6U5DONSQ" Content-Transfer-Encoding: 8bit Subject: Re: complete brain fart, it doesn't loop From: Martin S Date: Sun, 27 Jul 2014 21:21:39 +0200 To: Chris Angelico Cc: python-list@python.org 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406488913 news.xs4all.nl 2946 [2001:888:2000:d::a6]:35877 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75288 ------MROWK1PJW9CPX99F1L6XGG6U5DONSQ Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 I'm using Bottle as suggested earlier. And yes, I'm collecting results from a html table passed to the server for processing. /martin On 27 Jul 2014, Chris Angelico wrote: >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 -- Sent with K-@ Mail - the evolution of emailing. ------MROWK1PJW9CPX99F1L6XGG6U5DONSQ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I'm using Bottle as suggested earlier.
And yes, I'm collecting results from a html table passed to the server for processing.

/martin

On 27 Jul 2014, Chris Angelico <rosuav@gmail.com> wrote:
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

-- Sent with K-@ Mail - the evolution of emailing. ------MROWK1PJW9CPX99F1L6XGG6U5DONSQ--