1. mirror
  2. python-release25-maint

Commits

martin.v.loewis  committed e748730

[svn r67737] Backport of r59654.
Issue #4342: Always convert Text.index result to string.

  • Participants
  • Parent commits d9e62d6
  • Branches release25-maint

Comments (0)

Files changed (2)

File Lib/lib-tk/Tkinter.py

View file
 tk.mainloop()
 """
 
-__version__ = "$Revision: 67084 $"
+__version__ = "$Revision: 67737 $"
 
 import sys
 if sys.platform == "win32":
         return self.tk.call(self._w, "image", "names")
     def index(self, index):
         """Return the index in the form line.char for INDEX."""
-        return self.tk.call(self._w, 'index', index)
+        return str(self.tk.call(self._w, 'index', index))
     def insert(self, index, chars, *args):
         """Insert CHARS before the characters at INDEX. An additional
         tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""

File Misc/NEWS

View file
 Library
 -------
 
+- Issue #4342: Always convert Text.index result to string.
+
 - Issue 3248: Allow placing ScrolledText in a PanedWindow.
 
 - Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to