milcent / benford_py

Python implementation of Benford's Law tests.
BSD 3-Clause "New" or "Revised" License
151 stars 52 forks source link

The code makes comparisons to None using == #2

Closed jfrfonseca closed 8 years ago

jfrfonseca commented 8 years ago

It is not recommended to make comparisons to None using == due to possible compilation differences in the binaries for the value "None".
Use if K is None: instead