From 3f4f91704c88c48448a5593a675cd885ebf717d1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 19 Nov 1991 20:41:07 +0000 Subject: Comment 0.9.1 alternative to windows.remove(win) out. --- Lib/lib-stdwin/mainloop.py | 9 +++++---- Lib/stdwin/mainloop.py | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Lib/lib-stdwin/mainloop.py b/Lib/lib-stdwin/mainloop.py index 9142d02..0cf5bde 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 9142d02..0cf5bde 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. -- cgit v0.12