src/eric7/DebugClients/Python/DebugUtilities.py

branch
eric7
changeset 10417
c6011e501282
parent 10321
4a017fdf316f
child 10439
21c28b0f9e41
equal deleted inserted replaced
10416:5d807e997391 10417:c6011e501282
45 @param frame reference to a frame object to be processed 45 @param frame reference to a frame object to be processed
46 @type frame 46 @type frame
47 @return tuple of four things, where 'args' is a list of the argument names, 47 @return tuple of four things, where 'args' is a list of the argument names,
48 'varargs' and 'varkw' are the names of the * and ** arguments or None 48 'varargs' and 'varkw' are the names of the * and ** arguments or None
49 and 'locals' is the locals dictionary of the given frame. 49 and 'locals' is the locals dictionary of the given frame.
50 @rtype ArgInfo
50 @exception TypeError raised if the input parameter is not a frame object 51 @exception TypeError raised if the input parameter is not a frame object
51 """ 52 """
52 if not isframe(frame): 53 if not isframe(frame):
53 raise TypeError("{0!r} is not a frame object".format(frame)) 54 raise TypeError("{0!r} is not a frame object".format(frame))
54 55
64 @param co reference to a code object to be processed 65 @param co reference to a code object to be processed
65 @type code 66 @type code
66 @return tuple of four things, where 'args' and 'kwonlyargs' are lists of 67 @return tuple of four things, where 'args' and 'kwonlyargs' are lists of
67 argument names, and 'varargs' and 'varkw' are the names of the 68 argument names, and 'varargs' and 'varkw' are the names of the
68 * and ** arguments or None. 69 * and ** arguments or None.
70 @rtype tuple of (list of str, list of str, list of str, list of str)
69 @exception TypeError raised if the input parameter is not a code object 71 @exception TypeError raised if the input parameter is not a code object
70 """ 72 """
71 if not iscode(co): 73 if not iscode(co):
72 raise TypeError("{0!r} is not a code object".format(co)) 74 raise TypeError("{0!r} is not a code object".format(co))
73 75

eric ide

mercurial