While working on the patch, I came across another problem, one that I
don't want to fix.

sage: D = {} ; D[CC(0)] = 1
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call
last)

/Users/nalexand/emacs/sage/<ipython console> in <module>()

<type 'exceptions.TypeError'>: unhashable type:
'sage.rings.complex_number.ComplexNumber'

Could someone in the know address this and send me a _TEXT_ patch (the
hg bundles aren't so good when you're in the middle of changes).

Also, if anyone knows how to do the equivalent of sorted(list,
key=func) in sagex, I'd be much obliged.  What I want to do is sort
the roots in order of increasing absolute value, but how do you sort a
list of pairs in sagex without using the Schwartzian transform
(decorate-sort-undecorate) or something similar?

Nick

On Mar 16, 12:11 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On 3/16/07, didier  deshommes <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Mar 16, 2:23 pm, "Nick Alexander" <[EMAIL PROTECTED]> wrote:
> > > Do you agree that the current behaviour is brain-dead?  'cuz I'll
> > > patch it!
>
> Please send me  a patch, so that it returns multiplicities in all cases.
>
>  -- William


--~--~---------~--~----~------------~-------~--~----~
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