mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue 6581. Michael Foord
This commit is contained in:
		
							parent
							
								
									3591a8f81d
								
							
						
					
					
						commit
						fb0e0570f7
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -952,7 +952,10 @@ def getinnerframes(tb, context=1): | |||
|         tb = tb.tb_next | ||||
|     return framelist | ||||
| 
 | ||||
| if hasattr(sys, '_getframe'): | ||||
|     currentframe = sys._getframe | ||||
| else: | ||||
|     currentframe = lambda _=None: None | ||||
| 
 | ||||
| def stack(context=1): | ||||
|     """Return a list of records for the stack above the caller's frame.""" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Foord
						Michael Foord