Divorcing Command Line and GUI

David Bolen db3l at fitlinxx.com
Tue Mar 13 18:08:24 EST 2001


"Alex Martelli" <aleaxit at yahoo.com> writes:

> Piece of cake -- just make sure your CL tools take a switch
> (-u or --unbuffered) to work without any input buffers on
> stdin/stdout, and similarly-unbuffered Python GUI front-ends
> will be easily able to drive them (after an os.popen2).

Or just pass the "-u" to python itself when running the command line
script - no changes to scripts required.

(Something I find extremely helpful to work with pre-existing scripts,
unlike Perl where you have to modify the script itself to enable
autoflushing.)

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list