xml-rpc server on wine

2011-11-05 Thread pacopyc
Hi, I have a XML-RPC server python running on VM Windows (on Linux) and a XML-RPC client python on Linux. Server and client have different IP address. I'd like migrate server on wine. How can communicate server and client? IP address is different or is the same? Can you help me? Thanks -- http://

understand program used to create file

2011-11-01 Thread pacopyc
Hi, I have about 1 files .doc and I want know the program used to create them: writer? word? abiword? else? I'd like develop a script python to do this. Is there a module to do it? Can you help me? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: max time threads

2010-06-18 Thread pacopyc
On 19 Giu, 00:27, MRAB wrote: > pacopyc wrote: > > [snip] > > Ok, the problem is that I want fix a time max for each thread. For > > example run 10 threads (each can terminate its work in 10 sec. max > > fixed time) and wait them. If they finish its work in < 10 sec.

Re: max time threads

2010-06-18 Thread pacopyc
On 18 Giu, 01:04, MRAB wrote: > pacopyc wrote: > > Hi, I'm trying to work with threads and I need your help. This is > > code: > > > from threading import Thread > > from Queue import Queue > > import time > > import random > > > def test

max time threads

2010-06-17 Thread pacopyc
Hi, I'm trying to work with threads and I need your help. This is code: from threading import Thread from Queue import Queue import time import random def test_fun (k,q,t): time.sleep(t) print "hello world from thread " + str(q.get()) + " (sleep time = " + str(t) + " sec.)" q.task_don

max time wait for a function

2010-05-18 Thread pacopyc
Hi, I've a question for you. I'd like to call a function and waiting its return value for a time max (30 sec). The function could not respond and then I must avoid to wait for infinite time. OS is Windows XP. Can you help me? Thank -- http://mail.python.org/mailman/listinfo/python-list