Terry J. Reedy added the comment:
In #9618, it was pointed out that IDLE Shell inherits from
code.InteractiveConsole, and that #7741 proposes to allow multiple statements
there.
In 3.5, this example from msg114561 now gives a SyntaxError, as it should.
>>> x = 3
y = 7
Seven years
Changes by irdb dalba.w...@gmail.com:
--
nosy: +irdb
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
___
___
Python-bugs-list mailing list
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: -BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
___
___
Mark Lawrence added the comment:
Could we borrow code from the ipython %paste command? This issue is also
referenced from #5124.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
Roger Serwy added the comment:
The core problem is that IDLE only executes the shell buffer when the
newline-and-indent virtual event gets sent by physically pressing the Enter
key. Pasting the clipboard contents with \n will not trigger the enter_callback
function in Lib/idlelib/PyShell.py.
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
I switched to patch review because I am not sure unit test is possible.
I did not advocate a change to immediate execution in my original post. I noted
that pasting multiple statements does not work and that if it cannot be made to
work, the
Éric Araujo mer...@netwok.org added the comment:
Re: testability, Tarek has written tests for distutils interactive commands by
monkey-patching input/raw_input. A bit ugly, but gets the job done.
--
___
Python tracker rep...@bugs.python.org
Cherniavsky Beni c...@users.sf.net added the comment:
There are 2 issues here:
(1) There should be a quick obvious way to paste and run several statements.
(2) If a user types several statements and presses Enter, all should run. The
current behavior is badly broken, and pasting is just one
Guilherme Polo ggp...@gmail.com added the comment:
This seems to be problematic in general. I have worked on a patch now,
but it fails to succeed while pasting multiple lines. The problem is
that when a second line is pasted, IDLE is still marked as executing
so it ends up just pasting the line
Changes by Daniel Diniz aja...@gmail.com:
--
nosy: +gpolo
priority: - normal
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
___
New submission from Terry J. Reedy [EMAIL PROTECTED]:
Winxp, 3.0b2, but I suspect earlier as well, since reported on c.l.p.
If I paste '1+2\n' into the command window interpreter, it responds with
'3' and a new prompt. In IDLE, the pasted \n is ignored and a typed \n
is required to trigger
13 matches
Mail list logo