[twill] Disable prints

Titus Brown titus at caltech.edu
Tue May 30 09:57:41 PDT 2006


On Tue, May 30, 2006 at 10:17:07AM +0100, John J Lee wrote:
-> On Tue, 30 May 2006, twill.overbored at spamgourmet.com wrote:
-> 
-> > Is it possible to disable the prints to stdout made by the functions
-> > in twill.commands? I tried
-> >
-> > import twill.commands
-> > twill.commands.OUT = file( '/dev/null' )
-> 
-> shouldn't that be
-> 
-> twill.commands.OUT = open('/dev/null', 'w')
-> 
-> (I mean the 'w' rather than the open vs. file, but you shouldn't really 
-> use file as a c'tor)

yeah, I noticed that & tried it, as well.  no deal.  very odd.

Somewhere I read that 'open' is deprecated by GvR and 'file' is the
right way to go...

cheers,
--titus



More information about the twill mailing list