]> granicus.if.org Git - python/commitdiff
Merged revisions 66995-66996 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Tue, 21 Oct 2008 22:28:54 +0000 (22:28 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 21 Oct 2008 22:28:54 +0000 (22:28 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66995 | benjamin.peterson | 2008-10-21 17:18:29 -0500 (Tue, 21 Oct 2008) | 1 line

  return ArgInfo from inspect.getargvalues #4092
........
  r66996 | benjamin.peterson | 2008-10-21 17:20:31 -0500 (Tue, 21 Oct 2008) | 1 line

  add NEWs note for last change
........

Lib/inspect.py
Misc/NEWS

index 2363826ab151cb3ebc476498e880e2ab46093ffe..d3d946d525c1c860c4490ff1585803d4d4559ecc 100644 (file)
@@ -819,7 +819,7 @@ def getargvalues(frame):
     'varargs' and 'varkw' are the names of the * and ** arguments or None.
     'locals' is the locals dictionary of the given frame."""
     args, varargs, varkw = getargs(frame.f_code)
-    return args, varargs, varkw, frame.f_locals
+    return ArgInfo(args, varargs, varkw, frame.f_locals)
 
 def joinseq(seq):
     if len(seq) == 1:
index 4984693670790c350bca1e6b9e526290ac3552a2..c254787c8ef534a51528c901b8d59b5596084df7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #4092: Return ArgInfo as promised in the documentation from
+  inspect.getargvalues.
+
 - Issue #4014: Don't claim that Python has an Alpha release status, in addition
   to claiming it is Mature.