[Tutor] Clarification questions about how Python uses references.

Roel Schroeven roel at roelschroeven.net
Sun Jun 27 05:39:18 EDT 2021


Cameron Simpson schreef op 26/06/2021 om 2:50:

> The example of a file indexed by its MD5 hash I had in mind was a real
> world example of a client report request, and the corresponding output
> files.  Receive the request, save it to disc for processing under a
> filename based on the MD5 checksum, save that filename in a work queue.
> The worker picks up the filename and makes the reports, likewise saving
> them for the client to collect.
> 
> The MD5 here is used as an easy way to pick _unique_ filenames for the
> work request and its results. The request never changes content once
> received.

This is in essence the basis of content-addressable storage systems as 
used in e.g. git.


-- 
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
         -- Franklin P. Jones

Roel Schroeven



More information about the Tutor mailing list