[Python-checkins] cpython (3.4): Issue #6181: Fixed errors in tkinter.Listbox docstrings.

serhiy.storchaka python-checkins at python.org
Mon Jun 2 15:54:13 CEST 2014


http://hg.python.org/cpython/rev/932532360578
changeset:   90969:932532360578
branch:      3.4
parent:      90966:d7a491c6cbdb
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Jun 02 16:51:44 2014 +0300
summary:
  Issue #6181: Fixed errors in tkinter.Listbox docstrings.
Based on patch by Guilherme Polo.

files:
  Lib/tkinter/__init__.py |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -2597,10 +2597,10 @@
         return self.tk.splitlist(self.tk.call(
             self._w, 'curselection'))
     def delete(self, first, last=None):
-        """Delete items from FIRST to LAST (not included)."""
+        """Delete items from FIRST to LAST (included)."""
         self.tk.call(self._w, 'delete', first, last)
     def get(self, first, last=None):
-        """Get list of items from FIRST to LAST (not included)."""
+        """Get list of items from FIRST to LAST (included)."""
         if last:
             return self.tk.splitlist(self.tk.call(
                 self._w, 'get', first, last))
@@ -2634,7 +2634,7 @@
         self.tk.call(self._w, 'selection', 'anchor', index)
     select_anchor = selection_anchor
     def selection_clear(self, first, last=None):
-        """Clear the selection from FIRST to LAST (not included)."""
+        """Clear the selection from FIRST to LAST (included)."""
         self.tk.call(self._w,
                  'selection', 'clear', first, last)
     select_clear = selection_clear
@@ -2644,7 +2644,7 @@
             self._w, 'selection', 'includes', index))
     select_includes = selection_includes
     def selection_set(self, first, last=None):
-        """Set the selection from FIRST to LAST (not included) without
+        """Set the selection from FIRST to LAST (included) without
         changing the currently selected elements."""
         self.tk.call(self._w, 'selection', 'set', first, last)
     select_set = selection_set

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list