src/eric7/DebugClients/Python/DebugUtilities.py

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 10439
21c28b0f9e41
child 10551
d80184d38152
equal deleted inserted replaced
10366:411df92e881f 10460:3b34efa2857c
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2015 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2015 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing utilities functions for the debug client. 7 Module implementing utilities functions for the debug client.
8 """ 8 """
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