]> granicus.if.org Git - python/commitdiff
Note that sys._getframe is not guaranteed to exist in all implementations of Python...
authorMichael Foord <fuzzyman@voidspace.org.uk>
Sun, 13 Sep 2009 16:46:19 +0000 (16:46 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Sun, 13 Sep 2009 16:46:19 +0000 (16:46 +0000)
Doc/library/inspect.rst
Doc/library/sys.rst

index bea12c9f634bf5157203643d721d1dcd4bf63527..ac89850639f3270b1747785dc171b61f2f5cf6dc 100644 (file)
@@ -567,6 +567,11 @@ line.
 
    Return the frame object for the caller's stack frame.
 
+   This function relies on Python stack frame support in the interpreter, which
+   isn't guaranteed to exist in all implementations of Python. If running in
+   an implmentation without Python stack frame support this function returns
+   ``None``.
+
 
 .. function:: stack([context])
 
index 0005792774eb1b8a6ae09eb4109fa8c6f6523b04..7a3f642e4219a21241184b9037f25ca17039d4e2 100644 (file)
@@ -417,7 +417,8 @@ always available.
    that is deeper than the call stack, :exc:`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.
+   This function should be used for internal and specialized purposes only. It
+   is not guaranteed to exist in all implementations of Python.
 
 
 .. function:: getprofile()