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

branch
eric7
changeset 8575
423c4db4101e
parent 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8574:e5d88ab9d84d 8575:423c4db4101e
26 Module implementing classes and functions to dump variable contents. 26 Module implementing classes and functions to dump variable contents.
27 </p> 27 </p>
28 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29 29
30 <table> 30 <table>
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> 31 <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>
32 </table> 32 </table>
33 <h3>Classes</h3> 33 <h3>Classes</h3>
34 34
35 <table> 35 <table>
36 36
65 <tr> 65 <tr>
66 <td><a href="#NdArrayResolver">NdArrayResolver</a></td> 66 <td><a href="#NdArrayResolver">NdArrayResolver</a></td>
67 <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>
68 </tr> 68 </tr>
69 <tr> 69 <tr>
70 <td><a href="#QtResolver">QtResolver</a></td>
71 <td>Class used to resolve the Qt implementations.</td>
72 </tr>
73 <tr>
70 <td><a href="#SetResolver">SetResolver</a></td> 74 <td><a href="#SetResolver">SetResolver</a></td>
71 <td>Class used to resolve from a set or frozenset.</td> 75 <td>Class used to resolve from a set or frozenset.</td>
72 </tr> 76 </tr>
73 </table> 77 </table>
74 <h3>Functions</h3> 78 <h3>Functions</h3>
78 <tr> 82 <tr>
79 <td><a href="#_initTypeMap">_initTypeMap</a></td> 83 <td><a href="#_initTypeMap">_initTypeMap</a></td>
80 <td>Protected function to initialize the type map.</td> 84 <td>Protected function to initialize the type map.</td>
81 </tr> 85 </tr>
82 <tr> 86 <tr>
83 <td><a href="#getType">getType</a></td> 87 <td><a href="#getResolver">getResolver</a></td>
84 <td>Public method to get the type information for an object.</td> 88 <td>Public method to get the resolver based on the type info of an object.</td>
89 </tr>
90 <tr>
91 <td><a href="#updateTypeMap">updateTypeMap</a></td>
92 <td>Public function to update the type map based on module imports.</td>
85 </tr> 93 </tr>
86 </table> 94 </table>
87 <hr /> 95 <hr />
88 <hr /> 96 <hr />
89 <a NAME="ArrayResolver" ID="ArrayResolver"></a> 97 <a NAME="ArrayResolver" ID="ArrayResolver"></a>
107 <h3>Methods</h3> 115 <h3>Methods</h3>
108 116
109 <table> 117 <table>
110 118
111 <tr> 119 <tr>
112 <td><a href="#ArrayResolver.getDictionary">getDictionary</a></td> 120 <td><a href="#ArrayResolver.getVariableList">getVariableList</a></td>
113 <td>Public method to get the attributes of a variable as a dictionary.</td> 121 <td>Public method to get the attributes of a variable as a list.</td>
114 </tr> 122 </tr>
115 <tr> 123 <tr>
116 <td><a href="#ArrayResolver.resolve">resolve</a></td> 124 <td><a href="#ArrayResolver.resolve">resolve</a></td>
117 <td>Public method to get an attribute from a variable.</td> 125 <td>Public method to get an attribute from a variable.</td>
118 </tr> 126 </tr>
121 129
122 <table> 130 <table>
123 <tr><td>None</td></tr> 131 <tr><td>None</td></tr>
124 </table> 132 </table>
125 133
126 <a NAME="ArrayResolver.getDictionary" ID="ArrayResolver.getDictionary"></a> 134 <a NAME="ArrayResolver.getVariableList" ID="ArrayResolver.getVariableList"></a>
127 <h4>ArrayResolver.getDictionary</h4> 135 <h4>ArrayResolver.getVariableList</h4>
128 <b>getDictionary</b>(<i>var</i>) 136 <b>getVariableList</b>(<i>var</i>)
129 137
130 <p> 138 <p>
131 Public method to get the attributes of a variable as a dictionary. 139 Public method to get the attributes of a variable as a list.
132 </p> 140 </p>
133 <dl> 141 <dl>
134 142
135 <dt><i>var</i> (any)</dt> 143 <dt><i>var</i> (any)</dt>
136 <dd> 144 <dd>
138 </dd> 146 </dd>
139 </dl> 147 </dl>
140 <dl> 148 <dl>
141 <dt>Yield:</dt> 149 <dt>Yield:</dt>
142 <dd> 150 <dd>
143 tuple containing the batch start index and a dictionary 151 tuple containing the batch start index and a list
144 containing the variable attributes 152 containing the variable attributes
145 </dd> 153 </dd>
146 </dl> 154 </dl>
147 <dl> 155 <dl>
148 <dt>Yield Type:</dt> 156 <dt>Yield Type:</dt>
149 <dd> 157 <dd>
150 tuple of (int, dict) 158 tuple of (int, list)
151 </dd> 159 </dd>
152 </dl> 160 </dl>
153 <a NAME="ArrayResolver.resolve" ID="ArrayResolver.resolve"></a> 161 <a NAME="ArrayResolver.resolve" ID="ArrayResolver.resolve"></a>
154 <h4>ArrayResolver.resolve</h4> 162 <h4>ArrayResolver.resolve</h4>
155 <b>resolve</b>(<i>var, attribute</i>) 163 <b>resolve</b>(<i>var, attribute</i>)
157 <p> 165 <p>
158 Public method to get an attribute from a variable. 166 Public method to get an attribute from a variable.
159 </p> 167 </p>
160 <dl> 168 <dl>
161 169
162 <dt><i>var</i> (tuple or list)</dt> 170 <dt><i>var</i> (array.array)</dt>
163 <dd> 171 <dd>
164 variable to extract an attribute or value from 172 variable to extract an attribute or value from
165 </dd> 173 </dd>
166 <dt><i>attribute</i> (str)</dt> 174 <dt><i>attribute</i> (str)</dt>
167 <dd> 175 <dd>
204 <h3>Methods</h3> 212 <h3>Methods</h3>
205 213
206 <table> 214 <table>
207 215
208 <tr> 216 <tr>
209 <td><a href="#BaseResolver.getDictionary">getDictionary</a></td> 217 <td><a href="#BaseResolver.getVariableList">getVariableList</a></td>
210 <td>Public method to get the attributes of a variable as a dictionary.</td> 218 <td>Public method to get the attributes of a variable as a list.</td>
211 </tr> 219 </tr>
212 <tr> 220 <tr>
213 <td><a href="#BaseResolver.resolve">resolve</a></td> 221 <td><a href="#BaseResolver.resolve">resolve</a></td>
214 <td>Public method to get an attribute from a variable.</td> 222 <td>Public method to get an attribute from a variable.</td>
215 </tr> 223 </tr>
218 226
219 <table> 227 <table>
220 <tr><td>None</td></tr> 228 <tr><td>None</td></tr>
221 </table> 229 </table>
222 230
223 <a NAME="BaseResolver.getDictionary" ID="BaseResolver.getDictionary"></a> 231 <a NAME="BaseResolver.getVariableList" ID="BaseResolver.getVariableList"></a>
224 <h4>BaseResolver.getDictionary</h4> 232 <h4>BaseResolver.getVariableList</h4>
225 <b>getDictionary</b>(<i>var</i>) 233 <b>getVariableList</b>(<i>var</i>)
226 234
227 <p> 235 <p>
228 Public method to get the attributes of a variable as a dictionary. 236 Public method to get the attributes of a variable as a list.
229 </p> 237 </p>
230 <dl> 238 <dl>
231 239
232 <dt><i>var</i> (any)</dt> 240 <dt><i>var</i> (any)</dt>
233 <dd> 241 <dd>
235 </dd> 243 </dd>
236 </dl> 244 </dl>
237 <dl> 245 <dl>
238 <dt>Return:</dt> 246 <dt>Return:</dt>
239 <dd> 247 <dd>
240 dictionary containing the variable attributes 248 list containing the variable attributes
241 </dd> 249 </dd>
242 </dl> 250 </dl>
243 <dl> 251 <dl>
244 <dt>Return Type:</dt> 252 <dt>Return Type:</dt>
245 <dd> 253 <dd>
246 dict 254 list
247 </dd> 255 </dd>
248 </dl> 256 </dl>
249 <a NAME="BaseResolver.resolve" ID="BaseResolver.resolve"></a> 257 <a NAME="BaseResolver.resolve" ID="BaseResolver.resolve"></a>
250 <h4>BaseResolver.resolve</h4> 258 <h4>BaseResolver.resolve</h4>
251 <b>resolve</b>(<i>var, attribute</i>) 259 <b>resolve</b>(<i>var, attribute</i>)
300 <h3>Methods</h3> 308 <h3>Methods</h3>
301 309
302 <table> 310 <table>
303 311
304 <tr> 312 <tr>
305 <td><a href="#DefaultResolver.getDictionary">getDictionary</a></td> 313 <td><a href="#DefaultResolver.getVariableList">getVariableList</a></td>
306 <td>Public method to get the attributes of a variable as a dictionary.</td> 314 <td>Public method to get the attributes of a variable as a list.</td>
307 </tr> 315 </tr>
308 </table> 316 </table>
309 <h3>Static Methods</h3> 317 <h3>Static Methods</h3>
310 318
311 <table> 319 <table>
312 <tr><td>None</td></tr> 320 <tr><td>None</td></tr>
313 </table> 321 </table>
314 322
315 <a NAME="DefaultResolver.getDictionary" ID="DefaultResolver.getDictionary"></a> 323 <a NAME="DefaultResolver.getVariableList" ID="DefaultResolver.getVariableList"></a>
316 <h4>DefaultResolver.getDictionary</h4> 324 <h4>DefaultResolver.getVariableList</h4>
317 <b>getDictionary</b>(<i>var</i>) 325 <b>getVariableList</b>(<i>var</i>)
318 326
319 <p> 327 <p>
320 Public method to get the attributes of a variable as a dictionary. 328 Public method to get the attributes of a variable as a list.
321 </p> 329 </p>
322 <dl> 330 <dl>
323 331
324 <dt><i>var</i> (any)</dt> 332 <dt><i>var</i> (any)</dt>
325 <dd> 333 <dd>
327 </dd> 335 </dd>
328 </dl> 336 </dl>
329 <dl> 337 <dl>
330 <dt>Yield:</dt> 338 <dt>Yield:</dt>
331 <dd> 339 <dd>
332 tuple containing the batch start index and a dictionary 340 tuple containing the batch start index and a list
333 containing the variable attributes 341 containing the variable attributes
334 </dd> 342 </dd>
335 </dl> 343 </dl>
336 <dl> 344 <dl>
337 <dt>Yield Type:</dt> 345 <dt>Yield Type:</dt>
338 <dd> 346 <dd>
339 tuple of (int, dict) 347 tuple of (int, list)
340 </dd> 348 </dd>
341 </dl> 349 </dl>
342 <div align="right"><a href="#top">Up</a></div> 350 <div align="right"><a href="#top">Up</a></div>
343 <hr /> 351 <hr />
344 <hr /> 352 <hr />
363 <h3>Methods</h3> 371 <h3>Methods</h3>
364 372
365 <table> 373 <table>
366 374
367 <tr> 375 <tr>
368 <td><a href="#DictResolver.getDictionary">getDictionary</a></td> 376 <td><a href="#DictResolver.getVariableList">getVariableList</a></td>
369 <td>Public method to get the attributes of a variable as a dictionary.</td> 377 <td>Public method to get the attributes of a variable as a list.</td>
370 </tr> 378 </tr>
371 <tr> 379 <tr>
372 <td><a href="#DictResolver.keyToStr">keyToStr</a></td> 380 <td><a href="#DictResolver.keyToStr">keyToStr</a></td>
373 <td>Public method to get a string representation for a key.</td> 381 <td>Public method to get a string representation for a key.</td>
374 </tr> 382 </tr>
381 389
382 <table> 390 <table>
383 <tr><td>None</td></tr> 391 <tr><td>None</td></tr>
384 </table> 392 </table>
385 393
386 <a NAME="DictResolver.getDictionary" ID="DictResolver.getDictionary"></a> 394 <a NAME="DictResolver.getVariableList" ID="DictResolver.getVariableList"></a>
387 <h4>DictResolver.getDictionary</h4> 395 <h4>DictResolver.getVariableList</h4>
388 <b>getDictionary</b>(<i>var</i>) 396 <b>getVariableList</b>(<i>var</i>)
389 397
390 <p> 398 <p>
391 Public method to get the attributes of a variable as a dictionary. 399 Public method to get the attributes of a variable as a list.
392 </p> 400 </p>
393 <dl> 401 <dl>
394 402
395 <dt><i>var</i> (any)</dt> 403 <dt><i>var</i> (any)</dt>
396 <dd> 404 <dd>
398 </dd> 406 </dd>
399 </dl> 407 </dl>
400 <dl> 408 <dl>
401 <dt>Yield:</dt> 409 <dt>Yield:</dt>
402 <dd> 410 <dd>
403 tuple containing the batch start index and a dictionary 411 tuple containing the batch start index and a list
404 containing the variable attributes 412 containing the variable attributes
405 </dd> 413 </dd>
406 </dl> 414 </dl>
407 <dl> 415 <dl>
408 <dt>Yield Type:</dt> 416 <dt>Yield Type:</dt>
409 <dd> 417 <dd>
410 tuple of (int, dict) 418 tuple of (int, list)
411 </dd> 419 </dd>
412 </dl> 420 </dl>
413 <a NAME="DictResolver.keyToStr" ID="DictResolver.keyToStr"></a> 421 <a NAME="DictResolver.keyToStr" ID="DictResolver.keyToStr"></a>
414 <h4>DictResolver.keyToStr</h4> 422 <h4>DictResolver.keyToStr</h4>
415 <b>keyToStr</b>(<i>key</i>) 423 <b>keyToStr</b>(<i>key</i>)
490 <h3>Methods</h3> 498 <h3>Methods</h3>
491 499
492 <table> 500 <table>
493 501
494 <tr> 502 <tr>
495 <td><a href="#DictViewResolver.getDictionary">getDictionary</a></td> 503 <td><a href="#DictViewResolver.getVariableList">getVariableList</a></td>
496 <td>Public method to get the attributes of a variable as a dictionary.</td> 504 <td>Public method to get the attributes of a variable as a list.</td>
497 </tr> 505 </tr>
498 <tr> 506 <tr>
499 <td><a href="#DictViewResolver.resolve">resolve</a></td> 507 <td><a href="#DictViewResolver.resolve">resolve</a></td>
500 <td>Public method to get an attribute from a variable.</td> 508 <td>Public method to get an attribute from a variable.</td>
501 </tr> 509 </tr>
504 512
505 <table> 513 <table>
506 <tr><td>None</td></tr> 514 <tr><td>None</td></tr>
507 </table> 515 </table>
508 516
509 <a NAME="DictViewResolver.getDictionary" ID="DictViewResolver.getDictionary"></a> 517 <a NAME="DictViewResolver.getVariableList" ID="DictViewResolver.getVariableList"></a>
510 <h4>DictViewResolver.getDictionary</h4> 518 <h4>DictViewResolver.getVariableList</h4>
511 <b>getDictionary</b>(<i>var</i>) 519 <b>getVariableList</b>(<i>var</i>)
512 520
513 <p> 521 <p>
514 Public method to get the attributes of a variable as a dictionary. 522 Public method to get the attributes of a variable as a list.
515 </p> 523 </p>
516 <dl> 524 <dl>
517 525
518 <dt><i>var</i> (any)</dt> 526 <dt><i>var</i> (any)</dt>
519 <dd> 527 <dd>
520 variable to be converted 528 variable to be converted
521 </dd> 529 </dd>
522 </dl> 530 </dl>
523 <dl> 531 <dl>
524 <dt>Return:</dt> 532 <dt>Yield:</dt>
525 <dd> 533 <dd>
526 dictionary containing the variable attributes 534 tuple containing the batch start index and a list
527 </dd> 535 containing the variable attributes
528 </dl> 536 </dd>
529 <dl> 537 </dl>
530 <dt>Return Type:</dt> 538 <dl>
531 <dd> 539 <dt>Yield Type:</dt>
532 dict 540 <dd>
541 tuple of (int, list)
533 </dd> 542 </dd>
534 </dl> 543 </dl>
535 <a NAME="DictViewResolver.resolve" ID="DictViewResolver.resolve"></a> 544 <a NAME="DictViewResolver.resolve" ID="DictViewResolver.resolve"></a>
536 <h4>DictViewResolver.resolve</h4> 545 <h4>DictViewResolver.resolve</h4>
537 <b>resolve</b>(<i>var, attribute</i>) 546 <b>resolve</b>(<i>var, attribute</i>)
539 <p> 548 <p>
540 Public method to get an attribute from a variable. 549 Public method to get an attribute from a variable.
541 </p> 550 </p>
542 <dl> 551 <dl>
543 552
544 <dt><i>var</i> (tuple or list)</dt> 553 <dt><i>var</i> (dict_items, dict_keys or dict_values)</dt>
545 <dd> 554 <dd>
546 variable to extract an attribute or value from 555 variable to extract an attribute or value from
547 </dd> 556 </dd>
548 <dt><i>attribute</i> (str)</dt> 557 <dt><i>attribute</i> (str)</dt>
549 <dd> 558 <dd>
586 <h3>Methods</h3> 595 <h3>Methods</h3>
587 596
588 <table> 597 <table>
589 598
590 <tr> 599 <tr>
591 <td><a href="#ListResolver.getDictionary">getDictionary</a></td> 600 <td><a href="#ListResolver.getVariableList">getVariableList</a></td>
592 <td>Public method to get the attributes of a variable as a dictionary.</td> 601 <td>Public method to get the attributes of a variable as a list.</td>
593 </tr> 602 </tr>
594 <tr> 603 <tr>
595 <td><a href="#ListResolver.resolve">resolve</a></td> 604 <td><a href="#ListResolver.resolve">resolve</a></td>
596 <td>Public method to get an attribute from a variable.</td> 605 <td>Public method to get an attribute from a variable.</td>
597 </tr> 606 </tr>
600 609
601 <table> 610 <table>
602 <tr><td>None</td></tr> 611 <tr><td>None</td></tr>
603 </table> 612 </table>
604 613
605 <a NAME="ListResolver.getDictionary" ID="ListResolver.getDictionary"></a> 614 <a NAME="ListResolver.getVariableList" ID="ListResolver.getVariableList"></a>
606 <h4>ListResolver.getDictionary</h4> 615 <h4>ListResolver.getVariableList</h4>
607 <b>getDictionary</b>(<i>var</i>) 616 <b>getVariableList</b>(<i>var</i>)
608 617
609 <p> 618 <p>
610 Public method to get the attributes of a variable as a dictionary. 619 Public method to get the attributes of a variable as a list.
611 </p> 620 </p>
612 <dl> 621 <dl>
613 622
614 <dt><i>var</i> (any)</dt> 623 <dt><i>var</i> (any)</dt>
615 <dd> 624 <dd>
617 </dd> 626 </dd>
618 </dl> 627 </dl>
619 <dl> 628 <dl>
620 <dt>Yield:</dt> 629 <dt>Yield:</dt>
621 <dd> 630 <dd>
622 tuple containing the batch start index and a dictionary 631 tuple containing the batch start index and a list
623 containing the variable attributes 632 containing the variable attributes
624 </dd> 633 </dd>
625 </dl> 634 </dl>
626 <dl> 635 <dl>
627 <dt>Yield Type:</dt> 636 <dt>Yield Type:</dt>
628 <dd> 637 <dd>
629 tuple of (int, dict) 638 tuple of (int, list)
630 </dd> 639 </dd>
631 </dl> 640 </dl>
632 <a NAME="ListResolver.resolve" ID="ListResolver.resolve"></a> 641 <a NAME="ListResolver.resolve" ID="ListResolver.resolve"></a>
633 <h4>ListResolver.resolve</h4> 642 <h4>ListResolver.resolve</h4>
634 <b>resolve</b>(<i>var, attribute</i>) 643 <b>resolve</b>(<i>var, attribute</i>)
683 <h3>Methods</h3> 692 <h3>Methods</h3>
684 693
685 <table> 694 <table>
686 695
687 <tr> 696 <tr>
688 <td><a href="#MultiValueDictResolver.getDictionary">getDictionary</a></td> 697 <td><a href="#MultiValueDictResolver.getVariableList">getVariableList</a></td>
689 <td>Public method to get the attributes of a variable as a dictionary.</td> 698 <td>Public method to get the attributes of a variable as a list.</td>
690 </tr> 699 </tr>
691 <tr> 700 <tr>
692 <td><a href="#MultiValueDictResolver.resolve">resolve</a></td> 701 <td><a href="#MultiValueDictResolver.resolve">resolve</a></td>
693 <td>Public method to get an attribute from a variable.</td> 702 <td>Public method to get an attribute from a variable.</td>
694 </tr> 703 </tr>
697 706
698 <table> 707 <table>
699 <tr><td>None</td></tr> 708 <tr><td>None</td></tr>
700 </table> 709 </table>
701 710
702 <a NAME="MultiValueDictResolver.getDictionary" ID="MultiValueDictResolver.getDictionary"></a> 711 <a NAME="MultiValueDictResolver.getVariableList" ID="MultiValueDictResolver.getVariableList"></a>
703 <h4>MultiValueDictResolver.getDictionary</h4> 712 <h4>MultiValueDictResolver.getVariableList</h4>
704 <b>getDictionary</b>(<i>var</i>) 713 <b>getVariableList</b>(<i>var</i>)
705 714
706 <p> 715 <p>
707 Public method to get the attributes of a variable as a dictionary. 716 Public method to get the attributes of a variable as a list.
708 </p> 717 </p>
709 <dl> 718 <dl>
710 719
711 <dt><i>var</i> (any)</dt> 720 <dt><i>var</i> (any)</dt>
712 <dd> 721 <dd>
714 </dd> 723 </dd>
715 </dl> 724 </dl>
716 <dl> 725 <dl>
717 <dt>Yield:</dt> 726 <dt>Yield:</dt>
718 <dd> 727 <dd>
719 tuple containing the batch start index and a dictionary 728 tuple containing the batch start index and a list
720 containing the variable attributes 729 containing the variable attributes
721 </dd> 730 </dd>
722 </dl> 731 </dl>
723 <dl> 732 <dl>
724 <dt>Yield Type:</dt> 733 <dt>Yield Type:</dt>
725 <dd> 734 <dd>
726 tuple of (int, dict) 735 tuple of (int, list)
727 </dd> 736 </dd>
728 </dl> 737 </dl>
729 <a NAME="MultiValueDictResolver.resolve" ID="MultiValueDictResolver.resolve"></a> 738 <a NAME="MultiValueDictResolver.resolve" ID="MultiValueDictResolver.resolve"></a>
730 <h4>MultiValueDictResolver.resolve</h4> 739 <h4>MultiValueDictResolver.resolve</h4>
731 <b>resolve</b>(<i>var, attribute</i>) 740 <b>resolve</b>(<i>var, attribute</i>)
733 <p> 742 <p>
734 Public method to get an attribute from a variable. 743 Public method to get an attribute from a variable.
735 </p> 744 </p>
736 <dl> 745 <dl>
737 746
738 <dt><i>var</i> (dict)</dt> 747 <dt><i>var</i> (MultiValueDict)</dt>
739 <dd> 748 <dd>
740 variable to extract an attribute or value from 749 variable to extract an attribute or value from
741 </dd> 750 </dd>
742 <dt><i>attribute</i> (str)</dt> 751 <dt><i>attribute</i> (str)</dt>
743 <dd> 752 <dd>
784 <tr> 793 <tr>
785 <td><a href="#NdArrayResolver.__isNumeric">__isNumeric</a></td> 794 <td><a href="#NdArrayResolver.__isNumeric">__isNumeric</a></td>
786 <td>Private method to check, if an array is of a numeric type.</td> 795 <td>Private method to check, if an array is of a numeric type.</td>
787 </tr> 796 </tr>
788 <tr> 797 <tr>
789 <td><a href="#NdArrayResolver.getDictionary">getDictionary</a></td> 798 <td><a href="#NdArrayResolver.getVariableList">getVariableList</a></td>
790 <td>Public method to get the attributes of a variable as a dictionary.</td> 799 <td>Public method to get the attributes of a variable as a list.</td>
791 </tr> 800 </tr>
792 <tr> 801 <tr>
793 <td><a href="#NdArrayResolver.resolve">resolve</a></td> 802 <td><a href="#NdArrayResolver.resolve">resolve</a></td>
794 <td>Public method to get an attribute from a variable.</td> 803 <td>Public method to get an attribute from a variable.</td>
795 </tr> 804 </tr>
824 <dt>Return Type:</dt> 833 <dt>Return Type:</dt>
825 <dd> 834 <dd>
826 bool 835 bool
827 </dd> 836 </dd>
828 </dl> 837 </dl>
829 <a NAME="NdArrayResolver.getDictionary" ID="NdArrayResolver.getDictionary"></a> 838 <a NAME="NdArrayResolver.getVariableList" ID="NdArrayResolver.getVariableList"></a>
830 <h4>NdArrayResolver.getDictionary</h4> 839 <h4>NdArrayResolver.getVariableList</h4>
831 <b>getDictionary</b>(<i>var</i>) 840 <b>getVariableList</b>(<i>var</i>)
832 841
833 <p> 842 <p>
834 Public method to get the attributes of a variable as a dictionary. 843 Public method to get the attributes of a variable as a list.
835 </p> 844 </p>
836 <dl> 845 <dl>
837 846
838 <dt><i>var</i> (any)</dt> 847 <dt><i>var</i> (any)</dt>
839 <dd> 848 <dd>
841 </dd> 850 </dd>
842 </dl> 851 </dl>
843 <dl> 852 <dl>
844 <dt>Yield:</dt> 853 <dt>Yield:</dt>
845 <dd> 854 <dd>
846 tuple containing the batch start index and a dictionary 855 tuple containing the batch start index and a list
847 containing the variable attributes 856 containing the variable attributes
848 </dd> 857 </dd>
849 </dl> 858 </dl>
850 <dl> 859 <dl>
851 <dt>Yield Type:</dt> 860 <dt>Yield Type:</dt>
852 <dd> 861 <dd>
853 tuple of (int, dict) 862 tuple of (int, list)
854 </dd> 863 </dd>
855 </dl> 864 </dl>
856 <a NAME="NdArrayResolver.resolve" ID="NdArrayResolver.resolve"></a> 865 <a NAME="NdArrayResolver.resolve" ID="NdArrayResolver.resolve"></a>
857 <h4>NdArrayResolver.resolve</h4> 866 <h4>NdArrayResolver.resolve</h4>
858 <b>resolve</b>(<i>var, attribute</i>) 867 <b>resolve</b>(<i>var, attribute</i>)
860 <p> 869 <p>
861 Public method to get an attribute from a variable. 870 Public method to get an attribute from a variable.
862 </p> 871 </p>
863 <dl> 872 <dl>
864 873
865 <dt><i>var</i> (tuple or list)</dt> 874 <dt><i>var</i> (ndarray)</dt>
866 <dd> 875 <dd>
867 variable to extract an attribute or value from 876 variable to extract an attribute or value from
868 </dd> 877 </dd>
869 <dt><i>attribute</i> (str)</dt> 878 <dt><i>attribute</i> (str)</dt>
870 <dd> 879 <dd>
884 </dd> 893 </dd>
885 </dl> 894 </dl>
886 <div align="right"><a href="#top">Up</a></div> 895 <div align="right"><a href="#top">Up</a></div>
887 <hr /> 896 <hr />
888 <hr /> 897 <hr />
889 <a NAME="SetResolver" ID="SetResolver"></a> 898 <a NAME="QtResolver" ID="QtResolver"></a>
890 <h2>SetResolver</h2> 899 <h2>QtResolver</h2>
891 900
892 <p> 901 <p>
893 Class used to resolve from a set or frozenset. 902 Class used to resolve the Qt implementations.
894 </p> 903 </p>
895 <h3>Derived from</h3> 904 <h3>Derived from</h3>
896 BaseResolver 905 BaseResolver
897 <h3>Class Attributes</h3> 906 <h3>Class Attributes</h3>
898 907
907 <h3>Methods</h3> 916 <h3>Methods</h3>
908 917
909 <table> 918 <table>
910 919
911 <tr> 920 <tr>
912 <td><a href="#SetResolver.getDictionary">getDictionary</a></td> 921 <td><a href="#QtResolver.getVariableList">getVariableList</a></td>
913 <td>Public method to get the attributes of a variable as a dictionary.</td> 922 <td>Public method to get the attributes of a variable as a list.</td>
923 </tr>
924 <tr>
925 <td><a href="#QtResolver.resolve">resolve</a></td>
926 <td>Public method to get an attribute from a variable.</td>
927 </tr>
928 </table>
929 <h3>Static Methods</h3>
930
931 <table>
932 <tr><td>None</td></tr>
933 </table>
934
935 <a NAME="QtResolver.getVariableList" ID="QtResolver.getVariableList"></a>
936 <h4>QtResolver.getVariableList</h4>
937 <b>getVariableList</b>(<i>var</i>)
938
939 <p>
940 Public method to get the attributes of a variable as a list.
941 </p>
942 <dl>
943
944 <dt><i>var</i> (any)</dt>
945 <dd>
946 variable to be converted
947 </dd>
948 </dl>
949 <dl>
950 <dt>Yield:</dt>
951 <dd>
952 tuple containing the batch start index and a list
953 containing the variable attributes
954 </dd>
955 </dl>
956 <dl>
957 <dt>Yield Type:</dt>
958 <dd>
959 tuple of (int, list)
960 </dd>
961 </dl>
962 <a NAME="QtResolver.resolve" ID="QtResolver.resolve"></a>
963 <h4>QtResolver.resolve</h4>
964 <b>resolve</b>(<i>var, attribute</i>)
965
966 <p>
967 Public method to get an attribute from a variable.
968 </p>
969 <dl>
970
971 <dt><i>var</i> (Qt objects)</dt>
972 <dd>
973 variable to extract an attribute or value from
974 </dd>
975 <dt><i>attribute</i> (str)</dt>
976 <dd>
977 name of the attribute to extract
978 </dd>
979 </dl>
980 <dl>
981 <dt>Return:</dt>
982 <dd>
983 value of the attribute
984 </dd>
985 </dl>
986 <dl>
987 <dt>Return Type:</dt>
988 <dd>
989 any
990 </dd>
991 </dl>
992 <div align="right"><a href="#top">Up</a></div>
993 <hr />
994 <hr />
995 <a NAME="SetResolver" ID="SetResolver"></a>
996 <h2>SetResolver</h2>
997
998 <p>
999 Class used to resolve from a set or frozenset.
1000 </p>
1001 <h3>Derived from</h3>
1002 BaseResolver
1003 <h3>Class Attributes</h3>
1004
1005 <table>
1006 <tr><td>None</td></tr>
1007 </table>
1008 <h3>Class Methods</h3>
1009
1010 <table>
1011 <tr><td>None</td></tr>
1012 </table>
1013 <h3>Methods</h3>
1014
1015 <table>
1016
1017 <tr>
1018 <td><a href="#SetResolver.getVariableList">getVariableList</a></td>
1019 <td>Public method to get the attributes of a variable as a list.</td>
914 </tr> 1020 </tr>
915 <tr> 1021 <tr>
916 <td><a href="#SetResolver.resolve">resolve</a></td> 1022 <td><a href="#SetResolver.resolve">resolve</a></td>
917 <td>Public method to get an attribute from a variable.</td> 1023 <td>Public method to get an attribute from a variable.</td>
918 </tr> 1024 </tr>
921 1027
922 <table> 1028 <table>
923 <tr><td>None</td></tr> 1029 <tr><td>None</td></tr>
924 </table> 1030 </table>
925 1031
926 <a NAME="SetResolver.getDictionary" ID="SetResolver.getDictionary"></a> 1032 <a NAME="SetResolver.getVariableList" ID="SetResolver.getVariableList"></a>
927 <h4>SetResolver.getDictionary</h4> 1033 <h4>SetResolver.getVariableList</h4>
928 <b>getDictionary</b>(<i>var</i>) 1034 <b>getVariableList</b>(<i>var</i>)
929 1035
930 <p> 1036 <p>
931 Public method to get the attributes of a variable as a dictionary. 1037 Public method to get the attributes of a variable as a list.
932 </p> 1038 </p>
933 <dl> 1039 <dl>
934 1040
935 <dt><i>var</i> (any)</dt> 1041 <dt><i>var</i> (any)</dt>
936 <dd> 1042 <dd>
938 </dd> 1044 </dd>
939 </dl> 1045 </dl>
940 <dl> 1046 <dl>
941 <dt>Yield:</dt> 1047 <dt>Yield:</dt>
942 <dd> 1048 <dd>
943 tuple containing the batch start index and a dictionary 1049 tuple containing the batch start index and a list
944 containing the variable attributes 1050 containing the variable attributes
945 </dd> 1051 </dd>
946 </dl> 1052 </dl>
947 <dl> 1053 <dl>
948 <dt>Yield Type:</dt> 1054 <dt>Yield Type:</dt>
949 <dd> 1055 <dd>
950 tuple of (int, dict) 1056 tuple of (int, list)
951 </dd> 1057 </dd>
952 </dl> 1058 </dl>
953 <a NAME="SetResolver.resolve" ID="SetResolver.resolve"></a> 1059 <a NAME="SetResolver.resolve" ID="SetResolver.resolve"></a>
954 <h4>SetResolver.resolve</h4> 1060 <h4>SetResolver.resolve</h4>
955 <b>resolve</b>(<i>var, attribute</i>) 1061 <b>resolve</b>(<i>var, attribute</i>)
991 Protected function to initialize the type map. 1097 Protected function to initialize the type map.
992 </p> 1098 </p>
993 <div align="right"><a href="#top">Up</a></div> 1099 <div align="right"><a href="#top">Up</a></div>
994 <hr /> 1100 <hr />
995 <hr /> 1101 <hr />
996 <a NAME="getType" ID="getType"></a> 1102 <a NAME="getResolver" ID="getResolver"></a>
997 <h2>getType</h2> 1103 <h2>getResolver</h2>
998 <b>getType</b>(<i>obj</i>) 1104 <b>getResolver</b>(<i>obj</i>)
999 1105
1000 <p> 1106 <p>
1001 Public method to get the type information for an object. 1107 Public method to get the resolver based on the type info of an object.
1002 </p> 1108 </p>
1003 <dl> 1109 <dl>
1004 1110
1005 <dt><i>obj</i> (any)</dt> 1111 <dt><i>obj</i> (any)</dt>
1006 <dd> 1112 <dd>
1007 object to get type information for 1113 object to get resolver for
1008 </dd> 1114 </dd>
1009 </dl> 1115 </dl>
1010 <dl> 1116 <dl>
1011 <dt>Return:</dt> 1117 <dt>Return:</dt>
1012 <dd> 1118 <dd>
1013 tuple containing the type name, type string and resolver 1119 resolver
1014 </dd> 1120 </dd>
1015 </dl> 1121 </dl>
1016 <dl> 1122 <dl>
1017 <dt>Return Type:</dt> 1123 <dt>Return Type:</dt>
1018 <dd> 1124 <dd>
1019 tuple of str, str, BaseResolver 1125 BaseResolver
1020 </dd> 1126 </dd>
1021 </dl> 1127 </dl>
1128 <div align="right"><a href="#top">Up</a></div>
1129 <hr />
1130 <hr />
1131 <a NAME="updateTypeMap" ID="updateTypeMap"></a>
1132 <h2>updateTypeMap</h2>
1133 <b>updateTypeMap</b>(<i></i>)
1134
1135 <p>
1136 Public function to update the type map based on module imports.
1137 </p>
1022 <div align="right"><a href="#top">Up</a></div> 1138 <div align="right"><a href="#top">Up</a></div>
1023 <hr /> 1139 <hr />
1024 </body></html> 1140 </body></html>

eric ide

mercurial