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


Groups > comp.lang.python > #52485

Re: Pair of filenos read/write each other?

References <mailman.552.1376435986.1251.python-list@python.org> <op.w1r5rqzha8ncjz@gnudebeest>
Date 2013-08-14 01:55 +0100
Subject Re: Pair of filenos read/write each other?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.556.1376441747.1251.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Aug 14, 2013 at 1:17 AM, Rhodri James
<rhodri@wildebst.demon.co.uk> wrote:
> On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates <tdhfwh@nottheoilrig.com>
> wrote:
>
>> Can anyone suggest a way to get a pair of file descriptor numbers such
>> that data written to one can be read from the other and vice versa?
>>
>> Is there anything like os.pipe() where you can read/write both ends?
>
>
> Sockets?  It depends a bit on what you're trying to do, exactly.  If you
> give us a bit more context, we might be able to give you better advice.

Specific questions:

1) Do you need different processes to do the reading/writing?
2) Do you need to separate individual writes (message mode)?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Pair of filenos read/write each other? Jack Bates <tdhfwh@nottheoilrig.com> - 2013-08-13 16:10 -0700
  Re: Pair of filenos read/write each other? "Rhodri James" <rhodri@wildebst.demon.co.uk> - 2013-08-14 01:17 +0100
    Re: Pair of filenos read/write each other? Chris Angelico <rosuav@gmail.com> - 2013-08-14 01:55 +0100
    Re: Pair of filenos read/write each other? Jack Bates <tdhfwh@nottheoilrig.com> - 2013-08-15 08:56 -0700
    Re: Pair of filenos read/write each other? Jack Bates <tdhfwh@nottheoilrig.com> - 2013-08-15 08:59 -0700
  Re: Pair of filenos read/write each other? Roy Smith <roy@panix.com> - 2013-08-13 21:37 -0400
  Re: Pair of filenos read/write each other? Nobody <nobody@nowhere.com> - 2013-08-14 08:21 +0100
    Re: Pair of filenos read/write each other? Antoine Pitrou <solipsis@pitrou.net> - 2013-08-14 08:34 +0000
    Re: Pair of filenos read/write each other? Jack Bates <tdhfwh@nottheoilrig.com> - 2013-08-15 09:19 -0700
    Re: Pair of filenos read/write each other? Antoine Pitrou <solipsis@pitrou.net> - 2013-08-15 18:24 +0000

csiph-web