On Mon, Oct 29, 2012 at 6:33 AM, Ganesh Manal <[email protected]> wrote:
>
> Please give me sample python program that works with python31

Re: Python Pipes

If you're looking to pipe data to, from, and between processes, look
at the subprocess module:

http://docs.python.org/release/3.1/library/subprocess

If you want something specific to a Unix shell, look at the pipes module:

http://docs.python.org/release/3.1/library/pipes

If you want your own program to behave differently when stdin/stdout
are piped, use isatty():

    >>> import sys
    >>> sys.stdin.isatty()
    True
    >>> sys.stdout.isatty()
    True

http://docs.python.org/release/3.1/library/io#io.IOBase.isatty
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to