sys.stdout

Fredrik Lundh fredrik at pythonware.com
Fri Sep 9 12:09:33 CEST 2005


Sébastien Boisgérault wrote:

> 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 '>>>' ?

what "python shell" are you using, and what platform are you running
it on?  here's what I get on a standard Unix console:

>>> import sys
>>> sys.stdout.write("AAAA")
AAAA>>> sys.stdout.write("BBBB\n")
BBBB
>>> sys.stdout.write("CCCC\nDDDD")
CCCC
DDDD>>>

</F> 






More information about the Python-list mailing list