Comment 0.9.1 alternative to windows.remove(win) out.

This commit is contained in:
Guido van Rossum 1991-11-19 20:41:07 +00:00
parent c6913e7da2
commit 3f4f91704c
2 changed files with 10 additions and 8 deletions

View File

@ -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.

View File

@ -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.