2009-10-16 81 views

回答

0

嘗試:

python -u `which ipython` 

不知道是否會工作,雖然。

1

從Python的手冊頁:

-u  Force stdin, stdout and stderr to be totally unbuffered. On systems where it matters, also put stdin, stdout and 
      stderr in binary mode. Note that there is internal buffering in xreadlines(), readlines() and file-object itera‐ 
      tors ("for line in sys.stdin") which is not influenced by this option. To work around this, you will want to use 
      "sys.stdin.readline()" inside a "while 1:" loop. 

如果使用無緩衝模式readline的干擾,這肯定會更與所有的魔法編輯和自動完成該IPython中爲您提供了干擾。我傾向於懷疑這就是爲什麼該命令行選項不在iPython中。

相關問題