【发布时间】:2012-06-06 19:08:36
【问题描述】:
在 emacs 中 ipython 提示符中真的很烦人的问题:
In [128]: if 1==1:
.....: print "yes"
.....: else:
.....: print "no"
.....:
IndentationError: unindent does not match any outer indentation level
它看起来与我完全一致,不确定是什么触发了错误。当我在终端中执行此操作时没有这样的问题。
【问题讨论】:
-
我也有同样的问题。并且它发生在调用 ipython 后的 emacs 中的任何 shell(例如 eshell)中,不仅在 python-mode.el 或 ipython.el 提供的 ipython shell(M-x ipython)中。