Fredrik Lundh wrote:
> 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?
The python interpreter is invoked from a bash/konsole session,
inside a KDE env.:
bash$ python
Python 2.4.1 (#4, Sep 8 2005, 19:11:54)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>>
> 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>
Yep. And I hate you for this ;)
Cheers,
SB
--
http://mail.python.org/mailman/listinfo/python-list