Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:209.85.223': 0.03; 'startup': 0.05; 'scripts': 0.09; 'terminates': 0.09; 'subject:python': 0.11; 'sits': 0.16; 'wsgi': 0.16; 'zero,': 0.16; 'wrote:': 0.17; 'requests': 0.18; 'script': 0.24; 'header:In- Reply-To:1': 0.25; 'opposed': 0.27; 'message-id:@mail.gmail.com': 0.27; 'cgi': 0.29; 'returned': 0.30; 'gets': 0.32; 'to:addr :python-list': 0.33; 'likely': 0.33; 'received:google.com': 0.34; 'doing': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'really': 0.36; 'but': 0.36; 'october': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'application': 0.40; 'header:Received:5': 0.40; 'enable': 0.60; 'your': 0.60; 'response.': 0.67; 'responses': 0.93 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=TFnyNFY0u1NTVySP4q3hqAaKA9cCrXtKjjkFreLXfr0=; b=iqdFG1rnTYROsrzwif380xbOMngIHHXd01PiDBtuWBAb7wae1LWb+r4+UWvrU98GTR cQBlr8R/6rLt6qg8dAhloUHZWQRjegCy6urBUwLX5wJ2gu4Qf8/LxYetYLWBrijCYpkn VGleNWl/X3slBEdLuBjfKcbIBFb3KZ3EAYxjOqzyaMZOqdgJ5PklUxaEC9qcOcAQqfcv zCHmxqHe0zhpXb2YaXYTFMN5v/Y4Hdbj4N6JHiPamwgWGFjaXaHtLUdffgm3yd9P1mbD Kx2SzNc5KMx5yMSrDJSJQ/Ld2NAcG+ZIqjNM+VkUcIezu5EUMgw4E/kB+DRHrxpU0fqC 2aTQ== MIME-Version: 1.0 Sender: z@etiol.net X-Originating-IP: [190.104.24.46] In-Reply-To: <866debf5-4b07-4b93-b785-442b1b14e2e5@googlegroups.com> References: <98b7e362-14fd-4721-84c8-ae1bc11febac@googlegroups.com> <809c86c5-26a0-4f4a-bce7-ad8f63efa763@googlegroups.com> <866debf5-4b07-4b93-b785-442b1b14e2e5@googlegroups.com> From: Zero Piraeus Date: Thu, 18 Oct 2012 17:09:47 -0400 X-Google-Sender-Auth: VrwEVDSxrU81seLgmBP33GkyiR4 Subject: Re: python scripts for web To: python-list@python.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQktlw7glQ4aM9c9QWnGq1KrpRLssgKDxAn1nPZZZ6LTihozvBfEP2svQFXGFu/fHEteCbZ6 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350594610 news.xs4all.nl 6948 [2001:888:2000:d::a6]:34121 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31685 : On 18 October 2012 12:03, wrote: > yes, but as I have just answered to Zero, is using mod_wsgi a better strategy? WSGI would enable you to write a persistent application that sits around waiting for requests and returns responses for them as and when, as opposed to a simple CGI script that gets started each time a request comes in, and terminates once it's returned the response. So it's really about startup time - if your scripts are just doing something simple and quick, WSGI is likely overkill. -[]z.