Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: Condition fullfilled to early but only "sometimes" Date: Tue, 1 Mar 2016 00:48:58 -0700 Lines: 22 Message-ID: References: <11915658-6fcd-4f83-94ba-5f5dceb3af11@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de YoPEDiEPpH37k+JKOvc5FA/lOaCyb2Dnb93cDjpVc13w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'list?': 0.07; 'remaining': 0.07; 'get.': 0.09; 'subject:early': 0.09; 'violates': 0.09; 'bug': 0.10; 'python': 0.10; 'weird': 0.15; '2016': 0.16; 'pair.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'minor': 0.22; 'bit': 0.23; 'feb': 0.23; 'header:In-Reply- To:1': 0.24; 'mon,': 0.24; "i've": 0.25; 'connected': 0.27; 'message-id:@mail.gmail.com': 0.27; 'succeed': 0.29; 'url:se': 0.29; 'url:mailman': 0.30; 'creating': 0.30; 'code': 0.30; 'anyone': 0.32; 'maybe': 0.33; 'problem': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'clear': 0.35; 'fail': 0.35; 'asking': 0.35; 'sometimes': 0.35; 'but': 0.36; 'should': 0.36; 'instead': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'others.': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'expect': 0.37; 'received:209.85.213': 0.37; 'doing': 0.38; 'received:209': 0.38; 'someone': 0.38; 'mailing': 0.38; 'why': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'some': 0.40; 'your': 0.60; 'due': 0.65; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=e4pBdLVgLTltXq/RPLv36yLp60Nrcfb8ySxA/3FpFg0=; b=Ia9+hBYQmk05FzG7Xbef5rJrU7HCKBa8xUvxVNUuy2rt+IEiwmjztRlMt2EDB79UtY bdHQqBICnAsI+DY/T913j3t4TAE4UJiIIHXv816hrnBi1d3AnuLbHixHZ6GJwPncOGU8 DylIkpugmvaRmaS5tZ5V9TPU/pD8WCPY+nRmMHe7aKg7aLrCbU2R25YGzPvrXuHv7PFb pSCzgVfj5tUBbpkqBPX3eh3PA7vwEqUTvyQ81JYVvbCq4IoM5KbkovBjWmLxFrQZWT8q JifvVg+pWjQs+2cQOX4fP8asAHx8XYphqDXBp/38h3zKLqJdlwvI1+KlqGa41T04o8l5 QzEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=e4pBdLVgLTltXq/RPLv36yLp60Nrcfb8ySxA/3FpFg0=; b=E1zu/3u7I3gOqMkhMtNBnJNs1EbWdiOxf60Rh3qYJECLhP9qyBN1CFiAZy5T1vO+Of SK9VKe0kMJ7rtdfAUY2UuaGvoj6d+1/RE+MqjW2nbbY9iIgcB0Po6XrLWs+XvPn/ulVb KKMP+vW7Ob4pHIuX/uHy+mB9kvd7K5+X5ufEWt5WLxVvq79JLiGIx0enu4VRcswLV6Gp UP5eMJgmHEhLA3gHh5nO8A/wcb/fSMcBPLcVgFpywrUf0iPAmpDAtzzEgNvLoiNuTldy X9EtNNZRziQw/aFAWSSNjGudgL92FC6mlPlC8wmU7iGuqha1gz+WB0/mzOBlgGs/DjfB QmsA== X-Gm-Message-State: AD7BkJISd9Md3gGnj4jNcrae8jfLtF2JwJJw4fNL4LsaPKeY2eZUUNm7fUXJtnpeMmWF0K5Ot2Z822XD+oTM8Q== X-Received: by 10.50.176.138 with SMTP id ci10mr2151553igc.93.1456818577718; Mon, 29 Feb 2016 23:49:37 -0800 (PST) In-Reply-To: <11915658-6fcd-4f83-94ba-5f5dceb3af11@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103780 It's not at all clear what the problem is from your description. What is it that you expect the code to do? What is it doing instead that violates your expectation? Why are you asking for Javascript help on a Python mailing list? On Mon, Feb 29, 2016 at 10:40 PM, wrote: > I've been looking at the code for two days so i am a bit crosseyed. > If anyone could help me set the condition so the loop catch the last pair= /pairs, it is kind of weird that it succeed sometimes and break to early an= d report fail others. > > I would be very greatful if anyone can see why it break to early and retu= rn fail. Although it is clearly a succes looking at the last remaining pair= none connected pair.It should report fail for the network permutations tha= t stall due to link exhausting, but not stall creating last pair. > > It just a minor bug due to some condition that i just not get. > Have a go 5 munutes maybe someone catch the faulthy condition. > > http://jt.node365.se/mydebug1.html > -- > https://mail.python.org/mailman/listinfo/python-list