I had some code that I was editing to make it more understandable at a glance and I thought I should change all the char=="|"
to char is "|"
. I know that it looks like I'm dumbing it down too much but it does look better. Anyway, I decided to pycheck
one last time and I got this warning:
Warnings...
test.py:7: Using is |, may not always work
Processing module test (test.py)...
For the life of me, I can't imagine a situation when "|" is "|"
will return False
unless you start venturing into multibyte character encodings, CJK characters and the like, if I'm not wrong. Is there some other situation that I've missed?