Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'start-up': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '"if"': 0.16; 'none"': 0.16; 'out"': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'app': 0.19; 'sort': 0.21; "i've": 0.23; 'somewhere': 0.24; 'second': 0.24; 'am,': 0.27; 'embedded': 0.27; 'prevent': 0.27; 'question': 0.27; 'there.': 0.28; 'header:X-Complaints-To:1': 0.28; 'lines': 0.28; 'code': 0.31; 'url:home': 0.33; 'to:addr :python-list': 0.33; 'there': 0.35; 'received:org': 0.36; 'michael': 0.36; 'charset:us-ascii': 0.36; 'author': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'time,': 0.62; 'jul': 0.65; 'dennis': 0.91; 'rusi': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Python and Qt4 Designer Date: Mon, 16 Jul 2012 13:07:55 -0400 Organization: > Bestiaria Support Staff < References: <1bb0d4df-3937-4d5f-aedb-734e0c54eb85@f9g2000pbd.googlegroups.com> <500255BA.5080102@gmail.com> <5002782D.7080009@swing.be> <50041D83.5020103@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-106-193.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342458489 news.xs4all.nl 6860 [2001:888:2000:d::a6]:47006 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25427 On Mon, 16 Jul 2012 07:56:19 -0600, Michael Torrie declaimed the following in gmane.comp.python.general: > On 07/15/2012 01:58 AM, Vincent Vande Vyvre wrote: > > Rusi is not the op, and his question is about these lines > > > > app = None > > if ( not app ): > > Yeah that's a no-op. The original author of that code is clearly > confused there. > I've wondered if the original sample had been much larger at one time, and embedded in some sort of "auto-restart" loop (say, for a kiosk application). In that situation, one would perhaps want the "app = None" somewhere near the start to "wipe out" the previous GUI, and the "if" was as a guard to prevent a second start-up [if there were some other loop also in the code]. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/