Kaydet (Commit) 4d9b0cd4 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

return ArgInfo from inspect.getargvalues #4092

üst fbc0b0ca
...@@ -819,7 +819,7 @@ def getargvalues(frame): ...@@ -819,7 +819,7 @@ def getargvalues(frame):
'varargs' and 'varkw' are the names of the * and ** arguments or None. 'varargs' and 'varkw' are the names of the * and ** arguments or None.
'locals' is the locals dictionary of the given frame.""" 'locals' is the locals dictionary of the given frame."""
args, varargs, varkw = getargs(frame.f_code) 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): def joinseq(seq):
if len(seq) == 1: if len(seq) == 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment