Unique user ID in a Pylons web application
Question: What is the best way to create a unique user ID in Python, using
[UUID](http://docs.python.org/library/uuid.html)?


Answer: I'd go with uuid

    
    
    from uuid import uuid4
    def new_user_id():
        return uuid4().hex
    

