Inspect - Frame
Riassunto:
??? Documentazione
Codice
import inspect
current_frame = inspect.currentframe()
call_frame = inspect.getouterframes(current_frame, 2)
print('caller frame:', call_frame[1][5])
>>> 1 #Dont know what it meansSearch
Jul 31, 20241 min read
Riassunto:
??? Documentazione
import inspect
current_frame = inspect.currentframe()
call_frame = inspect.getouterframes(current_frame, 2)
print('caller frame:', call_frame[1][5])
>>> 1 #Dont know what it means