releasing interpreter lock in custom code?

2006-05-11 Thread Bram Stolk
. How can I have my func release the lock? thanks! Bram Stolk -- http://mail.python.org/mailman/listinfo/python-list

how fast can you pingpong pickled objects?

2005-12-12 Thread Bram Stolk
Hi there, I'm transfering small pickled object over a socket. The performance I see is lower than expected. How fast should I be able to ping/pong small objects in python? I use a threaded SocketServer, telnetlib and pickle to test this, and I see that a 100 ping-pongs take 4 seconds or so, (ove

Re: using filedescriptors in SIGINT signal handler

2005-09-13 Thread Bram Stolk
[EMAIL PROTECTED] wrote: > If you're talking about a Python function registered as a handler by > signal.signal, then there should not be any restrictions on what you do > in that function. > > Here's a small program I wrote: > #-

using filedescriptors in SIGINT signal handler

2005-09-13 Thread Bram Stolk
Hello, I catch SIGINT signals with a handler. In the handler, I use fd's to write some data to a child process. Is this valid? Because the data never arrives, and I wonder what I'm doing wrong. Can filedescriptors still be used when you're in the signal handling of SIGINT? Thanks, Bram --

Re: IRIX MipsPro compiler chokes on Python.h

2005-05-25 Thread Bram Stolk
Andrew MacIntyre wrote: > My suspicion would be directed to a #define that is incorrect, as the > snippet above suggests that select() appears in two system headers > (/usr/include/sys/time.h & /usr/include/unistd.h). thanks for the info. I need to undef the following from my pyconfig.h to make i

Re: IRIX MipsPro compiler chokes on Python.h

2005-05-25 Thread Bram Stolk
Dennis Lee Bieber wrote: > On Tue, 24 May 2005 13:20:01 +0200, Bram Stolk <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >>$ cat l.cxx > > > Isn't ".cxx" a "C++" indicator? I think Python is just plain

IRIX MipsPro compiler chokes on Python.h

2005-05-24 Thread Bram Stolk
d in the compilation of "l.cxx". Has anyone experienced the same? How do I solve this? Thanks, Bram Stolk -- http://mail.python.org/mailman/listinfo/python-list