#16316: cached_function and cached_method for unhashable elements
-------------------------------------+-------------------------------------
Reporter: saraedum | Owner:
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-6.3
Component: misc | Resolution:
Keywords: | Merged in:
Authors: Julian Rueth | Reviewers: Peter Bruin
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/pbruin/16316-cache_key | c0a7fb816bff291f99053b623bf07468190eb49c
Dependencies: #16251 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by saraedum):
* status: needs_work => needs_review
Comment:
Replying to [comment:14 tscrim]:
> You must change the wording of "caching elements which are unhashable";
this is not correct as you cannot cache (i.e. set as the key in a dict)
anything without a (well-defined) hash. Instead say something like
> {{{
> This element is noramlly unhashable, so we use the function
``_cache_key``
> to create a hashable key for the object for the cache.
> }}}
I don't think that the word "cache" is necessarily connected to "hashing".
A hashtable is one way of caching but there are others. (I just checked,
https://en.wikipedia.org/wiki/Cache_%28computing%29 does not contain the
word 'hash'.)
Is it acceptable for you if we leave the current wording?
--
Ticket URL: <http://trac.sagemath.org/ticket/16316#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.