[Idle-dev] Bug in Idlefork 0.9a2
Kurt B. Kaiser
kbk@shore.net
Tue, 04 Feb 2003 13:46:20 -0500
Jeffrey Stephens <jsteve17@tampabay.rr.com> writes:
> Executing the following code in the Python Shell window -
>
>>>> print \
> "Snake Ey\
> es"
>
> produces output
>
> Snake Ey es
>
> Six spaces are inserted between the 'y' and 'e' in eyes.
>
> This works fine in a terminal window.
Actually, it doesn't, if you insert the tab that IDLE inserts for you:
>>> print\
... 'abc\
... def'
abc def
So don't do that :)
Seriously, this is also a 'problem' in Python IDLE all these years.
However, if you use
>>> print 'abc\
def\
ghi'
abcdefghi
it works ok. So does
>>> print\
'abc'\
'def'
abcdef
And if you backspace the tab that IDLE inserts before you enter your
first line, subsequent lines will line up and you get:
>>> print\
'abc\
def\
ghi'
abcdefghi
We'd be happy to receive a patch :)
--
KBK