0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 16:45:42 +01:00
cpython/Lib/util.py

10 lines
207 B
Python
Raw Normal View History

1990-10-13 20:23:40 +01:00
# Module 'util' -- some useful functions that dont fit elsewhere
# Remove an item from a list at most once
#
def remove(item, list):
for i in range(len(list)):
if list[i] = item:
del list[i]
break