[Python-checkins] cpython (merge 3.5 -> default): Issue #22115: Updated Misc/NEWS.

serhiy.storchaka python-checkins at python.org
Sun Jun 26 10:48:13 EDT 2016


https://hg.python.org/cpython/rev/c4839c36a71f
changeset:   102183:c4839c36a71f
parent:      102180:a201180c0f77
parent:      102182:293ec9547334
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Jun 26 17:47:46 2016 +0300
summary:
  Issue #22115: Updated Misc/NEWS.

files:
  Lib/tkinter/test/test_tkinter/test_variables.py |  4 ++--
  Misc/NEWS                                       |  4 +++-
  2 files changed, 5 insertions(+), 3 deletions(-)


diff --git a/Lib/tkinter/test/test_tkinter/test_variables.py b/Lib/tkinter/test/test_tkinter/test_variables.py
--- a/Lib/tkinter/test/test_tkinter/test_variables.py
+++ b/Lib/tkinter/test/test_tkinter/test_variables.py
@@ -89,7 +89,7 @@
 
     def test_trace_old(self):
         # Old interface
-        v = Var(self.root)
+        v = Variable(self.root)
         vname = str(v)
         trace = []
         def read_tracer(*args):
@@ -138,7 +138,7 @@
         self.assertEqual(trace, [('write', vname, '', 'u')])
 
     def test_trace(self):
-        v = Var(self.root)
+        v = Variable(self.root)
         vname = str(v)
         trace = []
         def read_tracer(*args):
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,7 +13,9 @@
 - Issue #22115: Added methods trace_add, trace_remove and trace_info in the
   tkinter.Variable class.  They replace old methods trace_variable, trace,
   trace_vdelete and trace_vinfo that use obsolete Tcl commands and might
-  not work in future versions of Tcl.
+  not work in future versions of Tcl.  Fixed old tracing methods:
+  trace_vdelete() with wrong mode no longer break tracing, trace_vinfo() now
+  always returns a list of pairs of strings, tracing in the "u" mode now works.
 
 - Issue #26243: Only the level argument to zlib.compress() is keyword argument
   now.  The first argument is positional-only.

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


More information about the Python-checkins mailing list