mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Inline PyIter_Next() matching the other itertools code.
This commit is contained in:
		
							parent
							
								
									a6ea44aed1
								
							
						
					
					
						commit
						f109414094
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1164,7 +1164,8 @@ map_next(mapobject *lz) | |||
|         return NULL; | ||||
| 
 | ||||
|     for (i=0 ; i<numargs ; i++) { | ||||
|         val = PyIter_Next(PyTuple_GET_ITEM(lz->iters, i)); | ||||
|         PyObject *it = PyTuple_GET_ITEM(lz->iters, i); | ||||
|         val = Py_TYPE(it)->tp_iternext(it); | ||||
|         if (val == NULL) { | ||||
|             Py_DECREF(argtuple); | ||||
|             return NULL; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger