On Sun, Apr 06, 2003 at 10:01:39PM -0400, Greg Ward wrote:
> > "Not all built-in functions that may block waiting for I/O allow other
> > threads to run. (The most popular ones (time.sleep(), file.read(),
> > select.select()) work as expected.) "
> > 
> > I think it's the way python handles threads, since Linux still treats
> > threads internally as processes it's not supposed to block all threads.
> 
> D'ohhh!  Of course!  It's all my fault -- I was calling ioctl() from an
> extension module, and forgot to wrap the call with
> Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.  Added those two lines
> of code and now everything works perfectly.

Does this mean we'll be seeing a cdrom module for Linux soon in the
standard library ? Please say it's so, `cd (IRIX)' is such a teaser in
the module listing :-) 

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to