This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author llimllib
Recipients georg.brandl, llimllib
Date 2009-08-10.18:24:59
SpamBayes Score 6.591555e-08
Marked as misclassified No
Message-id <1249928701.73.0.0206445902812.issue6678@psf.upfronthosting.co.za>
In-reply-to
Content
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 of the
stack. If that is deeper than the call stack, ValueError is raised.  The
default for depth is zero, returning the frame at the top of the call stack.
        
This function should be used for internal and specialized
purposes only.
-------------------------------

The python library documentation, however, doesn't mention the optional
depth parameter:

-------------------------------
inspect.currentframe()
    Return the frame object for the caller’s stack frame.
-------------------------------

I think substituting the help() text for the library documentation's
text would be an improvement.
History
Date User Action Args
2009-08-10 18:25:01llimllibsetrecipients: + llimllib, georg.brandl
2009-08-10 18:25:01llimllibsetmessageid: <1249928701.73.0.0206445902812.issue6678@psf.upfronthosting.co.za>
2009-08-10 18:25:00llimlliblinkissue6678 messages
2009-08-10 18:25:00llimllibcreate