mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 09:37:25 +01:00 
			
		
		
		
	Put more useful information into the docstring for utils.seq.window.
This commit is contained in:
		
							parent
							
								
									8693dbd5cc
								
							
						
					
					
						commit
						00fc0584ed
					
				@ -28,7 +28,9 @@
 | 
			
		||||
###
 | 
			
		||||
 | 
			
		||||
def window(L, size):
 | 
			
		||||
    """Returns a sliding 'window' through the list L of size size."""
 | 
			
		||||
    """list * size -> window iterable
 | 
			
		||||
 | 
			
		||||
    Returns a sliding 'window' through the list L of size size."""
 | 
			
		||||
    assert not isinstance(L, int), 'Argument order swapped: window(L, size)'
 | 
			
		||||
    if size < 1:
 | 
			
		||||
        raise ValueError, 'size <= 0 disallowed.'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user