Re: sys.stdout is not flushed

2009-11-23 Thread Jankins
On Nov 23, 8:54 pm, Dave Angel wrote: > Jankins wrote: > > On Nov 23, 4:08 pm, "Diez B. Roggisch" wrote: > > >> Jankins schrieb: > > >>> I am trying to use sys.stdout to print out "process-bar" like: > >>> -->1% > > &g

Re: sys.stdout is not flushed

2009-11-23 Thread Jankins
On Nov 23, 8:32 pm, Cousin Stanley wrote: > >> > >> You misunderstand what "flush" means. It is not about > >> clearing the screen, or the line. > > >> Try printing > > >>    stdout.write('\r-->%d') > > >> Diez > > > But there is still a problem. When you use control character '\r', > > you a

Re: sys.stdout is not flushed

2009-11-23 Thread Jankins
On Nov 23, 4:08 pm, "Diez B. Roggisch" wrote: > Jankins schrieb: > > > > > > > I am trying to use sys.stdout to print out "process-bar" like: > > -->1% > > > Here is my program ‘test.py’: > > > from sys import stdout > &g

Re: sys.stdout is not flushed

2009-11-23 Thread Jankins
On Nov 23, 4:08 pm, "Diez B. Roggisch" wrote: > Jankins schrieb: > > > > > > > I am trying to use sys.stdout to print out "process-bar" like: > > -->1% > > > Here is my program ‘test.py’: > > > from sys import stdout > &g

sys.stdout is not flushed

2009-11-23 Thread Jankins
u test.py' to run this script. But what I get is : -->0-->1-->2-->3-->4-->5-->6-->7-->8-->9done! I am suppose to get 'done!'. Can anybody help me about this? Thanks. Jankins -- http://mail.python.org/mailman/listinfo/python-list