I could look at doing this with bpython-curtsies, but if all you want is 
colorized stack traces, capturing all output as bpython-curtsies does might be 
too heavy - you change how stack traces are printed somewhere, it's some 
handler in sys or traceback.


Right now running a script with bpython just uses the normal python executable, 
but it could be made to run after some shimming to get more bpython-like stack 
traces...

On Thu, Jan 9, 2014 at 1:31 AM, Giampaolo Rodola <[email protected]>
wrote:

> 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 this would be useful to emphasise traceback's file paths in 
> order to figure out where the different tree originated from.
> I'm currently using this:
> https://pypi.python.org/pypi/xtraceback/0.2
> ...but it only works for the interactive interpreter.
> Would such a feature be feasible to integrate into bpython?
> Bye and thanks for your great effort.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "bpython" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/bpython.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bpython.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to