Skip to content

Instantly share code, notes, and snippets.

@stesh
Created February 26, 2014 20:46
Show Gist options
  • Save stesh/9238176 to your computer and use it in GitHub Desktop.
Save stesh/9238176 to your computer and use it in GitHub Desktop.
>>> from Queue import PriorityQueue
>>> l = [PriorityQueue()] * 10
>>> [hash(x) for x in l]
[-9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054, -9223372036579180054]
>>> l = [PriorityQueue() for _ in range(10)]
>>> [hash(x) for x in l]
[275597326, 275597335, 275597371, -9223372036579178388, 275597470, -9223372036579178289, 275597829, -9223372036579177930, 275597928, -9223372036579177831]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment