eric6/Documentation/Source/eric6.DebugClients.Python.DebugVariables.html

changeset 7273
391d6b7b1eff
parent 7015
b1a3094b33e1
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.DebugClients.Python.DebugVariables</h1> 23 <h1>eric6.DebugClients.Python.DebugVariables</h1>
24
23 <p> 25 <p>
24 Module implementing classes and functions to dump variable contents. 26 Module implementing classes and functions to dump variable contents.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>_TypeMap</td></tr><tr><td>arrayResolver</td></tr><tr><td>defaultResolver</td></tr><tr><td>dictResolver</td></tr><tr><td>dictViewResolver</td></tr><tr><td>listResolver</td></tr><tr><td>multiValueDictResolver</td></tr><tr><td>ndarrayResolver</td></tr><tr><td>setResolver</td></tr> 31 <tr><td>_TypeMap</td></tr><tr><td>arrayResolver</td></tr><tr><td>defaultResolver</td></tr><tr><td>dictResolver</td></tr><tr><td>dictViewResolver</td></tr><tr><td>listResolver</td></tr><tr><td>multiValueDictResolver</td></tr><tr><td>ndarrayResolver</td></tr><tr><td>setResolver</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#ArrayResolver">ArrayResolver</a></td> 38 <td><a href="#ArrayResolver">ArrayResolver</a></td>
34 <td>Class used to resolve from array.array including some meta data.</td> 39 <td>Class used to resolve from array.array including some meta data.</td>
35 </tr><tr> 40 </tr>
41 <tr>
36 <td><a href="#BaseResolver">BaseResolver</a></td> 42 <td><a href="#BaseResolver">BaseResolver</a></td>
37 <td>Base class of the resolver class tree.</td> 43 <td>Base class of the resolver class tree.</td>
38 </tr><tr> 44 </tr>
45 <tr>
39 <td><a href="#DefaultResolver">DefaultResolver</a></td> 46 <td><a href="#DefaultResolver">DefaultResolver</a></td>
40 <td>Class used to resolve the default way.</td> 47 <td>Class used to resolve the default way.</td>
41 </tr><tr> 48 </tr>
49 <tr>
42 <td><a href="#DictResolver">DictResolver</a></td> 50 <td><a href="#DictResolver">DictResolver</a></td>
43 <td>Class used to resolve from a dictionary.</td> 51 <td>Class used to resolve from a dictionary.</td>
44 </tr><tr> 52 </tr>
53 <tr>
45 <td><a href="#DictViewResolver">DictViewResolver</a></td> 54 <td><a href="#DictViewResolver">DictViewResolver</a></td>
46 <td>Class used to resolve from dict views.</td> 55 <td>Class used to resolve from dict views.</td>
47 </tr><tr> 56 </tr>
57 <tr>
48 <td><a href="#ListResolver">ListResolver</a></td> 58 <td><a href="#ListResolver">ListResolver</a></td>
49 <td>Class used to resolve from a tuple or list.</td> 59 <td>Class used to resolve from a tuple or list.</td>
50 </tr><tr> 60 </tr>
61 <tr>
51 <td><a href="#MultiValueDictResolver">MultiValueDictResolver</a></td> 62 <td><a href="#MultiValueDictResolver">MultiValueDictResolver</a></td>
52 <td>Class used to resolve from Django multi value dictionaries.</td> 63 <td>Class used to resolve from Django multi value dictionaries.</td>
53 </tr><tr> 64 </tr>
65 <tr>
54 <td><a href="#NdArrayResolver">NdArrayResolver</a></td> 66 <td><a href="#NdArrayResolver">NdArrayResolver</a></td>
55 <td>Class used to resolve from numpy ndarray including some meta data.</td> 67 <td>Class used to resolve from numpy ndarray including some meta data.</td>
56 </tr><tr> 68 </tr>
69 <tr>
57 <td><a href="#SetResolver">SetResolver</a></td> 70 <td><a href="#SetResolver">SetResolver</a></td>
58 <td>Class used to resolve from a set or frozenset.</td> 71 <td>Class used to resolve from a set or frozenset.</td>
59 </tr> 72 </tr>
60 </table> 73 </table>
61 <h3>Functions</h3> 74 <h3>Functions</h3>
62 <table> 75
76 <table>
77
63 <tr> 78 <tr>
64 <td><a href="#_initTypeMap">_initTypeMap</a></td> 79 <td><a href="#_initTypeMap">_initTypeMap</a></td>
65 <td>Protected function to initialize the type map.</td> 80 <td>Protected function to initialize the type map.</td>
66 </tr><tr> 81 </tr>
82 <tr>
67 <td><a href="#getType">getType</a></td> 83 <td><a href="#getType">getType</a></td>
68 <td>Public method to get the type information for an object.</td> 84 <td>Public method to get the type information for an object.</td>
69 </tr> 85 </tr>
70 </table> 86 </table>
71 <hr /><hr /> 87 <hr />
88 <hr />
72 <a NAME="ArrayResolver" ID="ArrayResolver"></a> 89 <a NAME="ArrayResolver" ID="ArrayResolver"></a>
73 <h2>ArrayResolver</h2> 90 <h2>ArrayResolver</h2>
91
74 <p> 92 <p>
75 Class used to resolve from array.array including some meta data. 93 Class used to resolve from array.array including some meta data.
76 </p> 94 </p>
77 <h3>Derived from</h3> 95 <h3>Derived from</h3>
78 BaseResolver 96 BaseResolver
79 <h3>Class Attributes</h3> 97 <h3>Class Attributes</h3>
98
80 <table> 99 <table>
81 <tr><td>TypeCodeMap</td></tr> 100 <tr><td>TypeCodeMap</td></tr>
82 </table> 101 </table>
83 <h3>Class Methods</h3> 102 <h3>Class Methods</h3>
103
84 <table> 104 <table>
85 <tr><td>None</td></tr> 105 <tr><td>None</td></tr>
86 </table> 106 </table>
87 <h3>Methods</h3> 107 <h3>Methods</h3>
88 <table> 108
109 <table>
110
89 <tr> 111 <tr>
90 <td><a href="#ArrayResolver.getDictionary">getDictionary</a></td> 112 <td><a href="#ArrayResolver.getDictionary">getDictionary</a></td>
91 <td>Public method to get the attributes of a variable as a dictionary.</td> 113 <td>Public method to get the attributes of a variable as a dictionary.</td>
92 </tr><tr> 114 </tr>
115 <tr>
93 <td><a href="#ArrayResolver.resolve">resolve</a></td> 116 <td><a href="#ArrayResolver.resolve">resolve</a></td>
94 <td>Public method to get an attribute from a variable.</td> 117 <td>Public method to get an attribute from a variable.</td>
95 </tr> 118 </tr>
96 </table> 119 </table>
97 <h3>Static Methods</h3> 120 <h3>Static Methods</h3>
98 <table> 121
99 <tr><td>None</td></tr> 122 <table>
100 </table> 123 <tr><td>None</td></tr>
124 </table>
125
101 <a NAME="ArrayResolver.getDictionary" ID="ArrayResolver.getDictionary"></a> 126 <a NAME="ArrayResolver.getDictionary" ID="ArrayResolver.getDictionary"></a>
102 <h4>ArrayResolver.getDictionary</h4> 127 <h4>ArrayResolver.getDictionary</h4>
103 <b>getDictionary</b>(<i>var</i>) 128 <b>getDictionary</b>(<i>var</i>)
129
104 <p> 130 <p>
105 Public method to get the attributes of a variable as a dictionary. 131 Public method to get the attributes of a variable as a dictionary.
106 </p><dl> 132 </p>
133 <dl>
134
107 <dt><i>var</i> (any)</dt> 135 <dt><i>var</i> (any)</dt>
108 <dd> 136 <dd>
109 variable to be converted 137 variable to be converted
110 </dd> 138 </dd>
111 </dl><dl> 139 </dl>
140 <dl>
112 <dt>Returns:</dt> 141 <dt>Returns:</dt>
113 <dd> 142 <dd>
114 dictionary containing the variable attributes 143 dictionary containing the variable attributes
115 </dd> 144 </dd>
116 </dl><dl> 145 </dl>
146 <dl>
117 <dt>Return Type:</dt> 147 <dt>Return Type:</dt>
118 <dd> 148 <dd>
119 dict 149 dict
120 </dd> 150 </dd>
121 </dl><a NAME="ArrayResolver.resolve" ID="ArrayResolver.resolve"></a> 151 </dl>
152 <a NAME="ArrayResolver.resolve" ID="ArrayResolver.resolve"></a>
122 <h4>ArrayResolver.resolve</h4> 153 <h4>ArrayResolver.resolve</h4>
123 <b>resolve</b>(<i>var, attribute</i>) 154 <b>resolve</b>(<i>var, attribute</i>)
155
124 <p> 156 <p>
125 Public method to get an attribute from a variable. 157 Public method to get an attribute from a variable.
126 </p><dl> 158 </p>
159 <dl>
160
127 <dt><i>var</i> (tuple or list)</dt> 161 <dt><i>var</i> (tuple or list)</dt>
128 <dd> 162 <dd>
129 variable to extract an attribute or value from 163 variable to extract an attribute or value from
130 </dd><dt><i>attribute</i> (str)</dt> 164 </dd>
165 <dt><i>attribute</i> (str)</dt>
131 <dd> 166 <dd>
132 id of the value to extract 167 id of the value to extract
133 </dd> 168 </dd>
134 </dl><dl> 169 </dl>
170 <dl>
135 <dt>Returns:</dt> 171 <dt>Returns:</dt>
136 <dd> 172 <dd>
137 value of the attribute 173 value of the attribute
138 </dd> 174 </dd>
139 </dl><dl> 175 </dl>
176 <dl>
140 <dt>Return Type:</dt> 177 <dt>Return Type:</dt>
141 <dd> 178 <dd>
142 any 179 any
143 </dd> 180 </dd>
144 </dl> 181 </dl>
145 <div align="right"><a href="#top">Up</a></div> 182 <div align="right"><a href="#top">Up</a></div>
146 <hr /><hr /> 183 <hr />
184 <hr />
147 <a NAME="BaseResolver" ID="BaseResolver"></a> 185 <a NAME="BaseResolver" ID="BaseResolver"></a>
148 <h2>BaseResolver</h2> 186 <h2>BaseResolver</h2>
187
149 <p> 188 <p>
150 Base class of the resolver class tree. 189 Base class of the resolver class tree.
151 </p> 190 </p>
152 <h3>Derived from</h3> 191 <h3>Derived from</h3>
153 object 192 object
154 <h3>Class Attributes</h3> 193 <h3>Class Attributes</h3>
194
155 <table> 195 <table>
156 <tr><td>None</td></tr> 196 <tr><td>None</td></tr>
157 </table> 197 </table>
158 <h3>Class Methods</h3> 198 <h3>Class Methods</h3>
199
159 <table> 200 <table>
160 <tr><td>None</td></tr> 201 <tr><td>None</td></tr>
161 </table> 202 </table>
162 <h3>Methods</h3> 203 <h3>Methods</h3>
163 <table> 204
205 <table>
206
164 <tr> 207 <tr>
165 <td><a href="#BaseResolver.getDictionary">getDictionary</a></td> 208 <td><a href="#BaseResolver.getDictionary">getDictionary</a></td>
166 <td>Public method to get the attributes of a variable as a dictionary.</td> 209 <td>Public method to get the attributes of a variable as a dictionary.</td>
167 </tr><tr> 210 </tr>
211 <tr>
168 <td><a href="#BaseResolver.resolve">resolve</a></td> 212 <td><a href="#BaseResolver.resolve">resolve</a></td>
169 <td>Public method to get an attribute from a variable.</td> 213 <td>Public method to get an attribute from a variable.</td>
170 </tr> 214 </tr>
171 </table> 215 </table>
172 <h3>Static Methods</h3> 216 <h3>Static Methods</h3>
173 <table> 217
174 <tr><td>None</td></tr> 218 <table>
175 </table> 219 <tr><td>None</td></tr>
220 </table>
221
176 <a NAME="BaseResolver.getDictionary" ID="BaseResolver.getDictionary"></a> 222 <a NAME="BaseResolver.getDictionary" ID="BaseResolver.getDictionary"></a>
177 <h4>BaseResolver.getDictionary</h4> 223 <h4>BaseResolver.getDictionary</h4>
178 <b>getDictionary</b>(<i>var</i>) 224 <b>getDictionary</b>(<i>var</i>)
225
179 <p> 226 <p>
180 Public method to get the attributes of a variable as a dictionary. 227 Public method to get the attributes of a variable as a dictionary.
181 </p><dl> 228 </p>
229 <dl>
230
182 <dt><i>var</i> (any)</dt> 231 <dt><i>var</i> (any)</dt>
183 <dd> 232 <dd>
184 variable to be converted 233 variable to be converted
185 </dd> 234 </dd>
186 </dl><dl> 235 </dl>
236 <dl>
187 <dt>Returns:</dt> 237 <dt>Returns:</dt>
188 <dd> 238 <dd>
189 dictionary containing the variable attributes 239 dictionary containing the variable attributes
190 </dd> 240 </dd>
191 </dl><dl> 241 </dl>
242 <dl>
192 <dt>Return Type:</dt> 243 <dt>Return Type:</dt>
193 <dd> 244 <dd>
194 dict 245 dict
195 </dd> 246 </dd>
196 </dl><a NAME="BaseResolver.resolve" ID="BaseResolver.resolve"></a> 247 </dl>
248 <a NAME="BaseResolver.resolve" ID="BaseResolver.resolve"></a>
197 <h4>BaseResolver.resolve</h4> 249 <h4>BaseResolver.resolve</h4>
198 <b>resolve</b>(<i>var, attribute</i>) 250 <b>resolve</b>(<i>var, attribute</i>)
251
199 <p> 252 <p>
200 Public method to get an attribute from a variable. 253 Public method to get an attribute from a variable.
201 </p><dl> 254 </p>
255 <dl>
256
202 <dt><i>var</i> (any)</dt> 257 <dt><i>var</i> (any)</dt>
203 <dd> 258 <dd>
204 variable to extract an attribute or value from 259 variable to extract an attribute or value from
205 </dd><dt><i>attribute</i> (str)</dt> 260 </dd>
261 <dt><i>attribute</i> (str)</dt>
206 <dd> 262 <dd>
207 name of the attribute to extract 263 name of the attribute to extract
208 </dd> 264 </dd>
209 </dl><dl> 265 </dl>
266 <dl>
210 <dt>Returns:</dt> 267 <dt>Returns:</dt>
211 <dd> 268 <dd>
212 value of the attribute 269 value of the attribute
213 </dd> 270 </dd>
214 </dl><dl> 271 </dl>
272 <dl>
215 <dt>Return Type:</dt> 273 <dt>Return Type:</dt>
216 <dd> 274 <dd>
217 any 275 any
218 </dd> 276 </dd>
219 </dl> 277 </dl>
220 <div align="right"><a href="#top">Up</a></div> 278 <div align="right"><a href="#top">Up</a></div>
221 <hr /><hr /> 279 <hr />
280 <hr />
222 <a NAME="DefaultResolver" ID="DefaultResolver"></a> 281 <a NAME="DefaultResolver" ID="DefaultResolver"></a>
223 <h2>DefaultResolver</h2> 282 <h2>DefaultResolver</h2>
283
224 <p> 284 <p>
225 Class used to resolve the default way. 285 Class used to resolve the default way.
226 </p> 286 </p>
227 <h3>Derived from</h3> 287 <h3>Derived from</h3>
228 BaseResolver 288 BaseResolver
229 <h3>Class Attributes</h3> 289 <h3>Class Attributes</h3>
290
230 <table> 291 <table>
231 <tr><td>None</td></tr> 292 <tr><td>None</td></tr>
232 </table> 293 </table>
233 <h3>Class Methods</h3> 294 <h3>Class Methods</h3>
295
234 <table> 296 <table>
235 <tr><td>None</td></tr> 297 <tr><td>None</td></tr>
236 </table> 298 </table>
237 <h3>Methods</h3> 299 <h3>Methods</h3>
238 <table> 300
301 <table>
302
239 <tr> 303 <tr>
240 <td><a href="#DefaultResolver.getDictionary">getDictionary</a></td> 304 <td><a href="#DefaultResolver.getDictionary">getDictionary</a></td>
241 <td>Public method to get the attributes of a variable as a dictionary.</td> 305 <td>Public method to get the attributes of a variable as a dictionary.</td>
242 </tr> 306 </tr>
243 </table> 307 </table>
244 <h3>Static Methods</h3> 308 <h3>Static Methods</h3>
245 <table> 309
246 <tr><td>None</td></tr> 310 <table>
247 </table> 311 <tr><td>None</td></tr>
312 </table>
313
248 <a NAME="DefaultResolver.getDictionary" ID="DefaultResolver.getDictionary"></a> 314 <a NAME="DefaultResolver.getDictionary" ID="DefaultResolver.getDictionary"></a>
249 <h4>DefaultResolver.getDictionary</h4> 315 <h4>DefaultResolver.getDictionary</h4>
250 <b>getDictionary</b>(<i>var</i>) 316 <b>getDictionary</b>(<i>var</i>)
317
251 <p> 318 <p>
252 Public method to get the attributes of a variable as a dictionary. 319 Public method to get the attributes of a variable as a dictionary.
253 </p><dl> 320 </p>
321 <dl>
322
254 <dt><i>var</i> (any)</dt> 323 <dt><i>var</i> (any)</dt>
255 <dd> 324 <dd>
256 variable to be converted 325 variable to be converted
257 </dd> 326 </dd>
258 </dl><dl> 327 </dl>
328 <dl>
259 <dt>Returns:</dt> 329 <dt>Returns:</dt>
260 <dd> 330 <dd>
261 dictionary containing the variable attributes 331 dictionary containing the variable attributes
262 </dd> 332 </dd>
263 </dl><dl> 333 </dl>
334 <dl>
264 <dt>Return Type:</dt> 335 <dt>Return Type:</dt>
265 <dd> 336 <dd>
266 dict 337 dict
267 </dd> 338 </dd>
268 </dl> 339 </dl>
269 <div align="right"><a href="#top">Up</a></div> 340 <div align="right"><a href="#top">Up</a></div>
270 <hr /><hr /> 341 <hr />
342 <hr />
271 <a NAME="DictResolver" ID="DictResolver"></a> 343 <a NAME="DictResolver" ID="DictResolver"></a>
272 <h2>DictResolver</h2> 344 <h2>DictResolver</h2>
345
273 <p> 346 <p>
274 Class used to resolve from a dictionary. 347 Class used to resolve from a dictionary.
275 </p> 348 </p>
276 <h3>Derived from</h3> 349 <h3>Derived from</h3>
277 BaseResolver 350 BaseResolver
278 <h3>Class Attributes</h3> 351 <h3>Class Attributes</h3>
352
279 <table> 353 <table>
280 <tr><td>None</td></tr> 354 <tr><td>None</td></tr>
281 </table> 355 </table>
282 <h3>Class Methods</h3> 356 <h3>Class Methods</h3>
357
283 <table> 358 <table>
284 <tr><td>None</td></tr> 359 <tr><td>None</td></tr>
285 </table> 360 </table>
286 <h3>Methods</h3> 361 <h3>Methods</h3>
287 <table> 362
363 <table>
364
288 <tr> 365 <tr>
289 <td><a href="#DictResolver.getDictionary">getDictionary</a></td> 366 <td><a href="#DictResolver.getDictionary">getDictionary</a></td>
290 <td>Public method to get the attributes of a variable as a dictionary.</td> 367 <td>Public method to get the attributes of a variable as a dictionary.</td>
291 </tr><tr> 368 </tr>
369 <tr>
292 <td><a href="#DictResolver.keyToStr">keyToStr</a></td> 370 <td><a href="#DictResolver.keyToStr">keyToStr</a></td>
293 <td>Public method to get a string representation for a key.</td> 371 <td>Public method to get a string representation for a key.</td>
294 </tr><tr> 372 </tr>
373 <tr>
295 <td><a href="#DictResolver.resolve">resolve</a></td> 374 <td><a href="#DictResolver.resolve">resolve</a></td>
296 <td>Public method to get an attribute from a variable.</td> 375 <td>Public method to get an attribute from a variable.</td>
297 </tr> 376 </tr>
298 </table> 377 </table>
299 <h3>Static Methods</h3> 378 <h3>Static Methods</h3>
300 <table> 379
301 <tr><td>None</td></tr> 380 <table>
302 </table> 381 <tr><td>None</td></tr>
382 </table>
383
303 <a NAME="DictResolver.getDictionary" ID="DictResolver.getDictionary"></a> 384 <a NAME="DictResolver.getDictionary" ID="DictResolver.getDictionary"></a>
304 <h4>DictResolver.getDictionary</h4> 385 <h4>DictResolver.getDictionary</h4>
305 <b>getDictionary</b>(<i>var</i>) 386 <b>getDictionary</b>(<i>var</i>)
387
306 <p> 388 <p>
307 Public method to get the attributes of a variable as a dictionary. 389 Public method to get the attributes of a variable as a dictionary.
308 </p><dl> 390 </p>
391 <dl>
392
309 <dt><i>var</i> (any)</dt> 393 <dt><i>var</i> (any)</dt>
310 <dd> 394 <dd>
311 variable to be converted 395 variable to be converted
312 </dd> 396 </dd>
313 </dl><dl> 397 </dl>
398 <dl>
314 <dt>Returns:</dt> 399 <dt>Returns:</dt>
315 <dd> 400 <dd>
316 dictionary containing the variable attributes 401 dictionary containing the variable attributes
317 </dd> 402 </dd>
318 </dl><dl> 403 </dl>
404 <dl>
319 <dt>Return Type:</dt> 405 <dt>Return Type:</dt>
320 <dd> 406 <dd>
321 dict 407 dict
322 </dd> 408 </dd>
323 </dl><a NAME="DictResolver.keyToStr" ID="DictResolver.keyToStr"></a> 409 </dl>
410 <a NAME="DictResolver.keyToStr" ID="DictResolver.keyToStr"></a>
324 <h4>DictResolver.keyToStr</h4> 411 <h4>DictResolver.keyToStr</h4>
325 <b>keyToStr</b>(<i>key</i>) 412 <b>keyToStr</b>(<i>key</i>)
413
326 <p> 414 <p>
327 Public method to get a string representation for a key. 415 Public method to get a string representation for a key.
328 </p><dl> 416 </p>
417 <dl>
418
329 <dt><i>key</i> (any)</dt> 419 <dt><i>key</i> (any)</dt>
330 <dd> 420 <dd>
331 key to be converted 421 key to be converted
332 </dd> 422 </dd>
333 </dl><dl> 423 </dl>
424 <dl>
334 <dt>Returns:</dt> 425 <dt>Returns:</dt>
335 <dd> 426 <dd>
336 string representation of the given key 427 string representation of the given key
337 </dd> 428 </dd>
338 </dl><dl> 429 </dl>
430 <dl>
339 <dt>Return Type:</dt> 431 <dt>Return Type:</dt>
340 <dd> 432 <dd>
341 str 433 str
342 </dd> 434 </dd>
343 </dl><a NAME="DictResolver.resolve" ID="DictResolver.resolve"></a> 435 </dl>
436 <a NAME="DictResolver.resolve" ID="DictResolver.resolve"></a>
344 <h4>DictResolver.resolve</h4> 437 <h4>DictResolver.resolve</h4>
345 <b>resolve</b>(<i>var, attribute</i>) 438 <b>resolve</b>(<i>var, attribute</i>)
439
346 <p> 440 <p>
347 Public method to get an attribute from a variable. 441 Public method to get an attribute from a variable.
348 </p><dl> 442 </p>
443 <dl>
444
349 <dt><i>var</i> (dict)</dt> 445 <dt><i>var</i> (dict)</dt>
350 <dd> 446 <dd>
351 variable to extract an attribute or value from 447 variable to extract an attribute or value from
352 </dd><dt><i>attribute</i> (str)</dt> 448 </dd>
449 <dt><i>attribute</i> (str)</dt>
353 <dd> 450 <dd>
354 name of the attribute to extract 451 name of the attribute to extract
355 </dd> 452 </dd>
356 </dl><dl> 453 </dl>
454 <dl>
357 <dt>Returns:</dt> 455 <dt>Returns:</dt>
358 <dd> 456 <dd>
359 value of the attribute 457 value of the attribute
360 </dd> 458 </dd>
361 </dl><dl> 459 </dl>
460 <dl>
362 <dt>Return Type:</dt> 461 <dt>Return Type:</dt>
363 <dd> 462 <dd>
364 any 463 any
365 </dd> 464 </dd>
366 </dl> 465 </dl>
367 <div align="right"><a href="#top">Up</a></div> 466 <div align="right"><a href="#top">Up</a></div>
368 <hr /><hr /> 467 <hr />
468 <hr />
369 <a NAME="DictViewResolver" ID="DictViewResolver"></a> 469 <a NAME="DictViewResolver" ID="DictViewResolver"></a>
370 <h2>DictViewResolver</h2> 470 <h2>DictViewResolver</h2>
471
371 <p> 472 <p>
372 Class used to resolve from dict views. 473 Class used to resolve from dict views.
373 </p> 474 </p>
374 <h3>Derived from</h3> 475 <h3>Derived from</h3>
375 ListResolver 476 ListResolver
376 <h3>Class Attributes</h3> 477 <h3>Class Attributes</h3>
478
377 <table> 479 <table>
378 <tr><td>None</td></tr> 480 <tr><td>None</td></tr>
379 </table> 481 </table>
380 <h3>Class Methods</h3> 482 <h3>Class Methods</h3>
483
381 <table> 484 <table>
382 <tr><td>None</td></tr> 485 <tr><td>None</td></tr>
383 </table> 486 </table>
384 <h3>Methods</h3> 487 <h3>Methods</h3>
385 <table> 488
489 <table>
490
386 <tr> 491 <tr>
387 <td><a href="#DictViewResolver.getDictionary">getDictionary</a></td> 492 <td><a href="#DictViewResolver.getDictionary">getDictionary</a></td>
388 <td>Public method to get the attributes of a variable as a dictionary.</td> 493 <td>Public method to get the attributes of a variable as a dictionary.</td>
389 </tr><tr> 494 </tr>
495 <tr>
390 <td><a href="#DictViewResolver.resolve">resolve</a></td> 496 <td><a href="#DictViewResolver.resolve">resolve</a></td>
391 <td>Public method to get an attribute from a variable.</td> 497 <td>Public method to get an attribute from a variable.</td>
392 </tr> 498 </tr>
393 </table> 499 </table>
394 <h3>Static Methods</h3> 500 <h3>Static Methods</h3>
395 <table> 501
396 <tr><td>None</td></tr> 502 <table>
397 </table> 503 <tr><td>None</td></tr>
504 </table>
505
398 <a NAME="DictViewResolver.getDictionary" ID="DictViewResolver.getDictionary"></a> 506 <a NAME="DictViewResolver.getDictionary" ID="DictViewResolver.getDictionary"></a>
399 <h4>DictViewResolver.getDictionary</h4> 507 <h4>DictViewResolver.getDictionary</h4>
400 <b>getDictionary</b>(<i>var</i>) 508 <b>getDictionary</b>(<i>var</i>)
509
401 <p> 510 <p>
402 Public method to get the attributes of a variable as a dictionary. 511 Public method to get the attributes of a variable as a dictionary.
403 </p><dl> 512 </p>
513 <dl>
514
404 <dt><i>var</i> (any)</dt> 515 <dt><i>var</i> (any)</dt>
405 <dd> 516 <dd>
406 variable to be converted 517 variable to be converted
407 </dd> 518 </dd>
408 </dl><dl> 519 </dl>
520 <dl>
409 <dt>Returns:</dt> 521 <dt>Returns:</dt>
410 <dd> 522 <dd>
411 dictionary containing the variable attributes 523 dictionary containing the variable attributes
412 </dd> 524 </dd>
413 </dl><dl> 525 </dl>
526 <dl>
414 <dt>Return Type:</dt> 527 <dt>Return Type:</dt>
415 <dd> 528 <dd>
416 dict 529 dict
417 </dd> 530 </dd>
418 </dl><a NAME="DictViewResolver.resolve" ID="DictViewResolver.resolve"></a> 531 </dl>
532 <a NAME="DictViewResolver.resolve" ID="DictViewResolver.resolve"></a>
419 <h4>DictViewResolver.resolve</h4> 533 <h4>DictViewResolver.resolve</h4>
420 <b>resolve</b>(<i>var, attribute</i>) 534 <b>resolve</b>(<i>var, attribute</i>)
535
421 <p> 536 <p>
422 Public method to get an attribute from a variable. 537 Public method to get an attribute from a variable.
423 </p><dl> 538 </p>
539 <dl>
540
424 <dt><i>var</i> (tuple or list)</dt> 541 <dt><i>var</i> (tuple or list)</dt>
425 <dd> 542 <dd>
426 variable to extract an attribute or value from 543 variable to extract an attribute or value from
427 </dd><dt><i>attribute</i> (str)</dt> 544 </dd>
545 <dt><i>attribute</i> (str)</dt>
428 <dd> 546 <dd>
429 id of the value to extract 547 id of the value to extract
430 </dd> 548 </dd>
431 </dl><dl> 549 </dl>
550 <dl>
432 <dt>Returns:</dt> 551 <dt>Returns:</dt>
433 <dd> 552 <dd>
434 value of the attribute 553 value of the attribute
435 </dd> 554 </dd>
436 </dl><dl> 555 </dl>
556 <dl>
437 <dt>Return Type:</dt> 557 <dt>Return Type:</dt>
438 <dd> 558 <dd>
439 any 559 any
440 </dd> 560 </dd>
441 </dl> 561 </dl>
442 <div align="right"><a href="#top">Up</a></div> 562 <div align="right"><a href="#top">Up</a></div>
443 <hr /><hr /> 563 <hr />
564 <hr />
444 <a NAME="ListResolver" ID="ListResolver"></a> 565 <a NAME="ListResolver" ID="ListResolver"></a>
445 <h2>ListResolver</h2> 566 <h2>ListResolver</h2>
567
446 <p> 568 <p>
447 Class used to resolve from a tuple or list. 569 Class used to resolve from a tuple or list.
448 </p> 570 </p>
449 <h3>Derived from</h3> 571 <h3>Derived from</h3>
450 BaseResolver 572 BaseResolver
451 <h3>Class Attributes</h3> 573 <h3>Class Attributes</h3>
574
452 <table> 575 <table>
453 <tr><td>None</td></tr> 576 <tr><td>None</td></tr>
454 </table> 577 </table>
455 <h3>Class Methods</h3> 578 <h3>Class Methods</h3>
579
456 <table> 580 <table>
457 <tr><td>None</td></tr> 581 <tr><td>None</td></tr>
458 </table> 582 </table>
459 <h3>Methods</h3> 583 <h3>Methods</h3>
460 <table> 584
585 <table>
586
461 <tr> 587 <tr>
462 <td><a href="#ListResolver.getDictionary">getDictionary</a></td> 588 <td><a href="#ListResolver.getDictionary">getDictionary</a></td>
463 <td>Public method to get the attributes of a variable as a dictionary.</td> 589 <td>Public method to get the attributes of a variable as a dictionary.</td>
464 </tr><tr> 590 </tr>
591 <tr>
465 <td><a href="#ListResolver.resolve">resolve</a></td> 592 <td><a href="#ListResolver.resolve">resolve</a></td>
466 <td>Public method to get an attribute from a variable.</td> 593 <td>Public method to get an attribute from a variable.</td>
467 </tr> 594 </tr>
468 </table> 595 </table>
469 <h3>Static Methods</h3> 596 <h3>Static Methods</h3>
470 <table> 597
471 <tr><td>None</td></tr> 598 <table>
472 </table> 599 <tr><td>None</td></tr>
600 </table>
601
473 <a NAME="ListResolver.getDictionary" ID="ListResolver.getDictionary"></a> 602 <a NAME="ListResolver.getDictionary" ID="ListResolver.getDictionary"></a>
474 <h4>ListResolver.getDictionary</h4> 603 <h4>ListResolver.getDictionary</h4>
475 <b>getDictionary</b>(<i>var</i>) 604 <b>getDictionary</b>(<i>var</i>)
605
476 <p> 606 <p>
477 Public method to get the attributes of a variable as a dictionary. 607 Public method to get the attributes of a variable as a dictionary.
478 </p><dl> 608 </p>
609 <dl>
610
479 <dt><i>var</i> (any)</dt> 611 <dt><i>var</i> (any)</dt>
480 <dd> 612 <dd>
481 variable to be converted 613 variable to be converted
482 </dd> 614 </dd>
483 </dl><dl> 615 </dl>
616 <dl>
484 <dt>Returns:</dt> 617 <dt>Returns:</dt>
485 <dd> 618 <dd>
486 dictionary containing the variable attributes 619 dictionary containing the variable attributes
487 </dd> 620 </dd>
488 </dl><dl> 621 </dl>
622 <dl>
489 <dt>Return Type:</dt> 623 <dt>Return Type:</dt>
490 <dd> 624 <dd>
491 dict 625 dict
492 </dd> 626 </dd>
493 </dl><a NAME="ListResolver.resolve" ID="ListResolver.resolve"></a> 627 </dl>
628 <a NAME="ListResolver.resolve" ID="ListResolver.resolve"></a>
494 <h4>ListResolver.resolve</h4> 629 <h4>ListResolver.resolve</h4>
495 <b>resolve</b>(<i>var, attribute</i>) 630 <b>resolve</b>(<i>var, attribute</i>)
631
496 <p> 632 <p>
497 Public method to get an attribute from a variable. 633 Public method to get an attribute from a variable.
498 </p><dl> 634 </p>
635 <dl>
636
499 <dt><i>var</i> (tuple or list)</dt> 637 <dt><i>var</i> (tuple or list)</dt>
500 <dd> 638 <dd>
501 variable to extract an attribute or value from 639 variable to extract an attribute or value from
502 </dd><dt><i>attribute</i> (str)</dt> 640 </dd>
641 <dt><i>attribute</i> (str)</dt>
503 <dd> 642 <dd>
504 name of the attribute to extract 643 name of the attribute to extract
505 </dd> 644 </dd>
506 </dl><dl> 645 </dl>
646 <dl>
507 <dt>Returns:</dt> 647 <dt>Returns:</dt>
508 <dd> 648 <dd>
509 value of the attribute 649 value of the attribute
510 </dd> 650 </dd>
511 </dl><dl> 651 </dl>
652 <dl>
512 <dt>Return Type:</dt> 653 <dt>Return Type:</dt>
513 <dd> 654 <dd>
514 any 655 any
515 </dd> 656 </dd>
516 </dl> 657 </dl>
517 <div align="right"><a href="#top">Up</a></div> 658 <div align="right"><a href="#top">Up</a></div>
518 <hr /><hr /> 659 <hr />
660 <hr />
519 <a NAME="MultiValueDictResolver" ID="MultiValueDictResolver"></a> 661 <a NAME="MultiValueDictResolver" ID="MultiValueDictResolver"></a>
520 <h2>MultiValueDictResolver</h2> 662 <h2>MultiValueDictResolver</h2>
663
521 <p> 664 <p>
522 Class used to resolve from Django multi value dictionaries. 665 Class used to resolve from Django multi value dictionaries.
523 </p> 666 </p>
524 <h3>Derived from</h3> 667 <h3>Derived from</h3>
525 DictResolver 668 DictResolver
526 <h3>Class Attributes</h3> 669 <h3>Class Attributes</h3>
670
527 <table> 671 <table>
528 <tr><td>None</td></tr> 672 <tr><td>None</td></tr>
529 </table> 673 </table>
530 <h3>Class Methods</h3> 674 <h3>Class Methods</h3>
675
531 <table> 676 <table>
532 <tr><td>None</td></tr> 677 <tr><td>None</td></tr>
533 </table> 678 </table>
534 <h3>Methods</h3> 679 <h3>Methods</h3>
535 <table> 680
681 <table>
682
536 <tr> 683 <tr>
537 <td><a href="#MultiValueDictResolver.getDictionary">getDictionary</a></td> 684 <td><a href="#MultiValueDictResolver.getDictionary">getDictionary</a></td>
538 <td>Public method to get the attributes of a variable as a dictionary.</td> 685 <td>Public method to get the attributes of a variable as a dictionary.</td>
539 </tr><tr> 686 </tr>
687 <tr>
540 <td><a href="#MultiValueDictResolver.resolve">resolve</a></td> 688 <td><a href="#MultiValueDictResolver.resolve">resolve</a></td>
541 <td>Public method to get an attribute from a variable.</td> 689 <td>Public method to get an attribute from a variable.</td>
542 </tr> 690 </tr>
543 </table> 691 </table>
544 <h3>Static Methods</h3> 692 <h3>Static Methods</h3>
545 <table> 693
546 <tr><td>None</td></tr> 694 <table>
547 </table> 695 <tr><td>None</td></tr>
696 </table>
697
548 <a NAME="MultiValueDictResolver.getDictionary" ID="MultiValueDictResolver.getDictionary"></a> 698 <a NAME="MultiValueDictResolver.getDictionary" ID="MultiValueDictResolver.getDictionary"></a>
549 <h4>MultiValueDictResolver.getDictionary</h4> 699 <h4>MultiValueDictResolver.getDictionary</h4>
550 <b>getDictionary</b>(<i>var</i>) 700 <b>getDictionary</b>(<i>var</i>)
701
551 <p> 702 <p>
552 Public method to get the attributes of a variable as a dictionary. 703 Public method to get the attributes of a variable as a dictionary.
553 </p><dl> 704 </p>
705 <dl>
706
554 <dt><i>var</i> (any)</dt> 707 <dt><i>var</i> (any)</dt>
555 <dd> 708 <dd>
556 variable to be converted 709 variable to be converted
557 </dd> 710 </dd>
558 </dl><dl> 711 </dl>
712 <dl>
559 <dt>Returns:</dt> 713 <dt>Returns:</dt>
560 <dd> 714 <dd>
561 dictionary containing the variable attributes 715 dictionary containing the variable attributes
562 </dd> 716 </dd>
563 </dl><dl> 717 </dl>
718 <dl>
564 <dt>Return Type:</dt> 719 <dt>Return Type:</dt>
565 <dd> 720 <dd>
566 dict 721 dict
567 </dd> 722 </dd>
568 </dl><a NAME="MultiValueDictResolver.resolve" ID="MultiValueDictResolver.resolve"></a> 723 </dl>
724 <a NAME="MultiValueDictResolver.resolve" ID="MultiValueDictResolver.resolve"></a>
569 <h4>MultiValueDictResolver.resolve</h4> 725 <h4>MultiValueDictResolver.resolve</h4>
570 <b>resolve</b>(<i>var, attribute</i>) 726 <b>resolve</b>(<i>var, attribute</i>)
727
571 <p> 728 <p>
572 Public method to get an attribute from a variable. 729 Public method to get an attribute from a variable.
573 </p><dl> 730 </p>
731 <dl>
732
574 <dt><i>var</i> (dict)</dt> 733 <dt><i>var</i> (dict)</dt>
575 <dd> 734 <dd>
576 variable to extract an attribute or value from 735 variable to extract an attribute or value from
577 </dd><dt><i>attribute</i> (str)</dt> 736 </dd>
737 <dt><i>attribute</i> (str)</dt>
578 <dd> 738 <dd>
579 name of the attribute to extract 739 name of the attribute to extract
580 </dd> 740 </dd>
581 </dl><dl> 741 </dl>
742 <dl>
582 <dt>Returns:</dt> 743 <dt>Returns:</dt>
583 <dd> 744 <dd>
584 value of the attribute 745 value of the attribute
585 </dd> 746 </dd>
586 </dl><dl> 747 </dl>
748 <dl>
587 <dt>Return Type:</dt> 749 <dt>Return Type:</dt>
588 <dd> 750 <dd>
589 any 751 any
590 </dd> 752 </dd>
591 </dl> 753 </dl>
592 <div align="right"><a href="#top">Up</a></div> 754 <div align="right"><a href="#top">Up</a></div>
593 <hr /><hr /> 755 <hr />
756 <hr />
594 <a NAME="NdArrayResolver" ID="NdArrayResolver"></a> 757 <a NAME="NdArrayResolver" ID="NdArrayResolver"></a>
595 <h2>NdArrayResolver</h2> 758 <h2>NdArrayResolver</h2>
759
596 <p> 760 <p>
597 Class used to resolve from numpy ndarray including some meta data. 761 Class used to resolve from numpy ndarray including some meta data.
598 </p> 762 </p>
599 <h3>Derived from</h3> 763 <h3>Derived from</h3>
600 BaseResolver 764 BaseResolver
601 <h3>Class Attributes</h3> 765 <h3>Class Attributes</h3>
766
602 <table> 767 <table>
603 <tr><td>None</td></tr> 768 <tr><td>None</td></tr>
604 </table> 769 </table>
605 <h3>Class Methods</h3> 770 <h3>Class Methods</h3>
771
606 <table> 772 <table>
607 <tr><td>None</td></tr> 773 <tr><td>None</td></tr>
608 </table> 774 </table>
609 <h3>Methods</h3> 775 <h3>Methods</h3>
610 <table> 776
777 <table>
778
611 <tr> 779 <tr>
612 <td><a href="#NdArrayResolver.__isNumeric">__isNumeric</a></td> 780 <td><a href="#NdArrayResolver.__isNumeric">__isNumeric</a></td>
613 <td>Private method to check, if an array is of a numeric type.</td> 781 <td>Private method to check, if an array is of a numeric type.</td>
614 </tr><tr> 782 </tr>
783 <tr>
615 <td><a href="#NdArrayResolver.getDictionary">getDictionary</a></td> 784 <td><a href="#NdArrayResolver.getDictionary">getDictionary</a></td>
616 <td>Public method to get the attributes of a variable as a dictionary.</td> 785 <td>Public method to get the attributes of a variable as a dictionary.</td>
617 </tr><tr> 786 </tr>
787 <tr>
618 <td><a href="#NdArrayResolver.resolve">resolve</a></td> 788 <td><a href="#NdArrayResolver.resolve">resolve</a></td>
619 <td>Public method to get an attribute from a variable.</td> 789 <td>Public method to get an attribute from a variable.</td>
620 </tr> 790 </tr>
621 </table> 791 </table>
622 <h3>Static Methods</h3> 792 <h3>Static Methods</h3>
623 <table> 793
624 <tr><td>None</td></tr> 794 <table>
625 </table> 795 <tr><td>None</td></tr>
796 </table>
797
626 <a NAME="NdArrayResolver.__isNumeric" ID="NdArrayResolver.__isNumeric"></a> 798 <a NAME="NdArrayResolver.__isNumeric" ID="NdArrayResolver.__isNumeric"></a>
627 <h4>NdArrayResolver.__isNumeric</h4> 799 <h4>NdArrayResolver.__isNumeric</h4>
628 <b>__isNumeric</b>(<i>arr</i>) 800 <b>__isNumeric</b>(<i>arr</i>)
801
629 <p> 802 <p>
630 Private method to check, if an array is of a numeric type. 803 Private method to check, if an array is of a numeric type.
631 </p><dl> 804 </p>
805 <dl>
806
632 <dt><i>arr</i> (ndarray)</dt> 807 <dt><i>arr</i> (ndarray)</dt>
633 <dd> 808 <dd>
634 array to check 809 array to check
635 </dd> 810 </dd>
636 </dl><dl> 811 </dl>
812 <dl>
637 <dt>Returns:</dt> 813 <dt>Returns:</dt>
638 <dd> 814 <dd>
639 flag indicating a numeric array 815 flag indicating a numeric array
640 </dd> 816 </dd>
641 </dl><dl> 817 </dl>
818 <dl>
642 <dt>Return Type:</dt> 819 <dt>Return Type:</dt>
643 <dd> 820 <dd>
644 bool 821 bool
645 </dd> 822 </dd>
646 </dl><a NAME="NdArrayResolver.getDictionary" ID="NdArrayResolver.getDictionary"></a> 823 </dl>
824 <a NAME="NdArrayResolver.getDictionary" ID="NdArrayResolver.getDictionary"></a>
647 <h4>NdArrayResolver.getDictionary</h4> 825 <h4>NdArrayResolver.getDictionary</h4>
648 <b>getDictionary</b>(<i>var</i>) 826 <b>getDictionary</b>(<i>var</i>)
827
649 <p> 828 <p>
650 Public method to get the attributes of a variable as a dictionary. 829 Public method to get the attributes of a variable as a dictionary.
651 </p><dl> 830 </p>
831 <dl>
832
652 <dt><i>var</i> (any)</dt> 833 <dt><i>var</i> (any)</dt>
653 <dd> 834 <dd>
654 variable to be converted 835 variable to be converted
655 </dd> 836 </dd>
656 </dl><dl> 837 </dl>
838 <dl>
657 <dt>Returns:</dt> 839 <dt>Returns:</dt>
658 <dd> 840 <dd>
659 dictionary containing the variable attributes 841 dictionary containing the variable attributes
660 </dd> 842 </dd>
661 </dl><dl> 843 </dl>
844 <dl>
662 <dt>Return Type:</dt> 845 <dt>Return Type:</dt>
663 <dd> 846 <dd>
664 dict 847 dict
665 </dd> 848 </dd>
666 </dl><a NAME="NdArrayResolver.resolve" ID="NdArrayResolver.resolve"></a> 849 </dl>
850 <a NAME="NdArrayResolver.resolve" ID="NdArrayResolver.resolve"></a>
667 <h4>NdArrayResolver.resolve</h4> 851 <h4>NdArrayResolver.resolve</h4>
668 <b>resolve</b>(<i>var, attribute</i>) 852 <b>resolve</b>(<i>var, attribute</i>)
853
669 <p> 854 <p>
670 Public method to get an attribute from a variable. 855 Public method to get an attribute from a variable.
671 </p><dl> 856 </p>
857 <dl>
858
672 <dt><i>var</i> (tuple or list)</dt> 859 <dt><i>var</i> (tuple or list)</dt>
673 <dd> 860 <dd>
674 variable to extract an attribute or value from 861 variable to extract an attribute or value from
675 </dd><dt><i>attribute</i> (str)</dt> 862 </dd>
863 <dt><i>attribute</i> (str)</dt>
676 <dd> 864 <dd>
677 id of the value to extract 865 id of the value to extract
678 </dd> 866 </dd>
679 </dl><dl> 867 </dl>
868 <dl>
680 <dt>Returns:</dt> 869 <dt>Returns:</dt>
681 <dd> 870 <dd>
682 value of the attribute 871 value of the attribute
683 </dd> 872 </dd>
684 </dl><dl> 873 </dl>
874 <dl>
685 <dt>Return Type:</dt> 875 <dt>Return Type:</dt>
686 <dd> 876 <dd>
687 any 877 any
688 </dd> 878 </dd>
689 </dl> 879 </dl>
690 <div align="right"><a href="#top">Up</a></div> 880 <div align="right"><a href="#top">Up</a></div>
691 <hr /><hr /> 881 <hr />
882 <hr />
692 <a NAME="SetResolver" ID="SetResolver"></a> 883 <a NAME="SetResolver" ID="SetResolver"></a>
693 <h2>SetResolver</h2> 884 <h2>SetResolver</h2>
885
694 <p> 886 <p>
695 Class used to resolve from a set or frozenset. 887 Class used to resolve from a set or frozenset.
696 </p> 888 </p>
697 <h3>Derived from</h3> 889 <h3>Derived from</h3>
698 BaseResolver 890 BaseResolver
699 <h3>Class Attributes</h3> 891 <h3>Class Attributes</h3>
892
700 <table> 893 <table>
701 <tr><td>None</td></tr> 894 <tr><td>None</td></tr>
702 </table> 895 </table>
703 <h3>Class Methods</h3> 896 <h3>Class Methods</h3>
897
704 <table> 898 <table>
705 <tr><td>None</td></tr> 899 <tr><td>None</td></tr>
706 </table> 900 </table>
707 <h3>Methods</h3> 901 <h3>Methods</h3>
708 <table> 902
903 <table>
904
709 <tr> 905 <tr>
710 <td><a href="#SetResolver.getDictionary">getDictionary</a></td> 906 <td><a href="#SetResolver.getDictionary">getDictionary</a></td>
711 <td>Public method to get the attributes of a variable as a dictionary.</td> 907 <td>Public method to get the attributes of a variable as a dictionary.</td>
712 </tr><tr> 908 </tr>
909 <tr>
713 <td><a href="#SetResolver.resolve">resolve</a></td> 910 <td><a href="#SetResolver.resolve">resolve</a></td>
714 <td>Public method to get an attribute from a variable.</td> 911 <td>Public method to get an attribute from a variable.</td>
715 </tr> 912 </tr>
716 </table> 913 </table>
717 <h3>Static Methods</h3> 914 <h3>Static Methods</h3>
718 <table> 915
719 <tr><td>None</td></tr> 916 <table>
720 </table> 917 <tr><td>None</td></tr>
918 </table>
919
721 <a NAME="SetResolver.getDictionary" ID="SetResolver.getDictionary"></a> 920 <a NAME="SetResolver.getDictionary" ID="SetResolver.getDictionary"></a>
722 <h4>SetResolver.getDictionary</h4> 921 <h4>SetResolver.getDictionary</h4>
723 <b>getDictionary</b>(<i>var</i>) 922 <b>getDictionary</b>(<i>var</i>)
923
724 <p> 924 <p>
725 Public method to get the attributes of a variable as a dictionary. 925 Public method to get the attributes of a variable as a dictionary.
726 </p><dl> 926 </p>
927 <dl>
928
727 <dt><i>var</i> (any)</dt> 929 <dt><i>var</i> (any)</dt>
728 <dd> 930 <dd>
729 variable to be converted 931 variable to be converted
730 </dd> 932 </dd>
731 </dl><dl> 933 </dl>
934 <dl>
732 <dt>Returns:</dt> 935 <dt>Returns:</dt>
733 <dd> 936 <dd>
734 dictionary containing the variable attributes 937 dictionary containing the variable attributes
735 </dd> 938 </dd>
736 </dl><dl> 939 </dl>
940 <dl>
737 <dt>Return Type:</dt> 941 <dt>Return Type:</dt>
738 <dd> 942 <dd>
739 dict 943 dict
740 </dd> 944 </dd>
741 </dl><a NAME="SetResolver.resolve" ID="SetResolver.resolve"></a> 945 </dl>
946 <a NAME="SetResolver.resolve" ID="SetResolver.resolve"></a>
742 <h4>SetResolver.resolve</h4> 947 <h4>SetResolver.resolve</h4>
743 <b>resolve</b>(<i>var, attribute</i>) 948 <b>resolve</b>(<i>var, attribute</i>)
949
744 <p> 950 <p>
745 Public method to get an attribute from a variable. 951 Public method to get an attribute from a variable.
746 </p><dl> 952 </p>
953 <dl>
954
747 <dt><i>var</i> (tuple or list)</dt> 955 <dt><i>var</i> (tuple or list)</dt>
748 <dd> 956 <dd>
749 variable to extract an attribute or value from 957 variable to extract an attribute or value from
750 </dd><dt><i>attribute</i> (str)</dt> 958 </dd>
959 <dt><i>attribute</i> (str)</dt>
751 <dd> 960 <dd>
752 id of the value to extract 961 id of the value to extract
753 </dd> 962 </dd>
754 </dl><dl> 963 </dl>
964 <dl>
755 <dt>Returns:</dt> 965 <dt>Returns:</dt>
756 <dd> 966 <dd>
757 value of the attribute 967 value of the attribute
758 </dd> 968 </dd>
759 </dl><dl> 969 </dl>
970 <dl>
760 <dt>Return Type:</dt> 971 <dt>Return Type:</dt>
761 <dd> 972 <dd>
762 any 973 any
763 </dd> 974 </dd>
764 </dl> 975 </dl>
765 <div align="right"><a href="#top">Up</a></div> 976 <div align="right"><a href="#top">Up</a></div>
766 <hr /><hr /> 977 <hr />
978 <hr />
767 <a NAME="_initTypeMap" ID="_initTypeMap"></a> 979 <a NAME="_initTypeMap" ID="_initTypeMap"></a>
768 <h2>_initTypeMap</h2> 980 <h2>_initTypeMap</h2>
769 <b>_initTypeMap</b>(<i></i>) 981 <b>_initTypeMap</b>(<i></i>)
982
770 <p> 983 <p>
771 Protected function to initialize the type map. 984 Protected function to initialize the type map.
772 </p> 985 </p>
773 <div align="right"><a href="#top">Up</a></div> 986 <div align="right"><a href="#top">Up</a></div>
774 <hr /><hr /> 987 <hr />
988 <hr />
775 <a NAME="getType" ID="getType"></a> 989 <a NAME="getType" ID="getType"></a>
776 <h2>getType</h2> 990 <h2>getType</h2>
777 <b>getType</b>(<i>obj</i>) 991 <b>getType</b>(<i>obj</i>)
992
778 <p> 993 <p>
779 Public method to get the type information for an object. 994 Public method to get the type information for an object.
780 </p><dl> 995 </p>
996 <dl>
997
781 <dt><i>obj</i> (any)</dt> 998 <dt><i>obj</i> (any)</dt>
782 <dd> 999 <dd>
783 object to get type information for 1000 object to get type information for
784 </dd> 1001 </dd>
785 </dl><dl> 1002 </dl>
1003 <dl>
786 <dt>Returns:</dt> 1004 <dt>Returns:</dt>
787 <dd> 1005 <dd>
788 tuple containing the type name, type string and resolver 1006 tuple containing the type name, type string and resolver
789 </dd> 1007 </dd>
790 </dl><dl> 1008 </dl>
1009 <dl>
791 <dt>Return Type:</dt> 1010 <dt>Return Type:</dt>
792 <dd> 1011 <dd>
793 tuple of str, str, BaseResolver 1012 tuple of str, str, BaseResolver
794 </dd> 1013 </dd>
795 </dl> 1014 </dl>

eric ide

mercurial