> >>> a = 1 > >>> b = 1 > >>> a is b > True > >>> id(a) > 10901000 > >>> id(b) > 10901000
Isn't this because integers up to a certain range are held in a single memory location, thus why they are the same? -- http://mail.python.org/mailman/listinfo/python-list