summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-11 09:55:53 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-11 09:55:53 (GMT)
commite3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7 (patch)
treecd848e76f0b7bb28db9263c5fdd9340e61046a5e /Doc/library/inspect.rst
parent2f32c39227e70215c9d9e8e4e50cb1227fc083d1 (diff)
downloadcpython-e3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7.zip
cpython-e3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7.tar.gz
cpython-e3c3db59b522d18ed60b1e7b0be7d8e9eeec41a7.tar.bz2
Documentation for r5990[3567].
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index c1f0f00..7893b69 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -214,6 +214,10 @@ Note:
defined in the :mod:`imp` module; see the documentation for that module for
more information on module types.
+ .. versionchanged:: 2.6
+ Returns a :term:`named tuple` ``ModuleInfo(name, suffix, mode,
+ module_type)``.
+
.. function:: getmodulename(path)
@@ -405,6 +409,10 @@ Classes and functions
default argument values or None if there are no default arguments; if this tuple
has *n* elements, they correspond to the last *n* elements listed in *args*.
+ .. versionchanged:: 2.6
+ Returns a :term:`named tuple` ``ArgSpec(args, varargs, keywords,
+ defaults)``.
+
.. function:: getargvalues(frame)
@@ -414,6 +422,10 @@ Classes and functions
names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals
dictionary of the given frame.
+ .. versionchanged:: 2.6
+ Returns a :term:`named tuple` ``ArgInfo(args, varargs, keywords,
+ locals)``.
+
.. function:: formatargspec(args[, varargs, varkw, defaults, formatarg, formatvarargs, formatvarkw, formatvalue, join])
@@ -479,6 +491,10 @@ line.
Get information about a frame or traceback object. A 5-tuple is returned, the
last five elements of the frame's frame record.
+ .. versionchanged:: 2.6
+ Returns a :term:`named tuple` ``Traceback(filename, lineno, function,
+ code_context, index)``.
+
.. function:: getouterframes(frame[, context])