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

William Mill report at bugs.python.org
Mon Aug 9 03:05:32 CEST 2010

William Mill <bill.mill at gmail.com> added the comment:

I've updated the patch to be based on the py3k branch, and updated the sys module's documentation for _getframe, since inspect just aliases sys._getframe to currentframe().

I've updated the argument list of both inspect.currentframe and sys._getframe to reflect that depth isn't an optional argument, but one with a default value; this matches more closely with the other documentation in those two modules.

Also, the function signature is automatically italicized; here's a screenshot of what it looks like: http://img.skitch.com/20100809-xddf43hy2ifxc3b2an4ae85fre.jpg

Added file: http://bugs.python.org/file18449/currentframe.diff

Python tracker <report at bugs.python.org>

More information about the docs mailing list