Bigotry (you win, I give up)

Ethan Furman ethan at stoneleaf.us
Wed Apr 19 16:54:07 EDT 2017


On 04/19/2017 01:36 PM, Erik wrote:
> On 19/04/17 21:25, Ethan Furman wrote:

>> Asking that you not denigrate non-Python ideas on the Python list is not
>> asking for "special respect",
>
> I have no idea what you just said! :D

Yeah, I try to avoid negative checks in code.

How about this?

special_respect = False
be_courteous = True

ideas = [
     ('socio-economic', 'capitalism rules!'),
     ('spiritual', 'religion rules!'),
     ('political', 'left-wing rules!'),
     ('python', 'spaces rule!'),
     ]

for area, opinion in ideas:
     if area != 'python' and be_courteous:
         continue
     else:
         print(opinion)

print('non-Python ideas/opinions easily omitted without Special Respect!')

--
~Ethan~



More information about the Python-list mailing list