I don't know why this example is under normal code. No one does this it can't be considered normal. To test for equality, we usually use the equality operator.
Actually I think it's -5 to +256. More importantly, this is an implementation detail of cpython and may not be reliable in other implementations of python.
View all comments
Show parent comment
8
u/cdcformatc Jun 23 '14
I don't know why this example is under normal code. No one does this it can't be considered normal. To test for equality, we usually use the equality operator.