Message80990
The problem appeared in the initial display, with a file similar to bug.py.
Here is how to reproduce it:
1. open the bug.py file with IDLE 2.5 (or with Firefox from the
bugs.python.org website): the display shows the file the way the
compiler will (probably) see it;
2. open the bug.py file with IDLE 2.6: the line 7 (just after "else:")
is displayed differently.
Summary: IDLE 2.6 doesn't display the indentation that the compiler will
see.
-----------------------------------------
About the secondary problem with Untabify (discovered when trying to
solve the display problem without having to reinstall Python 2.5):
Actually, Untabify is more a solution than a problem, except maybe that
the only safe value is 8 spaces for a tabulation. Using a different
value on legacy code (old code without tests) might add subtle bugs.
According to the Python Language Reference:
"First, tabs are replaced (from left to right) by one to eight spaces
such that the total number of characters up to and including the
replacement is a multiple of eight (this is intended to be the same rule
as used by Unix)."
----------------------------------------- |
|
Date |
User |
Action |
Args |
2009-02-02 20:11:57 | sy12 | set | recipients:
+ sy12, rhettinger |
2009-02-02 20:11:57 | sy12 | set | messageid: <1233605517.16.0.53101300753.issue5129@psf.upfronthosting.co.za> |
2009-02-02 20:11:55 | sy12 | link | issue5129 messages |
2009-02-02 20:11:54 | sy12 | create | |
|