Re: Pause a thread/ execfile()

2009-10-26 Thread Saju Pillai
On 26/10/09 12:28 PM, Babloo wrote: i have a small python application with GUI (frontend) which has various functions. I have a "RUN" button which runs python scripts in the background . It basically calls execfile() function internally which runs in a thread , to run the python script . I want

Re: How to declare python ints in C extensions?

2009-01-04 Thread Saju Pillai
Tony Houghton wrote: I want to write python wrappers for the Linux DVB API. The underlying structures and constants may change from time to time, and some of the constants are generated from macros, so I think it would be better to write the module in C rather than just copying the constants into

Re: select.select and socket.setblocking

2009-01-03 Thread Saju Pillai
Bryan Olson wrote: > >Where does this come up? Suppose that to take advantage of multi-core >processors, our server runs as four processes, each with a single thread >that responds to events via select(). Clients all connect to the same >server port, so the socket listening on that port is sh

Re: select.select and socket.setblocking

2008-12-31 Thread Saju Pillai
On Dec 31, 7:48 pm, Francesco Bochicchio wrote: > < ... > > > >> Uhm. In my experience, with TCP protocol recv only returned less than > >> the required bytes if the remote end disconnects. I always check the > > > What if the sending end actually sent less than you asked for ? > > > -srp > > In b

Re: select.select and socket.setblocking

2008-12-31 Thread Saju Pillai
On Dec 31, 2:01 pm, Francesco Bochicchio wrote: > Grant Edwards ha scritto: > > > On 2008-12-30, Francesco Bochicchio wrote: > > >> 3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in > >> select between blocking and non-blocking mode. The difference is in the > >> recv (again,

Re: Can anyone suggest a good HTTP/1.1 web client?

2008-12-16 Thread Saju Pillai
On Dec 17, 1:18 am, Kottiyath wrote: > Hi all, >     I have to connect to a secure website every second to get the data > and then post to it. I have been investigating on many web clients in > python, but nothing fits the bill properly. >     The ones I tried implementing are: >     1. httplib ba

Re: How to convert uint64 in C into Python 32bit Object [ I am using Python2.2 ]

2008-12-11 Thread Saju Pillai
On Dec 11, 6:45 pm, Explore_Imagination <[EMAIL PROTECTED]> wrote: > On Dec 11, 4:45 am, John Machin <[EMAIL PROTECTED]> wrote: > > > > > On Dec 11, 9:49 am, Explore_Imagination <[EMAIL PROTECTED]> > > wrote: > > > > Hi all > > > > I am new to C and python ... I want to convert C data type uint64 >

Re: Python, threading

2008-12-11 Thread Saju Pillai
On Dec 11, 6:06 pm, SMALLp <[EMAIL PROTECTED]> wrote: > Hy. I have a problem! I'm making multi thread application (client, > server) using wxPython for GUI, and threading.Thread for threding. > > Clients connect and when they are connected (evry thread handles one > connection) threads change main

Re: Any way to loop through object variables?

2008-05-28 Thread Saju Pillai
On 28-May-08, at 9:49 PM, Gary Herron wrote: Dave Challis wrote: Hi, Just wondering if there's a way to iterate through all variables which an object has set? Specifically, I'm using the OptionParser module, which returns an options object, containing all command line options as object v