Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16455 > unrolled thread

Re: Need some IPC pointers

Started byAndrew Berg <bahamutzero8825@gmail.com>
First post2011-11-30 16:19 -0600
Last post2011-11-30 16:19 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Need some IPC pointers Andrew Berg <bahamutzero8825@gmail.com> - 2011-11-30 16:19 -0600

#16455 — Re: Need some IPC pointers

FromAndrew Berg <bahamutzero8825@gmail.com>
Date2011-11-30 16:19 -0600
SubjectRe: Need some IPC pointers
Message-ID<mailman.3177.1322691589.27778.python-list@python.org>
On 11/30/2011 3:32 PM, Devin Jeanpierre wrote:
> You could also use threads and pipes. (I'm not actually
> sure how threads+pipes works, but I'm told that it's a viable
> approach).
Sounds interesting, but I'm not familiar with threading (not that I
wouldn't be willing to learn).
Is it even possible to pipe into a running process, though?

> For what it's worth, I wrote something potentially similar using Twisted
> and AMP. AMP is an Asynchronous Messaging Protocol: this basically
> means that clients and servers can send messages to each other at any
> time in any order. Twisted makes sure that the right response gets
> associated with the right message. This can be very convenient -- you
> might request something from another process, and then to compute its
> answer it might ask for some additional information from you, and then
> you give it that information, and it sends back the final result.
> 
> All the communication is done over TCP, usually using Twisted. So this
> does involve bringing in a fairly large dependency.
Sounds like overkill, but I'll take a look.

-- 
CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web