Opened 3 years ago

Closed 3 years 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: https://groups.google.com/d/msg/sage-devel/1v7PUb7Swrg/uQqR-DmiEAAJ

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 3 years ago by dimpase

Description: modified (diff)

comment:2 Changed 3 years ago by embray

Milestone: sage-9.0sage-9.1

Ticket retargeted after milestone closed

comment:3 Changed 3 years ago by mkoeppe

Cc: dimpase added
Milestone: sage-9.1sage-duplicate/invalid/wontfix

dup of #29621

comment:4 Changed 3 years ago by mkoeppe

Status: newneeds_review

comment:5 Changed 3 years ago by gh-mwageringel

Authors: Markus Wageringel
Priority: criticalmajor
Status: needs_reviewpositive_review

comment:6 Changed 3 years ago by dimpase

thanks - I totally forgot about this one..

comment:7 Changed 3 years ago by mkoeppe

Authors: Markus Wageringel
Reviewers: Markus Wageringel

comment:8 Changed 3 years ago by chapoton

Resolution: duplicate
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.