src/eric7/Documentation/Source/eric7.DebugClients.Python.DebugVariables.html

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

eric ide

mercurial