Message91459
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. |
|
Date |
User |
Action |
Args |
2009-08-10 18:25:01 | llimllib | set | recipients:
+ llimllib, georg.brandl |
2009-08-10 18:25:01 | llimllib | set | messageid: <1249928701.73.0.0206445902812.issue6678@psf.upfronthosting.co.za> |
2009-08-10 18:25:00 | llimllib | link | issue6678 messages |
2009-08-10 18:25:00 | llimllib | create | |
|