B
bartolome.sintes
In Python 3.3 for Windows, every list gets a different id when it is created:
But if I write a tuple asking for the ids of two lists, each list seems to get the same id:
I was expecting a tuple with two different ids. What is the reason for this behaviour?
Thanking you in advance,
46532048id([3]) 46555784
id([3]) 47920192
id([4])
But if I write a tuple asking for the ids of two lists, each list seems to get the same id:
(43079000, 43079000)id([3]), id([4])
I was expecting a tuple with two different ids. What is the reason for this behaviour?
Thanking you in advance,