a(rgs) Print the argument list of the current function.
(self, arg)
| 1201 | return 1 |
| 1202 | |
| 1203 | def do_args(self, arg): |
| 1204 | """a(rgs) |
| 1205 | Print the argument list of the current function. |
| 1206 | """ |
| 1207 | co = self.curframe.f_code |
| 1208 | dict = self.curframe_locals |
| 1209 | n = co.co_argcount + co.co_kwonlyargcount |
| 1210 | if co.co_flags & inspect.CO_VARARGS: n = n+1 |
| 1211 | if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1 |
| 1212 | for i in range(n): |
| 1213 | name = co.co_varnames[i] |
| 1214 | if name in dict: |
| 1215 | self.message('%s = %s' % (name, self._safe_repr(dict[name], name))) |
| 1216 | else: |
| 1217 | self.message('%s = *** undefined ***' % (name,)) |
| 1218 | do_a = do_args |
| 1219 | |
| 1220 | def do_retval(self, arg): |
nothing calls this directly
no test coverage detected