Opened 2 years ago

Closed 21 months ago

#28677 closed defect (duplicate)

sage.misc.log.log_text() is broken

Reported by: dimpase Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: misc Keywords:
Cc: dimpase Merged in:
Authors: Reviewers: Markus Wageringel
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by dimpase)

as reported by Max Alekseyev here:

sage: import sage.misc.log
sage: sage.misc.log.log_text()
AttributeError                            Traceback (most recent call last)
<ipython-input-2-ace4f1da0972> in <module>()
----> 1 sage.misc.log.log_text()

/usr/local/SageMath.89/local/lib/python2.7/site-packages/sage/misc/log.pyc in __init__(self, dir, debug, viewer)
     97         self._dir = dir
     98         self._filename = os.path.join(dir, self._filename())
---> 99         self._output = __IPYTHON__.output_hist
    100         self._input  = __IPYTHON__.input_hist_raw
    101         self._text = ''

AttributeError: 'bool' object has no attribute 'output_hist'

a good example of bitrot due to absense of tests/examples

Change History (8)

comment:1 Changed 2 years ago by dimpase

  • Description modified (diff)

comment:2 Changed 2 years ago by embray

  • Milestone changed from sage-9.0 to sage-9.1

Ticket retargeted after milestone closed

comment:3 Changed 21 months ago by mkoeppe

  • Cc dimpase added
  • Milestone changed from sage-9.1 to sage-duplicate/invalid/wontfix

dup of #29621

comment:4 Changed 21 months ago by mkoeppe

  • Status changed from new to needs_review

comment:5 Changed 21 months ago by gh-mwageringel

  • Authors set to Markus Wageringel
  • Priority changed from critical to major
  • Status changed from needs_review to positive_review

comment:6 Changed 21 months ago by dimpase

thanks - I totally forgot about this one..

comment:7 Changed 21 months ago by mkoeppe

  • Authors Markus Wageringel deleted
  • Reviewers set to Markus Wageringel

comment:8 Changed 21 months ago by chapoton

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.