Ticket #12699 (needs_work defect)

Opened 14 months ago

Last modified 14 months ago

Stopgap for 9505

Reported by: jen Owned by: burcin
Priority: major Milestone: sage-5.10
Component: symbolics Keywords: rd2
Cc: Work issues:
Report Upstream: N/A Reviewers: R. Andrew Ohana
Authors: Jennifer Balakrishnan Merged in:
Dependencies: #12691 Stopgaps:

Description (last modified by rohana) (diff)

need to use sage.misc.stopgap instead of sage.misc.misc

Attachments

trac_12699.2.patch Download (816 bytes) - added by jen 14 months ago.

Change History

comment:1 Changed 14 months ago by jen

  • Priority changed from critical to blocker

comment:2 Changed 14 months ago by rohana

  • Status changed from new to needs_review
  • Reviewers set to R. Andrew Ohana
  • Description modified (diff)
  • Authors set to Jen Balakrishnan

comment:3 Changed 14 months ago by rohana

  • Status changed from needs_review to needs_work

comment:4 Changed 14 months ago by jen

  • Status changed from needs_work to needs_review

Updated patch to import from sage.misc.stopgap.

comment:5 Changed 14 months ago by jen

  • Authors changed from Jen Balakrishnan to Jennifer Balakrishnan

comment:6 Changed 14 months ago by rohana

  • Status changed from needs_review to positive_review

looks good now

comment:7 Changed 14 months ago by jdemeyer

Could you write a proper commit message? "Trac 12692" isn't. You should (briefly) describe what the patch does. There is no need to write the ticket number.

Changed 14 months ago by jen

comment:8 Changed 14 months ago by jen

New commit message added. 

comment:9 Changed 14 months ago by jdemeyer

  • Status changed from positive_review to needs_work

This causes a doctest failure:

sage -t  -force_lib devel/sage/sage/symbolic/expression.pyx
**********************************************************************
File "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/devel/sage-main/sage/symbolic/expression.pyx", line 4381:
    sage: f.coefficient(1)
Exception raised:
    Traceback (most recent call last):
      File "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_102[18]>", line 1, in <module>
        f.coefficient(Integer(1))###line 4381:
    sage: f.coefficient(1)
      File "expression.pyx", line 4388, in sage.symbolic.expression.Expression.coefficient (sage/symbolic/expression.cpp:19387)
        if len(s.variables()) > 1:
      File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:2919)
      File "parent.pyx", line 330, in sage.structure.parent.getattr_from_other_class (sage/structure/parent.c:3329)
    AttributeError: 'sage.rings.integer.Integer' object has no attribute 'variables'
#0: simplify_sum(expr='sum(q^k,k,0,inf))
#1: simplify_sum(expr=a*'sum(q^k,k,0,inf))
**********************************************************************

comment:10 Changed 14 months ago by jdemeyer

  • Priority changed from blocker to major
Note: See TracTickets for help on using tickets.