Jose' Matos wrote:
>   You are killing me, first you take great pains to make sure that
>   we use secure temporary files and then you use pipes. Until 
>   python 2.3 that module also used mktemp.... I would jump from
>   a cliff if I had one near... ;-)
> 
>   Ok, I think that I have a solution for that also, make the pipe
> template return a file like object to be read.
> 
>   What does it means $IN and $OUT in the next function?

Read the blurb at the top of pipes.py ;-)

Seriously, they are placeholders that pipes.py substitues for the
actual file name. I think that the module is very elegant really.
It's allowing me to write:

        pnmcrop -left filein.ppm | pnmcrop -right > fileout.ppm

in python. However, if you can write the above using 'conventional'
python, then I'm very interested to learn how.

>> I'd buy you a beer, if only you touched the stuff ;-)
>  In this case I take an exception. ;-)

Good man!

-- 
Angus

Reply via email to