GNOME Bugzilla – Bug 620705
help() in ipython console causes problems when accerciser is opened from a terminal
Last modified: 2011-07-02 01:29:01 UTC
From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575393 (confirmed in 1.10.1): When entering "help()" to the ipython prompt, the help output is directed to accerciser's controlling tty instead of being displayed in the ipython window. Hitting "enter" in the tty causes "help>" and then the ipython prompt to get displayed in the ipython window. Additionally, when accerciser was launched in the background, it get stopped by this operation. OTOH, asking to display any python value does result in the value being printed in the ipython window.
Bug confirmed.
Created attachment 190818 [details] [review] Typing help() does not hang Accerciser anymore This bug happens when accerciser is launched from a terminal. It seems that doing this makes help() want to take input from the gnome-terminal window. Setting sys.stdin explicitly, according to intuitions given by IPython's ipython_view.py, solved it. With or without this patch, though, typing help() in Accerciser when it's launched via either double-click or alt+f2 doesn't behave properly. The 'help >' prompt is opened and, immediately after that, closed. According to my attempts, it doesn't seem so easy to solve.
Created attachment 191121 [details] [review] fixed a typo error in proposed patch I can reproduce it too. I reviewed your patch and is ok, it solves the hang for me. I fixed a typo error that it had, so I added a new attachment. Thanks again Aline!
Thanks, Javi! Sorry about the typo.
commited 21f711c56c53640c1ac6ac3dcca9d4a94b38ce45