Closed
Description
#229 had the inadvertent effect of making terminal history unnecessarily inconsistent because each time a rewind happens, the input lines change:
(bpython)tomb@tom-mba (master) bpython$ bpython
bpython version 0.15.dev233 on top of Python 2.7.10 /Users/tomb/.virtualenvs/bpython/bin/python2.7
>>> import
File "<bpython-input-2>", line 1
import
^
SyntaxError: invalid syntax
>>> 1
1
>>>
becomes
(bpython)tomb@tom-mba (master) bpython$ bpython
bpython version 0.15.dev233 on top of Python 2.7.10 /Users/tomb/.virtualenvs/bpython/bin/python2.7
>>> import
File "<bpython-input-4>", line 1
import
^
SyntaxError: invalid syntax
>>>
It'd be nice to do one of the following, or something else I haven't thought of
- line count should be reset on rewind
- stack traces should be modified to remove these numbers
- history inconsistency detection should ignore these differences
Metadata
Metadata
Assignees
Labels
No labels