mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback (#102779)
This commit is contained in:
		
							parent
							
								
									039714d00f
								
							
						
					
					
						commit
						e1e9bab006
					
				
					 22 changed files with 103 additions and 36 deletions
				
			
		|  | @ -2670,11 +2670,13 @@ stderr -- standard error object; used for error messages\n\ | |||
|   By assigning other file objects (or objects that behave like files)\n\ | ||||
|   to these, it is possible to redirect all of the interpreter's I/O.\n\ | ||||
| \n\ | ||||
| last_exc - the last uncaught exception\n\ | ||||
|   Only available in an interactive session after a\n\ | ||||
|   traceback has been printed.\n\ | ||||
| last_type -- type of last uncaught exception\n\ | ||||
| last_value -- value of last uncaught exception\n\ | ||||
| last_traceback -- traceback of last uncaught exception\n\ | ||||
|   These three are only available in an interactive session after a\n\ | ||||
|   traceback has been printed.\n\ | ||||
|   These three are the (deprecated) legacy representation of last_exc.\n\ | ||||
| " | ||||
| ) | ||||
| /* concatenating string here */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel