urllib.urlopen blocking?

Antoine Pitrou solipsis at pitrou.net
Tue May 11 10:55:43 EDT 2010


On Tue, 11 May 2010 07:35:52 -0700 (PDT)
Dominik Gabi <dkgispam at gmail.com> wrote:

> > For the record, have you tried calling gobject.threads_init() at the
> > beginning of your application (just after importing all modules)?
> 
> I haven't... now it works, thanks :) Any tips on how to avoid mistakes
> like that in the future? I'm somewhat confused as to how I was
> supposed to get this out of the documentation...

I'm afraid I don't know the answer. I'm not a pygtk expert at all, I
just remember that I had to do that in one of my applications long ago,
otherwise pygtk doesn't support Python threads properly.

Regards

Antoine.





More information about the Python-list mailing list