Piping data into script under Win32

R. C. James Harlow james at wrong.nu
Fri Apr 15 23:23:41 EDT 2005


On Saturday 16 April 2005 03:43, runes wrote:

> type countlines.py | python countlines.py = Success
> type countlines.py | countlines.py = Failure
>
> Why doesn't the latter work?

Don't quote me on this, but I think it's because invoking countlines.py 
involves running some sort of wrapper that discards its stdin and stdout.

If anyone has a more authorative answer, I'd like to know, because this caught 
me out too.

james.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050416/8079cbc8/attachment.sig>


More information about the Python-list mailing list