bobf is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bobf / bpython http://bpython-interpreter.org/

Fancy curses interface to the Python interpreter

Clone this repository (size: 838.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/bobf/bpython
hg clone ssh://hg@bitbucket.org/bobf/bpython

Issues

#194 Granular Traceback Coloring

Reported by Julian Berman

For this to be useful, it'd probably be nice to have #193 first, but wanted something like:

Traceback (most recent call last):
      File "foo.py", line 146, in trampoline
        value = next(value.generator)
      File "bar.py", line 51, in _match
        eggs()
      File "baz.py", line 247, in <lambda>
        s = lambda pancakes : 12
      File "spam.py", line 165, in next
        if new <= len(self.old):
    TypeError: object of type 'int' has no len()

to be a little easier to read. When you have a full traceback it can be a little disorienting seeing a wall of red (maybe rightfully so :)

Something like making everything gray, the filenames be bold, and only the first? (last?) call be red would be nice, if not as the default, just to be able to configure.

Status: new Responsible: nobody Type: enhancement Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Julian Berman

    written

    • Changed type from bug to enhancement.

    Sorry, bitbucket is being a bit annoying and not letting me edit the OP apparently, but now that I see the way pygments colored that traceback I kind of like the default.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?