Opened 9 years ago

Closed 9 years ago

#11870 closed defect (fixed)

Lazy fields do not support abs()

Reported by: jdemeyer Owned by: burcin
Priority: major Milestone: sage-4.7.2
Component: calculus Keywords:
Cc: Merged in: sage-4.7.2.alpha4
Authors: Jeroen Demeyer Reviewers: Burcin Erocal
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

sage: RLF(1).abs()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)

/usr/local/src/sage-4.7.2.alpha2/<ipython console> in <module>()

/usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-packages/sage/structure/element.so in sage.structure.element.RingElement.abs (sage/structure/element.c:13785)()

/usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-packages/sage/rings/real_lazy.so in sage.rings.real_lazy.LazyFieldElement.__getattribute__ (sage/rings/real_lazy.c:7550)()

/usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-packages/sage/structure/element.so in sage.structure.element.Element.__getattr__ (sage/structure/element.c:2794)()

/usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-packages/sage/structure/parent.so in sage.structure.parent.getattr_from_other_class (sage/structure/parent.c:2940)()

/usr/local/src/sage-4.7.2.alpha2/local/lib/python2.6/site-packages/sage/structure/parent.so in sage.structure.parent.raise_attribute_error (sage/structure/parent.c:2709)()

AttributeError: 'sage.rings.real_lazy.LazyWrapper' object has no attribute '__abs__'

Same for CLF.

Attachments (1)

11870.patch (21.6 KB) - added by jdemeyer 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by jdemeyer

comment:1 Changed 9 years ago by jdemeyer

  • Status changed from new to needs_review

comment:2 Changed 9 years ago by burcin

  • Authors set to Jeroen Demeyer
  • Reviewers set to Burcin Erocal
  • Status changed from needs_review to positive_review

Looks good to me.

comment:3 Changed 9 years ago by jdemeyer

Thanks!

comment:4 Changed 9 years ago by jdemeyer

  • Merged in set to sage-4.7.2.alpha4
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.