On Wed, Oct 28, 2009 at 1:52 PM, Timo List <timomli...@gmail.com> wrote:
> Hello, > > I'm writing an application which will hold a database of people. Ofcourse, > people can have the same name, so I want to stock them with an unique ID. > > I've searched and found some things: > - uuid.uuid4() > - id(name) > - os.urandom(n) > > But they seem overkill to me. Well, maybe not id(). > > What should I use the best for this? Maybe examples of other programs that > do something alike? You could use SQLite... I believe it supports autoincrement. If you just want a random number, you can use the random library. HTH, Wayne
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor