Several days ago I submitted a patch which addresses this issue: SF patch 1528468.
This will probably be included in Python 2.6.
On 7/29/06, Sourav Datta <[EMAIL PROTECTED]> wrote:
The IDLE that comes with Python 1.5 beta has a problem. While the Alt+p retrieves the previous command issued to the prompt, there was another way to do that in IDLE v1.1.2 that came with Python 2.4. If I just clicked on a previous command and hit ENTER, the command would appear again in the new prompt. As follows,IDLE 1.1.2>>> def hello(name):if name=='me':print 'Hello you!'else:print 'Hello '+name>>> hello('James')Hello JamesNow clicking on the line hello(…) and hitting ENTER, we get the following again.>>> def hello(name):if name=='me':print 'Hello you!'else:print 'Hello '+nameBut with the new IDLE it is not so. Doing the same would yield the following,IDLE 1.2b2>>> def hello(name):if name=='me':print 'Hello you'else:print 'Hello '+name>>> hello('me')Hello youNow, again clicking on hello(...) definition line and hitting ENTER, we get the following>>> def hello(name):if name=='me':print 'Hello you'else:print 'Hello '+nameSyntaxError: invalid syntax
---------------------------------------------------------------------------------------------"WYNINNWYWG"Sourav Datta
_______________________________________________ IDLE-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/idle-dev
