On Tue, Jan 22, 2013 at 11:47 PM, Ferrous Cranus <nikos.gr...@gmail.com> wrote:
> What i want to do, is to associate a number to an html page's absolute path 
> for to be able to use that number for my database relations instead of the 
> BIG absolute path string.
>
> so to get an integer out of a string i would just have to type:
>
> pin = int( htmlpage )
>
> But would that be unique?

The absolute path probably isn't that big. Just use it. Any form of
hashing will give you a chance of a collision.

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

Reply via email to