From: Guido van Rossum Date: Tue, 19 Nov 1991 20:41:07 +0000 (+0000) Subject: Comment 0.9.1 alternative to windows.remove(win) out. X-Git-Tag: v0.9.8~739 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f4f91704c88c48448a5593a675cd885ebf717d1;p=thirdparty%2FPython%2Fcpython.git Comment 0.9.1 alternative to windows.remove(win) out. --- diff --git a/Lib/lib-stdwin/mainloop.py b/Lib/lib-stdwin/mainloop.py index 9142d02e73fa..0cf5bde6611c 100644 --- a/Lib/lib-stdwin/mainloop.py +++ b/Lib/lib-stdwin/mainloop.py @@ -30,10 +30,11 @@ def register(win): def unregister(win): if win in windows: windows.remove(win) # Not in 0.9.1 - for i in range(len(windows)): - if windows[i] = win: - del windows[i] - break + # 0.9.1 solution: + #for i in range(len(windows)): + # if windows[i] = win: + # del windows[i] + # break # Interfaces used by WindowSched. diff --git a/Lib/stdwin/mainloop.py b/Lib/stdwin/mainloop.py index 9142d02e73fa..0cf5bde6611c 100755 --- a/Lib/stdwin/mainloop.py +++ b/Lib/stdwin/mainloop.py @@ -30,10 +30,11 @@ def register(win): def unregister(win): if win in windows: windows.remove(win) # Not in 0.9.1 - for i in range(len(windows)): - if windows[i] = win: - del windows[i] - break + # 0.9.1 solution: + #for i in range(len(windows)): + # if windows[i] = win: + # del windows[i] + # break # Interfaces used by WindowSched.