[IPython-dev] IPython with Py3k

Thomas Kluyver takowl@gmail....
Tue Sep 14 18:37:36 CDT 2010


A quick update:

ipy3-preparation, my Python 2 branch tracking newkernel, now passes all nine
test suites, at least on my machine (tested at this
commit*<http://github.com/takowl/ipython/commit/22f6368352725d7e301f7af08c47982502d16dd4>).
Feel free to review the changes in this with an eye to merging them into
newkernel. It is not intended to be compatible with Python 3, but it makes
conversion simpler, partly by cutting compatibility with older Python 2.x
versions.

ipy3-newkernel (my Python 3 branch, tracking ipy3-preparation but via the
2to3 converter) is still some way from passing its test suites, although it
works well enough to be useful to me. I'll continue to work on it, although
it'll have a brief pause when I go on holiday in a couple of days. If you
want to investigate, it's at:
http://github.com/takowl/ipython/tree/ipy3-newkernel

One specific question (and the cause of a remaining failure in the
IPython.lib tests): if you enter a line with invalid syntax, Python displays
the line back to you, with a little ^ below pointing to the problem. IPython
gives that some pretty formatting. In ipy3-newkernel, I'm not getting that
display, although I still get the SyntaxError: ... line. Can anyone suggest
where I should start looking for the code for that? I think it's different
from the code for a full traceback in core/ultratb.py .

Best wishes,
Thomas

*
http://github.com/takowl/ipython/commit/22f6368352725d7e301f7af08c47982502d16dd4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20100915/30ecc5ae/attachment.html 


More information about the IPython-dev mailing list