mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Fix error in 2-to-3 translation of docs.
This commit is contained in:
		
							parent
							
								
									2ca24f022e
								
							
						
					
					
						commit
						7c8494b6e2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -361,7 +361,7 @@ loops that truncate the stream.
 | 
				
			||||||
          # islice('ABCDEFG', 2, None) --> C D E F G
 | 
					          # islice('ABCDEFG', 2, None) --> C D E F G
 | 
				
			||||||
          # islice('ABCDEFG', 0, None, 2) --> A C E G
 | 
					          # islice('ABCDEFG', 0, None, 2) --> A C E G
 | 
				
			||||||
          s = slice(*args)
 | 
					          s = slice(*args)
 | 
				
			||||||
          it = range(s.start or 0, s.stop or sys.maxsize, s.step or 1)
 | 
					          it = iter(range(s.start or 0, s.stop or sys.maxsize, s.step or 1))
 | 
				
			||||||
          nexti = next(it)
 | 
					          nexti = next(it)
 | 
				
			||||||
          for i, element in enumerate(iterable):
 | 
					          for i, element in enumerate(iterable):
 | 
				
			||||||
              if i == nexti:
 | 
					              if i == nexti:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue