You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sage/misc/log.py, the following is in the documentation:
"""
There is an off-by-one issue with IPython's input and output
history; ``__IPYTHON__.input_hist_raw`` is a *list* containing
the un-preparsed Sage commands. However,
``__IPYTHON__.output_hist`` is a dictionary whose keys are
integers and whose values are outputs. This is good because
not every input has an output.
**BUT**, the output from::
__IPYTHON__.input_hist_raw[n]
is stored in::
__IPYTHON__.output_hist[n+1] !
This is annoying and it may be a bug. Right now the loggers
correct for this, but if modifying or extending this code,
consider yourself warned.
"""
This is incorrect. In fact, the compensation for this inside the code makes the input and output out of synchronisation. This can be seen in the following log:
Also, needs commit message instead of [mq]: trac_12927 and ideally some doctest (e.g. using the IPython test shell framework or via a separate Sage session)
In
sage/misc/log.py
, the following is in the documentation:This is incorrect. In fact, the compensation for this inside the code makes the input and output out of synchronisation. This can be seen in the following log:
Component: misc
Keywords: log logging
Issue created by migration from https://trac.sagemath.org/ticket/12927
The text was updated successfully, but these errors were encountered: