[docs] [issue6678] inspect.currentframe documentation omits optional depth parameter

Benjamin Peterson report at bugs.python.org
Mon Aug 9 18:22:22 CEST 2010


Benjamin Peterson <benjamin at python.org> added the comment:

2010/8/9 Terry J. Reedy <report at bugs.python.org>:
>
> Terry J. Reedy <tjreedy at udel.edu> added the comment:
>
> Benjamin: Previously, .currentframe() == sys._getframe() == sys._getframe(0) but you redefined it as sys._getframe(1), which is a change in semantics. Is this intentional (ie, was it buggy before)?

Yes, currentframe() doesn't take an argument. Whether it should or not
is a feature request.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6678>
_______________________________________


More information about the docs mailing list