Better None comparison with integer
The support of Python3 needed to prevent None comparison with integer.
The solution was to add a test against None but in some cases it changes the previous behaviour and so it is better to consider None as 0.
The support of Python3 needed to prevent None comparison with integer.
The solution was to add a test against None but in some cases it changes the previous behaviour and so it is better to consider None as 0.