instant team mailing list archive
-
instant team
-
Mailing list archive
-
Message #00190
About signature and hash
Actually, since the hash code of an object isn't required to be
unique, hash(signature) and signature.__eq__ is good enough for
in-memory cache, but not for disk cache. If Instant takes a
user-defined signature to be used with the disk cache, it must be a
unique string since it's used in filenames.
Technically, md5 sums aren't unique either, but it's probably much
safer than "any hash code".
--
Martin
Follow ups