Proposal for new option -U extending -u

J

James Thiele

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.
 
F

Fuzzyman

James said:
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.

'-U' is already taken (for unicode only strings). Other than that I
have no opinion (don't think I'd use it...).

All the best,


Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
 
C

Carl Banks

James said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top