mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)
... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
This commit is contained in:
		
							parent
							
								
									66299a49f0
								
							
						
					
					
						commit
						c40a350db0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -632,7 +632,7 @@ Py_NewInterpreter(void)
 | 
			
		|||
handle_error:
 | 
			
		||||
    /* Oops, it didn't work.  Undo it all. */
 | 
			
		||||
 | 
			
		||||
    PyErr_Print();
 | 
			
		||||
    PyErr_PrintEx(0);
 | 
			
		||||
    PyThreadState_Clear(tstate);
 | 
			
		||||
    PyThreadState_Swap(save_tstate);
 | 
			
		||||
    PyThreadState_Delete(tstate);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue