[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-08 Thread William Mill
William Mill added the comment: Terry: fair enough, I'll add that it's required to be an integer. I just meant that the brackets seemed not to be around other keyword arguments, not that it's not optional, sorry for being unclear. Ben and/or Terry: Would you prefer the inspe

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-08 Thread William Mill
William Mill 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 sy

[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-08 Thread William Mill
William Mill added the comment: This patch is built against trunk, because I'm not sure what branch I should build it against. If that's the wrong branch, I'd be happy to figure it out against the right branch. I tested both the help() and the doc build, both worked as ex

[issue6678] inspect.currentframe documentation omits optional depth parameter

2009-08-10 Thread William Mill
New submission from William Mill : help(inspect.currentframe) reads: - _getframe(...) _getframe([depth]) -> frameobject Return a frame object from the call stack. If optional integer depth is given, return the frame object that many calls below the top