Skip to content

normalize stack traces #591

Closed
Closed
@thomasballinger

Description

@thomasballinger

#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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions