On Mar 20, 11:04 pm, David Harvey <[EMAIL PROTECTED]> wrote:
> On Mar 21, 2007, at 1:37 AM, Robert Bradshaw wrote:
>
> > One could also force all keys of a
> > hashtable to live in a given ring.
>
> I don't think you'd want to do that. First, it wouldn't even solve
> the problem (e.g. because of the precision issues you raised before
> -- you can have two elements of the same ring with different
> precision and hence presumably different hashes, which still compare
> equal). Second, I can't even see technically how you would do that
> without modifying python in some horrible way.

Are RealField(100) and RealField(200) the same ring?  To me, they
aren't, but there is a canonical coercion in one direction.  And you
can expect __call__ to map between both.

Is that right?
Nick


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to