I read the Python 2 docs and noticed the id() function:
id()
Return the “identity” of an object. This is an integer (or long integer) which is
I have an idea to use value of id() in logging. It's cheap to get and it's quite short. In my case I use tornado and id() would like to have an anchor to group messages scattered and mixed over file by web socket.