Closed as not planned
Description
Currently, the inspect module has the getouterframes function which gets a list of FrameInfo objects for a frame and all outer frames. However, there is no function that just gets the next outer frame (the current frame’s caller).
It is possible to get that frame by using the f_back attribute from the frame object and then convert the resulting object into a FrameInfo instance. However, that does seem less optimal and it would be much easier to just have a getouterframe function.
I would very much like to take on creating the getouterframe function.