Documentation/Source/eric6.DebugClients.Python3.DebugUtilities.html

changeset 4455
ca13a6f6c452
child 5144
1ab536d25072
equal deleted inserted replaced
4453:e8bea5026dd0 4455:ca13a6f6c452
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.DebugClients.Python3.DebugUtilities</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.DebugClients.Python3.DebugUtilities</h1>
23 <p>
24 Module implementing utilities functions for the debug client.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>ArgInfo</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Functions</h3>
35 <table>
36 <tr>
37 <td><a href="#_getfullargs">_getfullargs</a></td>
38 <td>Protected function to get information about the arguments accepted by a code object.</td>
39 </tr><tr>
40 <td><a href="#formatargvalues">formatargvalues</a></td>
41 <td>Function to format an argument spec from the 4 values returned by getargvalues.</td>
42 </tr><tr>
43 <td><a href="#getargvalues">getargvalues</a></td>
44 <td>Function to get information about arguments passed into a particular frame.</td>
45 </tr>
46 </table>
47 <hr /><hr />
48 <a NAME="_getfullargs" ID="_getfullargs"></a>
49 <h2>_getfullargs</h2>
50 <b>_getfullargs</b>(<i>co</i>)
51 <p>
52 Protected function to get information about the arguments accepted
53 by a code object.
54 </p><dl>
55 <dt><i>co</i> (code)</dt>
56 <dd>
57 reference to a code object to be processed
58 </dd>
59 </dl><dl>
60 <dt>Returns:</dt>
61 <dd>
62 tuple of four things, where 'args' and 'kwonlyargs' are lists of
63 argument names, and 'varargs' and 'varkw' are the names of the
64 * and ** arguments or None.
65 </dd>
66 </dl><dl>
67 <dt>Raises <b>TypeError</b>:</dt>
68 <dd>
69 raised if the input parameter is not a code object
70 </dd>
71 </dl>
72 <div align="right"><a href="#top">Up</a></div>
73 <hr /><hr />
74 <a NAME="formatargvalues" ID="formatargvalues"></a>
75 <h2>formatargvalues</h2>
76 <b>formatargvalues</b>(<i>args, varargs, varkw, locals, formatarg=str, formatvarargs=lambda name: '*' + name, formatvarkw=lambda name: '**' + name, formatvalue=lambda value: '=' + repr(value)</i>)
77 <p>
78 Function to format an argument spec from the 4 values returned
79 by getargvalues.
80 </p><dl>
81 <dt><i>args</i> (list of str)</dt>
82 <dd>
83 list of argument names
84 </dd><dt><i>varargs</i> (str)</dt>
85 <dd>
86 name of the variable arguments
87 </dd><dt><i>varkw</i> (str)</dt>
88 <dd>
89 name of the keyword arguments
90 </dd><dt><i>locals</i> (dict)</dt>
91 <dd>
92 reference to the local variables dictionary
93 </dd><dt><i>formatarg=</i> (func)</dt>
94 <dd>
95 argument formatting function
96 </dd><dt><i>formatvarargs=</i> (func)</dt>
97 <dd>
98 variable arguments formatting function
99 </dd><dt><i>formatvarkw=</i> (func)</dt>
100 <dd>
101 keyword arguments formatting function
102 </dd><dt><i>formatvalue=</i> (func)</dt>
103 <dd>
104 value formating functtion
105 </dd>
106 </dl><dl>
107 <dt>Returns:</dt>
108 <dd>
109 formatted call signature
110 </dd>
111 </dl><dl>
112 <dt>Return Type:</dt>
113 <dd>
114 str
115 </dd>
116 </dl>
117 <div align="right"><a href="#top">Up</a></div>
118 <hr /><hr />
119 <a NAME="getargvalues" ID="getargvalues"></a>
120 <h2>getargvalues</h2>
121 <b>getargvalues</b>(<i>frame</i>)
122 <p>
123 Function to get information about arguments passed into a
124 particular frame.
125 </p><dl>
126 <dt><i>frame</i> (frame)</dt>
127 <dd>
128 reference to a frame object to be processed
129 </dd>
130 </dl><dl>
131 <dt>Returns:</dt>
132 <dd>
133 tuple of four things, where 'args' is a list of the argument names,
134 'varargs' and 'varkw' are the names of the * and ** arguments or None
135 and 'locals' is the locals dictionary of the given frame.
136 </dd>
137 </dl><dl>
138 <dt>Raises <b>TypeError</b>:</dt>
139 <dd>
140 raised if the input parameter is not a frame object
141 </dd>
142 </dl>
143 <div align="right"><a href="#top">Up</a></div>
144 <hr />
145 </body></html>

eric ide

mercurial