Re: Good thread pool module

2006-03-22 Thread Rune Hansen
I think you want the Queue module in standard lib. Haven't started a thread yet without it :) regards /rune -- http://mail.python.org/mailman/listinfo/python-list

Re: Read System.out.println From Java Using popen ?

2005-06-16 Thread Rune Hansen
Your Friend wrote: > result = os.popen( "%s/bin/java com.foo.service.JavaService %s" % ( > JAVA_HOME, FILE_TO_CREATE ) ) > > print > result.readlines() > I find that subprocess.Popen works _better_ for this kind of thing. import os from subpr

MySQLdb blob and binary data

2004-12-10 Thread Rune Hansen
I'm storing gzipped data in a MySQL blob field. I can fetch the blob and "wb" write the data to a file. It becomes a file containg gz data. I can't take the same data and do anything sensible with it in python - like say zlib.decompress(data). How can I convert the binary data from the blob fie