Using filepath method to identify an .html page
rosuav at gmail.com
Tue Jan 22 13:59:07 CET 2013
On Tue, Jan 22, 2013 at 11:47 PM, Ferrous Cranus <nikos.gr33k at 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.
More information about the Python-list