mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			207 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			207 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# 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
 |