identity - Really awkward (seemingly simple) bug with python integer comparisons -


I have the following code code which is not working the way I expect it to ...

= (gr = 0) and (int (line [1]) = = g_c) = current_frame = int (line [0]) print "inquisitive =============== ========================== "Print current_frame print line print current_frame,"! = ", Intestine (line [0]),", ", current_frame! = Intestine (line [0]) print "======================================== ====

which prints for a particular case:

  eager ==== =========== ================ 15 ['15', '1', 'more data'] 15! = 15, wrong ============ ============================/COM/ < Should not be recorded, because equality is showing false. Why is this happening?  

EDIT: I have tried to put it together! = 'No' is the place, and the same Received results.

The value is compared with the ! = operator, Code> not , which compares the object identity.

Also, I think this is an indentation problem.


Comments