Re: Feature request: colorized tracebacks with *.py files

2014-01-21 Thread Simon de Vlieger
I'll put this on the stack of after I finally review Thomas's pull request but it does seem like something we want. On 10 January 2014 16:27, Giampaolo Rodola g.rod...@gmail.com wrote: On Thursday, January 9, 2014 5:16:57 PM UTC+1, Tom wrote: I could look at doing this with

Feature request: colorized tracebacks with *.py files

2014-01-09 Thread Giampaolo Rodola
This is something I've been looking for for a while now: the possibility to run a python script via b/python foo.py and have colorized tracebacks. Whereas bpython provides colorized output for the interactive shell it does not provide any when running a python script through it. In particular

Re: Feature request: colorized tracebacks with *.py files

2014-01-09 Thread B Schlueter
This is possible, but unlikely to be implemented in CPython by the core devs. Bpython is just the shell, and its presence has no bearing on the output of python scripts. To implement it, I would track down where in cpython, or pypy's source error handling is dealt with. Terminal colors can be