On 3/23/24 3:54 AM, Bruno Haible wrote: > But this part of your patch is a no-op, since > > >>> None == True > False > >>> None == False > False > > No?
Oops... Yes you are right. I'm used to writing this: if value: print('1') else: print('2') instead of this: if value == True: print('1') elif value == False: print('2') In the first case the check for None matters: if None: print('1') else: print('2') prints 2. Feel free to pick whichever style you prefer, and I'll remember too look out for that in the future. Collin