Python multiplexing is too hard (was: Network statistics program)
Cameron Laird
claird at starbase.neosoft.com
Thu May 18 03:41:33 EDT 2000
In article <Pine.GSO.4.10.10005180810180.14709-100000 at sundial>,
Moshe Zadka <moshez at math.huji.ac.il> wrote:
>On 17 May 2000, Cameron Laird wrote:
>
>> What's the really cool, idiomatic way to multiplex in Python?
>> I'm not happy with anything I do in this regard.
>
>I'm not at all sure this is what you mean, but how about the "asyncore"
>module?
>
>Personally, most of my programs are GUI's, so I use either the Tk or Gtk+
>``file events''.
.
.
.
Right. asyncore is nice--but restricted to socket
connections. For many applications, that's not a
restriction at all. However, it'd be nice to have
such a handy interface for communication with
same-host processes; that's why I mentioned popen*().
Does no one else perceive a gap there, in convenient
asynchronous piped IPC? Do folks just fall back on
select() for this case?
--
Cameron Laird <claird at NeoSoft.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list