sys.stdout

Robert Kern rkern at ucsd.edu
Fri Sep 9 05:49:41 EDT 2005


Sébastien Boisgérault wrote:
> Tiissa,
> 
> Thanks for your answer. The execution of  your example leads to a
> 'aaa' display during 2 secs, before it is erased by the prompt.
> 
> This behavior is standard ? The standard output is not supposed
> to *concatenate* the 'aaa' and the '>>>' ?

FWIW:

Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdout.write('AAAA')
AAAA>>> sys.stdout.write('BBBB\n')
BBBB
>>>

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list