vendredi 6 mars 2015

when does python logic breaks?

[unable to retrieve full-text content]

Note: this may be a duplicate question. I am trying process a very large set of data with a python list. The list contains tuples of 3 items. At some point my code is acting very strangely. Not sure if the quantity of data processed has affected it or not.



for ...........:
if int1 - int2 >= int3:
break
print int1, " ", int2, " ", int3


It is printing 2220000, 180000000 and 256 at some point during the loop. I also have other dictionaries that contain large number of data. What exactly is happening here?






when does python logic breaks?

Aucun commentaire:

Enregistrer un commentaire