##// END OF EJS Templates
i1673 implementation of py3 proper error handling...
i1673 implementation of py3 proper error handling I refactored ultratab.py a bit. `structured_traceback` function was much too long. I extracted some of the code to separate methods. I added support for py3 exceptions which store information about previous exceptions in their `__context__`.

File last commit:

r16114:15cc5a8e
r17157:552f2a77
Show More
embed_division.py
5 lines | 266 B | text/x-python | PythonLexer
"""This tests that future compiler flags are passed to the embedded IPython."""
from __future__ import division
from IPython import embed
embed(banner1='', header='check 1/2 == 0.5 in Python 2')
embed(banner1='', header='check 1/2 = 0 in Python 2', compile_flags=0)