Get information about arguments passed into a particular frame. A tuple of four things is returned: (args, varargs, varkw, locals). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'locals' i
(frame)
| 111 | return args, varargs, varkw, func.__defaults__ |
| 112 | |
| 113 | def getargvalues(frame): |
| 114 | """Get information about arguments passed into a particular frame. |
| 115 | |
| 116 | A tuple of four things is returned: (args, varargs, varkw, locals). |
| 117 | 'args' is a list of the argument names (it may contain nested lists). |
| 118 | 'varargs' and 'varkw' are the names of the * and ** arguments or None. |
| 119 | 'locals' is the locals dictionary of the given frame. |
| 120 | |
| 121 | """ |
| 122 | args, varargs, varkw = getargs(frame.f_code) |
| 123 | return args, varargs, varkw, frame.f_locals |
| 124 | |
| 125 | def joinseq(seq): |
| 126 | if len(seq) == 1: |