[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

Guilherme Polo report at bugs.python.org
Tue Mar 24 03:58:04 CET 2009


Guilherme Polo <ggpolo at gmail.com> added the comment:

You do not need IDLE to reproduce the problem:

import Tkinter

text = Tkinter.Text()
text.pack()
text.insert('1.0',
        'class C:\n\tdef m(self, c):\n                '
        'if c:\n                        c = False\n'
        '\t\t\tc = False\n                else:\n        '
        '\t\tc = True\n\t\tc = True\n')
text.mainloop()

Then run it with tk 8.4 and tk 8.5.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5129>
_______________________________________


More information about the Python-bugs-list mailing list