Proposal for new option -U extending -u
Carl Banks
pavlovevidence at gmail.com
Sat Jul 29 21:01:18 EDT 2006
James Thiele wrote:
> Currently -u specifies that stdin, stdout and stderr are all
> unbuffered. I propose a that -U make all files unbuffered. It could be
> useful for programs that log to files.
>
> Comments solicited.
Unnecessary. You can control the buffering of any file object you
create yourself, e.g. open("somefile",buffering=0) to create an
unbuffered file object. The reason you need a switch for stdin,
stdout, stderr is you don't create those objects yourself.
Carl Banks
More information about the Python-list
mailing list