Stupid question, just need a quick and dirty fix

MRAB python at mrabarnett.plus.com
Fri Jul 22 10:58:28 EDT 2016


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




More information about the Python-list mailing list