How would you convert an arbitrary string into a unique integer, which would be the same across Python sessions and platforms? For example hash('my string') wouldn't work because a different value ...
I need a memory-efficient data structure for for storing about a million key--value pairs, where keys are strings of about 80 bytes, and values are strings of about 200 bytes, the ...
I have ~200K named properties and ~25K files. I extract whether the properties hold or not for each file using Python as a set of properties that hold, one set for ...
I have a need for a high-performance string hashing function in python that produces integers with at least 34 bits of output (64 bits would make sense, but 32 is too ...
I came to this question while pondering about the ordering of set, frozenset and dict. Python doesn't guarantee any ordering, and I guess any ordering is all down to the hash ...
Is there a method to calculate something like general "similarity score" of a string? In a way that I am not comparing two strings together but rather I get some number/scores ...
Hi, to write a function that would: take a string as parameter containing a hash (usually 16 random chars) that I would return a value between 0 and 1 (a float with at least two decimals) I would like to use all chars of the string and that * the function returns the same value if called with the same string ...