Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111756

Re: Stupid question, just need a quick and dirty fix

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From MRAB <python@mrabarnett.plus.com>
Newsgroups comp.lang.python
Subject Re: Stupid question, just need a quick and dirty fix
Date Fri, 22 Jul 2016 15:58:28 +0100
Lines 19
Message-ID <mailman.52.1469199518.22221.python-list@python.org> (permalink)
References <e1a10af3-cd57-4a56-98bf-7a9ed8b3d999@googlegroups.com> <927ed464-34fd-8f73-26d0-84b58cc9c4b2@mrabarnett.plus.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de h1qoWSuL7hTNfAqbcWJwBQJi6EOni/48o0l4cHXHCraQ==
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'modify': 0.04; 'line:': 0.07; 'works.': 0.07; 'subject:question': 0.08; 'python': 0.10; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'subject:need': 0.18; 'programmer': 0.18; 'purposes': 0.20; 'trying': 0.22; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'looks': 0.29; 'be:': 0.29; 'subset': 0.29; "i'm": 0.30; 'code': 0.30; 'probably': 0.31; 'suit': 0.33; 'false': 0.35; 'filter': 0.35; 'necessary.': 0.35; 'returning': 0.35; 'something': 0.35; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'anything': 0.38; 'means': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'results': 0.66; 'bayless': 0.84; '150': 0.93
X-CM-Score 0.00
X-CNFS-Analysis v=2.2 cv=dMLko6Rb c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=IkcTkHD0fZMA:10 a=en1gAxwCHvak-6jmt48A:9 a=c8S1LSykOT_wIf42:21 a=cd31CrQt7EIuc0Mt:21
X-AUTH mrabarnett@:2500
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
In-Reply-To <e1a10af3-cd57-4a56-98bf-7a9ed8b3d999@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <927ed464-34fd-8f73-26d0-84b58cc9c4b2@mrabarnett.plus.com>
X-Mailman-Original-References <e1a10af3-cd57-4a56-98bf-7a9ed8b3d999@googlegroups.com>
Xref csiph.com comp.lang.python:111756

Show key headers only | View raw


On 2016-07-22 05:19, Jordan Bayless wrote:
> I'm trying to modify some code to suit my purposes and I'm just trying to filter results as necessary. Basically, the code is returning one of a number from a subset of 150 numbers. I want to only do anything with it if the number is a 'good' one. I'm by no means a Python programmer (C# for me by trade) and I'm not looking for anything that will be distributed..I just want something that works.
>
> Basically, here's what I'm trying to insert:
>
> global blnDesiredInd
>
 > blnDesiredInd == False
>
[snip]

The line:

blnDesiredInd == False

looks wrong. It should probably be:

blnDesiredInd = False

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Stupid question, just need a quick and dirty fix Jordan Bayless <jmbayless@gmail.com> - 2016-07-21 21:19 -0700
  Re: Stupid question, just need a quick and dirty fix Chris Angelico <rosuav@gmail.com> - 2016-07-22 14:28 +1000
    Re: Stupid question, just need a quick and dirty fix Jordan Bayless <jmbayless@gmail.com> - 2016-07-21 21:39 -0700
      Re: Stupid question, just need a quick and dirty fix Chris Angelico <rosuav@gmail.com> - 2016-07-22 14:45 +1000
        Re: Stupid question, just need a quick and dirty fix Jordan Bayless <jmbayless@gmail.com> - 2016-07-21 22:26 -0700
          Re: Stupid question, just need a quick and dirty fix Paul Rubin <no.email@nospam.invalid> - 2016-07-21 23:03 -0700
          Re: Stupid question, just need a quick and dirty fix Chris Angelico <rosuav@gmail.com> - 2016-07-22 16:34 +1000
          Re: Stupid question, just need a quick and dirty fix Steven D'Aprano <steve@pearwood.info> - 2016-07-22 16:37 +1000
            Re: Stupid question, just need a quick and dirty fix thilfigr16@gmail.com - 2016-07-22 06:00 -0700
          Re: Stupid question, just need a quick and dirty fix Cousin Stanley <cousinstanley@gmail.com> - 2016-07-22 08:45 -0700
      Re: Stupid question, just need a quick and dirty fix Michael Selik <michael.selik@gmail.com> - 2016-07-22 01:18 -0400
        Re: Stupid question, just need a quick and dirty fix Steven D'Aprano <steve@pearwood.info> - 2016-07-22 16:08 +1000
          Re: Stupid question, just need a quick and dirty fix Michael Selik <michael.selik@gmail.com> - 2016-07-22 18:53 +0000
  Re: Stupid question, just need a quick and dirty fix MRAB <python@mrabarnett.plus.com> - 2016-07-22 15:58 +0100

csiph-web