Re: Transfer socket connection between programs

2007-11-12 Thread JamesHoward
On Nov 12, 12:50 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> wrote: > > > Does anyone know any method to have one program, acting as a > > server transfer a socket connection to another program? > > The only way

Transfer socket connection between programs

2007-11-12 Thread JamesHoward
Does anyone know any method to have one program, acting as a server transfer a socket connection to another program? I looked into transferring the connection via xml rpc to no avail. It seems to be a problem of getting access to a programs private memory space and giving another program access t

Re: IDLE won't color code!

2007-11-05 Thread JamesHoward
On Nov 5, 12:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Please help! > IDLE color codes only the shell, not the open files! How can I solve > this? My first guess is that idle is opening files without the .py extension. If that isn't it, what operating system are you using? What vers

Thread Profiling

2007-11-05 Thread JamesHoward
Are there any good thread profilers available that can profile a thread as it is running instead of after execution is completed? I would like to find a python class which looks at a currently running thread and if its memory exceeds a certain amount than kill it. Ideally I would like the program

Good String Tokenizer

2007-07-24 Thread JamesHoward
I have searched the board and noticed that there isn't really any sort of good implementation of a string tokenizer that will tokenize based on a custom set of tokens and return both the tokens and the parts between the tokens. For example, if I have the string: "Hello, World! How are you?" And

Re: Best method for inter process communications

2007-07-16 Thread JamesHoward
Thanks for the updates. I think I will try named processes first, but may just end up using local sockets in the end and not worry about the overhead. Jim Howard -- http://mail.python.org/mailman/listinfo/python-list

Best method for inter process communications

2007-07-16 Thread JamesHoward
I am looking for a way of performing inter process communication over XML between a python program and something else creating XML data. What is the best way of performing this communication? I could bind a socket to localhost and perform the data transfer that way, but that seems inefficient due

Re: Asyncore select statement problem

2007-01-19 Thread JamesHoward
Again, thank you for your help. With digging through the Asyncore.py source, I was able to find the poll2 function which is called when the function asyncore.loop(use_poll = True) is enabled. This function does not use a select call, but a poll call to do its looping. It works well for the probl

Re: Asyncore select statement problem

2007-01-19 Thread JamesHoward
ore module might fix this problem, but I wanted to see what other people thought first. Thanks again for the help, Jim Howard Gabriel Genellina wrote: > "JamesHoward" <[EMAIL PROTECTED]> escribió en el mensaje > news:[EMAIL PROTECTED] > > >I have a problem with pyt

Asyncore select statement problem

2007-01-17 Thread JamesHoward
I have a problem with python's asyncore module throwing a bad file descriptor error. The code might be difficult to copy here, but the problem is essentially: The server wants to sever the connection of an open Asyncore socket. Calling the socket.close() nor the socket.shutdown(2) calls seem to w