mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Initial revision
This commit is contained in:
parent
df79a1ee19
commit
c636014c43
47 changed files with 5492 additions and 0 deletions
9
Lib/lib-old/util.py
Normal file
9
Lib/lib-old/util.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue