A Tcl/Tk programmer learns Python--any advice?

Grant Edwards grante at visi.com
Thu Nov 10 10:58:09 EST 2005


On 2005-11-10, Svenn Are Bjerkem <svenn.are at bjerkem.de> wrote:

> (and python can not do "set result [exec someprog << $input]"
> as far as I know)

I don't remember Tcl very well, but doesn't this do the same
thing?

  result = os.popen('someprog','r').read()

-- 
Grant Edwards                   grante             Yow!  I have a VISION! It's
                                  at               a RANCID double-FISHWICH on
                               visi.com            an ENRICHED BUN!!



More information about the Python-list mailing list