random module

2006-10-28 Thread Moishy Gluck
HiI am using the random module to generate a session tracker. I use this code to generate a random number random.random() * 1 The session is stored in a mysql database under the field session_id. The problem is when I try to submit the random number into my database I get this error
IntegrityError: (1062, Duplicate entry '2147483647' for key 1)
args=
(1062, Duplicate entry '2147483647' for key 1)With the same number every time. The number being 2147483647. Does eneyone know what the problem is.

-- 
http://mail.python.org/mailman/listinfo/python-list

How do I open a mysql database with python

2006-04-25 Thread Moishy Gluck
How do I open a mysql database with python. I nead a module that is
compatible with windows, and will be on any regular server I singup
with. if you could give me some documentation on the module that would
be good also.

Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list