On Sat, Feb 28, 2015 at 7:48 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > On Fri, Feb 27, 2015 at 9:42 PM, Dan Sommers <d...@tombstonezero.net> wrote: >> I don't think I've ever used the builtin function id in a program. >> Ever. Not even once. Honestly, what is a valid use case? > > If you have a dict that you want to key on object identity rather than > equality, then you can use object ids as the keys.
And not forget to hang onto references to all those objects, else their ids will be meaningless. ChrisA -- https://mail.python.org/mailman/listinfo/python-list