mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	[Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats() match its docstring.
Backport candidate. Though it's an API change, this is a pretty obscure portion of the API.
This commit is contained in:
		
							parent
							
								
									4bc64aaef7
								
							
						
					
					
						commit
						1f3ebe0b10
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -186,10 +186,10 @@ static int pcall[PCALL_NUM];
 | 
			
		|||
PyObject *
 | 
			
		||||
PyEval_GetCallStats(PyObject *self)
 | 
			
		||||
{
 | 
			
		||||
	return Py_BuildValue("iiiiiiiiii",
 | 
			
		||||
	return Py_BuildValue("iiiiiiiiiii",
 | 
			
		||||
			     pcall[0], pcall[1], pcall[2], pcall[3],
 | 
			
		||||
			     pcall[4], pcall[5], pcall[6], pcall[7],
 | 
			
		||||
			     pcall[8], pcall[9]);
 | 
			
		||||
			     pcall[8], pcall[9], pcall[10]);
 | 
			
		||||
}
 | 
			
		||||
#else
 | 
			
		||||
#define PCALL(O)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue