Hi Kevin,
Sorry, I missed to look at this post.
I will chage in future posts.
Quote:
Originally Posted by KevinH
In an effort to help track down other mistakes like that, I have changed the entire code base to use the python.org PEP recommendation when testing against None as follows:
I have changed all:
== None
to:
is None
And changed all:
!= None
to:
is not None
Now any testing against 0 vs non-zero using "if variable" will stand out as different and I can track down any such occurrences to make sure they were not using it to test against None but were instead looking at the non-zero case.
I have attached a patch to move us to follow the python PEP recommendation.
See pep_use_patch.txt
|