This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 2.3b2 unpack tuple of wrong size in after_cancel
Type: Stage:
Components: Tkinter Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: mdcowles, nnorwitz
Priority: normal Keywords:

Created on 2003-07-01 02:28 by mdcowles, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tkinter.diff nnorwitz, 2003-07-01 03:58 patch 1
Messages (4)
msg16746 - (view) Author: Matthew Cowles (mdcowles) Date: 2003-07-01 02:28
The new code in after_cancel in the version of Tkinter.py 
that ships with 2.3b2:

(script, type) = self.tk.splitlist(
                self.tk.call('after', 'info', id))

fails because the splitlist call returns something like

('after#53',)

at least when linking against the Tcl and Tk 8.4 libraries that 
Fink installs under Mac OS X.
msg16747 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-07-01 03:58
Logged In: YES 
user_id=33168

Matthew can you test the attached patch to verify if it
fixes the problem.  This (still) works for me on Tk 8.3.
msg16748 - (view) Author: Matthew Cowles (mdcowles) Date: 2003-07-01 17:31
Logged In: YES 
user_id=198518

Yes, the patch works fine.

With a little more investigation, I find that with Tcl 8.4 you 
sometimes get back a 2-tuple and sometimes a 1-tuple. So the 
comment is trivially misleading.
msg16749 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-07-01 21:13
Logged In: YES 
user_id=33168

Ok, I updated the comment.  Let me know if you have a better
comment.

Checked in as:
 * Lib/lib-tk/Tkinter.py 1.177
 * Misc/NEWS 1.807
History
Date User Action Args
2022-04-10 16:09:34adminsetgithub: 38753
2003-07-01 02:28:18mdcowlescreate