unexpected indent in ipython 0.10.1

自闭症网瘾萝莉.ら 提交于 2019-12-07 12:19:26

问题


I have a problem with ipython 0.10.1 in ubuntu 11.04 and python 2.7.1.

In previous versions of ipython indentation did not matter when working interactively.

Now instead any indented statement throws an exception:

In [1]:  a=3
------------------------------------------------------------
IndentationError: unexpected indent (<ipython console>, line 1)

this is really very annoying specifically when I am debugging and I want to paste some code from a script which is indented, and I am forced to undent every line.

Any hint welcome.


回答1:


This happens only when ipython is called with -wthread, I've just filed a bug about this.



来源:https://stackoverflow.com/questions/6682580/unexpected-indent-in-ipython-0-10-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!