Is `inspect.stack(n)` guaranteed to be equivalent to `inspect.getouterframes(inspect.currentframe(), n)`?

Viewed 19

I haven't been able to reproduce any scenario which yields a different output for:

inspect.stack(n) vs inspect.getouterframes(inspect.currentframe(), n).

The description of all 3 functions (here) doesn't really imply one way or the other.

So I'd like to determine whether or not these two options are equivalent (guaranteed to always return the same result).

0 Answers
Related