<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
IDLE bugs:<br>
I am running Windows XP Pro on a 1.6 Ghz AMD processor, with<br>
Python Version 2.5.2, Vpython Version 24.2 and IDLE 1.2.2<br>
<br>
Have the following bugs been fixed in the latest IDLE incarnation?<br>
<br>
Bug 1.<br>
Function keys F9 through F12 remain active While python script is
still running!<br>
<br>
F9 I don't know what this does! except introduce a delay
between input and response!<br>
<br>
F10 gives access to IDLE menu (when in IDLE window) but only
causes a loss of<br>
user input and the consumption of valuable Keys when python
script is running!<br>
<br>
F11 I can't figure out what this does! But it has the effect
of (occasionally)<br>
inserting a chr(8) character into input stream during python
keyboard input!<br>
<br>
F12 Do nothing! but can be reassigned with IDLE config.<br>
<br>
Bug 2.<br>
When editing in IDLE, a critical loss of indentation format can
be recovered<br>
by the following method!<br>
<br>
ctrl+home ## move to top of script<br>
## repeat the following 3 keystrokes<br>
<br>
end ## jump to end of line<br>
delete ## join lines<br>
enter ## restore indentation<br>
<br>
## until the end of script<br>
<br>
Repeating this sequence for every line of code will restore the
indentation<br>
of your program...<br>
Well <b>almost</b>!<br>
Except for the <b>ELSE</b> & <b>ELIF</b> statements!<br>
When IDLE encounters these instructions it loses the plot
(indentation that is).<br>
It does not move to the correct level, thereby failing to restore
the correct<br>
program interpretation.<br>
This produces code with bad syntax:<br>
<br>
Example:<br>
Start with no indentation.<br>
if<br>
if<br>
elif<br>
else<br>
elif<br>
Apply IDLE parser. (end,delete,enter)<br>
if<br>
if<br>
elif<br>
else<br>
elif<br>
Can not have <b>else</b> followed by <b>elif</b><br>
Should be:<br>
if<br>
if<br>
elif<br>
else<br>
elif<br>
<br>
or<br>
if<br>
if<br>
else<br>
else<br>
Can not have <b>else</b> followed by <b>else</b><br>
Should be:<br>
if<br>
if<br>
else<br>
else<br>
<br>
or<br>
if<br>
if<br>
else<br>
elif<br>
Should be:<br>
if<br>
if<br>
else<br>
elif<br>
<br>
<br>
Bug 3.<br>
Similar to Bug 2, but involves function definition 'Def'.<br>
When reconstructing python files that have lost indentation, the
following key sequences should restore the correct
indentation.<br>
<br>
ctrl+home<br>
<br>
end<br>
delete<br>
enter<br>
<br>
When these 3 keystrokes are repeated for every line of code, the
program should be restored... <br>
But when a 'Def' instruction is encountered, the end of the
function carries over to the next line of code, <br>
so that an unwanted indentation is inserted.<br>
<br>
Example:<br>
Start with no indentation.<br>
<br>
Def myfunction():<br>
return True<br>
<br>
Def otherfunction():<br>
Return False<br>
<br>
Apply IDLE's Parser (end,delete,enter)<br>
<br>
Def myfunction():<br>
return True<br>
<br>
Def otherfunction():<br>
Return False<br>
<br>
Should be:<br>
<br>
Def myfunction():<br>
return True<br>
<br>
Def otherfunction():<br>
Return False<br>
<br>
Bug 4.<br>
When entering remarks behind hash marks, the use of the ')'
character<br>
causes the bell to ring. As though a close bracket warning had
happened!<br>
This is a trivial thing but still...<br>
<br>
Bug 5.<br>
This isn't really a bug, but it bugs me! So I'll include it here.<br>
I like using IDLE as a convenient text editor that has slick
tabulation, but...<br>
The right mouse key drops down a neat menu with breakpoint set
unset!<br>
What I really need is cut, copy & paste! As well as
breakpoint control.<br>
That would be my wish list for IDLE.<br>
<br>
If these bugs have been addressed then which Version should I download?<br>
<br>
Symion<br>
2008:April:12:Saturday<br>
<br>
</body>
</html>