[IPython-user] IPython 0.7.0.rc1, and development...

Fernando Perez Fernando.Perez at colorado.edu
Wed Jan 4 12:51:52 CST 2006


Charlie Moad wrote:
> Works fine with 0.6.15, but it spins with 0.7.0.  It does work with
> 0.7.0, but it just busy waits.  0.6.15 gives a warning:

Aha!  This is very, very good.  I tried 0.6.15 on my box to see if the 
segfault also went away, but no luck there.  So we're stuck with debug-by-proxy.

I've attached the diff for the relevant file, Shell.py, between .6.15 and 
.7.0.  It's kind of big, but the part that I think matters is only this:



-    def mainloop(self):
+    def mainloop(self,sys_exit=0,banner=None):
+
+        self._banner = banner

-        self.gtk.timeout_add(self.TIMEOUT, self.on_timer)
+        if self.gtk.pygtk_version >= (2,4,0):
+            import gobject
+            gobject.idle_add(self.on_timer)
+        else:
+            self.gtk.idle_add(self.on_timer)


See if you can revert back to the timeout_add method and if that helps.

If so, we can try to understand better what the right call to make should be.

Cheers,

f
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ipshell.diff
Url: http://projects.scipy.org/pipermail/ipython-user/attachments/20060104/629e53ad/attachment.pl 


More information about the IPython-user mailing list