On Apr 4, 2:37 am, Steven D'Aprano <st... at REMOVE-THIS- cybersource.com.au> wrote: > In any case, the *right* test would be: > > a = 1 > assert a == 1 and a*5==5 and str(a)=='1' and [None,a,None][a] is a You're right. I was very tired when I wrote that, and forgot the last 3 assertions...