1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module weakref</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>weakref</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python3.10/weakref.py">/usr/lib/python3.10/weakref.py</a></font></td></tr></table>
<p><tt>Weak reference support for Python.<br>
<br>
This module is an implementation of <a href="https://www.python.org/dev/peps/pep-0205/">PEP 205</a>:<br>
<br>
<a href="https://www.python.org/dev/peps/pep-0205/">https://www.python.org/dev/peps/pep-0205/</a></tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="collections.abc.html">collections.abc</a><br>
</td><td width="25%" valign=top><a href="itertools.html">itertools</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="weakref.html#CallableProxyType">CallableProxyType</a>
</font></dt><dt><font face="helvetica, arial"><a href="weakref.html#ProxyType">ProxyType</a>
</font></dt><dt><font face="helvetica, arial"><a href="weakref.html#ReferenceType">ReferenceType</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="weakref.html#KeyedRef">KeyedRef</a>
</font></dt><dt><font face="helvetica, arial"><a href="weakref.html#WeakMethod">WeakMethod</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="weakref.html#finalize">finalize</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="collections.abc.html#MutableMapping">MutableMapping</a>(<a href="collections.abc.html#Mapping">Mapping</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="weakref.html#WeakKeyDictionary">WeakKeyDictionary</a>
</font></dt><dt><font face="helvetica, arial"><a href="weakref.html#WeakValueDictionary">WeakValueDictionary</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="CallableProxyType">class <strong>CallableProxyType</strong></a>(<a href="builtins.html#object">object</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="CallableProxyType-__abs__"><strong>__abs__</strong></a>(self, /)</dt><dd><tt>abs(self)</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__add__"><strong>__add__</strong></a>(self, value, /)</dt><dd><tt>Return self+value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__and__"><strong>__and__</strong></a>(self, value, /)</dt><dd><tt>Return self&value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__bool__"><strong>__bool__</strong></a>(self, /)</dt><dd><tt>True if self else False</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__call__"><strong>__call__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Call self as a function.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__contains__"><strong>__contains__</strong></a>(self, key, /)</dt><dd><tt>Return key in self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__delattr__"><strong>__delattr__</strong></a>(self, name, /)</dt><dd><tt>Implement delattr(self, name).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__delitem__"><strong>__delitem__</strong></a>(self, key, /)</dt><dd><tt>Delete self[key].</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__divmod__"><strong>__divmod__</strong></a>(self, value, /)</dt><dd><tt>Return divmod(self, value).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__eq__"><strong>__eq__</strong></a>(self, value, /)</dt><dd><tt>Return self==value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__float__"><strong>__float__</strong></a>(self, /)</dt><dd><tt>float(self)</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__floordiv__"><strong>__floordiv__</strong></a>(self, value, /)</dt><dd><tt>Return self//value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ge__"><strong>__ge__</strong></a>(self, value, /)</dt><dd><tt>Return self>=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__getattribute__"><strong>__getattribute__</strong></a>(self, name, /)</dt><dd><tt>Return getattr(self, name).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__getitem__"><strong>__getitem__</strong></a>(self, key, /)</dt><dd><tt>Return self[key].</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__gt__"><strong>__gt__</strong></a>(self, value, /)</dt><dd><tt>Return self>value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__iadd__"><strong>__iadd__</strong></a>(self, value, /)</dt><dd><tt>Return self+=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__iand__"><strong>__iand__</strong></a>(self, value, /)</dt><dd><tt>Return self&=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ifloordiv__"><strong>__ifloordiv__</strong></a>(self, value, /)</dt><dd><tt>Return self//=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ilshift__"><strong>__ilshift__</strong></a>(self, value, /)</dt><dd><tt>Return self<<=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__imatmul__"><strong>__imatmul__</strong></a>(self, value, /)</dt><dd><tt>Return self@=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__imod__"><strong>__imod__</strong></a>(self, value, /)</dt><dd><tt>Return self%=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__imul__"><strong>__imul__</strong></a>(self, value, /)</dt><dd><tt>Return self*=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__index__"><strong>__index__</strong></a>(self, /)</dt><dd><tt>Return self converted to an integer, if self is suitable for use as an index into a list.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__int__"><strong>__int__</strong></a>(self, /)</dt><dd><tt>int(self)</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__invert__"><strong>__invert__</strong></a>(self, /)</dt><dd><tt>~self</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ior__"><strong>__ior__</strong></a>(self, value, /)</dt><dd><tt>Return self|=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ipow__"><strong>__ipow__</strong></a>(self, value, /)</dt><dd><tt>Return self**=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__irshift__"><strong>__irshift__</strong></a>(self, value, /)</dt><dd><tt>Return self>>=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__isub__"><strong>__isub__</strong></a>(self, value, /)</dt><dd><tt>Return self-=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__iter__"><strong>__iter__</strong></a>(self, /)</dt><dd><tt>Implement iter(self).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__itruediv__"><strong>__itruediv__</strong></a>(self, value, /)</dt><dd><tt>Return self/=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ixor__"><strong>__ixor__</strong></a>(self, value, /)</dt><dd><tt>Return self^=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__le__"><strong>__le__</strong></a>(self, value, /)</dt><dd><tt>Return self<=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__len__"><strong>__len__</strong></a>(self, /)</dt><dd><tt>Return len(self).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__lshift__"><strong>__lshift__</strong></a>(self, value, /)</dt><dd><tt>Return self<<value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__lt__"><strong>__lt__</strong></a>(self, value, /)</dt><dd><tt>Return self<value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__matmul__"><strong>__matmul__</strong></a>(self, value, /)</dt><dd><tt>Return self@value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__mod__"><strong>__mod__</strong></a>(self, value, /)</dt><dd><tt>Return self%value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__mul__"><strong>__mul__</strong></a>(self, value, /)</dt><dd><tt>Return self*value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ne__"><strong>__ne__</strong></a>(self, value, /)</dt><dd><tt>Return self!=value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__neg__"><strong>__neg__</strong></a>(self, /)</dt><dd><tt>-self</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__next__"><strong>__next__</strong></a>(self, /)</dt><dd><tt>Implement next(self).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__or__"><strong>__or__</strong></a>(self, value, /)</dt><dd><tt>Return self|value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__pos__"><strong>__pos__</strong></a>(self, /)</dt><dd><tt>+self</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__pow__"><strong>__pow__</strong></a>(self, value, mod=None, /)</dt><dd><tt>Return pow(self, value, mod).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__radd__"><strong>__radd__</strong></a>(self, value, /)</dt><dd><tt>Return value+self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rand__"><strong>__rand__</strong></a>(self, value, /)</dt><dd><tt>Return value&self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rdivmod__"><strong>__rdivmod__</strong></a>(self, value, /)</dt><dd><tt>Return divmod(value, self).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rfloordiv__"><strong>__rfloordiv__</strong></a>(self, value, /)</dt><dd><tt>Return value//self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rlshift__"><strong>__rlshift__</strong></a>(self, value, /)</dt><dd><tt>Return value<<self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rmatmul__"><strong>__rmatmul__</strong></a>(self, value, /)</dt><dd><tt>Return value@self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rmod__"><strong>__rmod__</strong></a>(self, value, /)</dt><dd><tt>Return value%self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rmul__"><strong>__rmul__</strong></a>(self, value, /)</dt><dd><tt>Return value*self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__ror__"><strong>__ror__</strong></a>(self, value, /)</dt><dd><tt>Return value|self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rpow__"><strong>__rpow__</strong></a>(self, value, mod=None, /)</dt><dd><tt>Return pow(value, self, mod).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rrshift__"><strong>__rrshift__</strong></a>(self, value, /)</dt><dd><tt>Return value>>self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rshift__"><strong>__rshift__</strong></a>(self, value, /)</dt><dd><tt>Return self>>value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rsub__"><strong>__rsub__</strong></a>(self, value, /)</dt><dd><tt>Return value-self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rtruediv__"><strong>__rtruediv__</strong></a>(self, value, /)</dt><dd><tt>Return value/self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__rxor__"><strong>__rxor__</strong></a>(self, value, /)</dt><dd><tt>Return value^self.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__setattr__"><strong>__setattr__</strong></a>(self, name, value, /)</dt><dd><tt>Implement setattr(self, name, value).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__setitem__"><strong>__setitem__</strong></a>(self, key, value, /)</dt><dd><tt>Set self[key] to value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__str__"><strong>__str__</strong></a>(self, /)</dt><dd><tt>Return str(self).</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__sub__"><strong>__sub__</strong></a>(self, value, /)</dt><dd><tt>Return self-value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__truediv__"><strong>__truediv__</strong></a>(self, value, /)</dt><dd><tt>Return self/value.</tt></dd></dl>
<dl><dt><a name="CallableProxyType-__xor__"><strong>__xor__</strong></a>(self, value, /)</dt><dd><tt>Return self^value.</tt></dd></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="KeyedRef">class <strong>KeyedRef</strong></a>(<a href="weakref.html#ReferenceType">ReferenceType</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#KeyedRef">KeyedRef</a>(ob, callback, key)<br>
<br>
Specialized reference that includes a key corresponding to the value.<br>
<br>
This is used in the <a href="#WeakValueDictionary">WeakValueDictionary</a> to avoid having to create<br>
a function <a href="builtins.html#object">object</a> for each key stored in the mapping. A shared<br>
callback <a href="builtins.html#object">object</a> can use the 'key' attribute of a <a href="#KeyedRef">KeyedRef</a> instead<br>
of getting a reference to the key from an enclosing scope.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="weakref.html#KeyedRef">KeyedRef</a></dd>
<dd><a href="weakref.html#ReferenceType">ReferenceType</a></dd>
<dd><a href="builtins.html#object">object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="KeyedRef-__init__"><strong>__init__</strong></a>(self, ob, callback, key)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="KeyedRef-__new__"><strong>__new__</strong></a>(type, ob, callback, key)</dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>key</strong></dt>
</dl>
<hr>
Methods inherited from <a href="weakref.html#ReferenceType">ReferenceType</a>:<br>
<dl><dt><a name="KeyedRef-__call__"><strong>__call__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Call self as a function.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__eq__"><strong>__eq__</strong></a>(self, value, /)</dt><dd><tt>Return self==value.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__ge__"><strong>__ge__</strong></a>(self, value, /)</dt><dd><tt>Return self>=value.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__gt__"><strong>__gt__</strong></a>(self, value, /)</dt><dd><tt>Return self>value.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__hash__"><strong>__hash__</strong></a>(self, /)</dt><dd><tt>Return hash(self).</tt></dd></dl>
<dl><dt><a name="KeyedRef-__le__"><strong>__le__</strong></a>(self, value, /)</dt><dd><tt>Return self<=value.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__lt__"><strong>__lt__</strong></a>(self, value, /)</dt><dd><tt>Return self<value.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__ne__"><strong>__ne__</strong></a>(self, value, /)</dt><dd><tt>Return self!=value.</tt></dd></dl>
<dl><dt><a name="KeyedRef-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<hr>
Class methods inherited from <a href="weakref.html#ReferenceType">ReferenceType</a>:<br>
<dl><dt><a name="KeyedRef-__class_getitem__"><strong>__class_getitem__</strong></a>(...)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">type</a></font></font></dt><dd><tt>See <a href="https://www.python.org/dev/peps/pep-0585/">PEP 585</a></tt></dd></dl>
<hr>
Data descriptors inherited from <a href="weakref.html#ReferenceType">ReferenceType</a>:<br>
<dl><dt><strong>__callback__</strong></dt>
</dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="ProxyType">class <strong>ProxyType</strong></a>(<a href="builtins.html#object">object</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="ProxyType-__abs__"><strong>__abs__</strong></a>(self, /)</dt><dd><tt>abs(self)</tt></dd></dl>
<dl><dt><a name="ProxyType-__add__"><strong>__add__</strong></a>(self, value, /)</dt><dd><tt>Return self+value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__and__"><strong>__and__</strong></a>(self, value, /)</dt><dd><tt>Return self&value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__bool__"><strong>__bool__</strong></a>(self, /)</dt><dd><tt>True if self else False</tt></dd></dl>
<dl><dt><a name="ProxyType-__bytes__"><strong>__bytes__</strong></a>(...)</dt></dl>
<dl><dt><a name="ProxyType-__contains__"><strong>__contains__</strong></a>(self, key, /)</dt><dd><tt>Return key in self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__delattr__"><strong>__delattr__</strong></a>(self, name, /)</dt><dd><tt>Implement delattr(self, name).</tt></dd></dl>
<dl><dt><a name="ProxyType-__delitem__"><strong>__delitem__</strong></a>(self, key, /)</dt><dd><tt>Delete self[key].</tt></dd></dl>
<dl><dt><a name="ProxyType-__divmod__"><strong>__divmod__</strong></a>(self, value, /)</dt><dd><tt>Return divmod(self, value).</tt></dd></dl>
<dl><dt><a name="ProxyType-__eq__"><strong>__eq__</strong></a>(self, value, /)</dt><dd><tt>Return self==value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__float__"><strong>__float__</strong></a>(self, /)</dt><dd><tt>float(self)</tt></dd></dl>
<dl><dt><a name="ProxyType-__floordiv__"><strong>__floordiv__</strong></a>(self, value, /)</dt><dd><tt>Return self//value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ge__"><strong>__ge__</strong></a>(self, value, /)</dt><dd><tt>Return self>=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__getattribute__"><strong>__getattribute__</strong></a>(self, name, /)</dt><dd><tt>Return getattr(self, name).</tt></dd></dl>
<dl><dt><a name="ProxyType-__getitem__"><strong>__getitem__</strong></a>(self, key, /)</dt><dd><tt>Return self[key].</tt></dd></dl>
<dl><dt><a name="ProxyType-__gt__"><strong>__gt__</strong></a>(self, value, /)</dt><dd><tt>Return self>value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__iadd__"><strong>__iadd__</strong></a>(self, value, /)</dt><dd><tt>Return self+=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__iand__"><strong>__iand__</strong></a>(self, value, /)</dt><dd><tt>Return self&=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ifloordiv__"><strong>__ifloordiv__</strong></a>(self, value, /)</dt><dd><tt>Return self//=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ilshift__"><strong>__ilshift__</strong></a>(self, value, /)</dt><dd><tt>Return self<<=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__imatmul__"><strong>__imatmul__</strong></a>(self, value, /)</dt><dd><tt>Return self@=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__imod__"><strong>__imod__</strong></a>(self, value, /)</dt><dd><tt>Return self%=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__imul__"><strong>__imul__</strong></a>(self, value, /)</dt><dd><tt>Return self*=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__index__"><strong>__index__</strong></a>(self, /)</dt><dd><tt>Return self converted to an integer, if self is suitable for use as an index into a list.</tt></dd></dl>
<dl><dt><a name="ProxyType-__int__"><strong>__int__</strong></a>(self, /)</dt><dd><tt>int(self)</tt></dd></dl>
<dl><dt><a name="ProxyType-__invert__"><strong>__invert__</strong></a>(self, /)</dt><dd><tt>~self</tt></dd></dl>
<dl><dt><a name="ProxyType-__ior__"><strong>__ior__</strong></a>(self, value, /)</dt><dd><tt>Return self|=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ipow__"><strong>__ipow__</strong></a>(self, value, /)</dt><dd><tt>Return self**=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__irshift__"><strong>__irshift__</strong></a>(self, value, /)</dt><dd><tt>Return self>>=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__isub__"><strong>__isub__</strong></a>(self, value, /)</dt><dd><tt>Return self-=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__iter__"><strong>__iter__</strong></a>(self, /)</dt><dd><tt>Implement iter(self).</tt></dd></dl>
<dl><dt><a name="ProxyType-__itruediv__"><strong>__itruediv__</strong></a>(self, value, /)</dt><dd><tt>Return self/=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ixor__"><strong>__ixor__</strong></a>(self, value, /)</dt><dd><tt>Return self^=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__le__"><strong>__le__</strong></a>(self, value, /)</dt><dd><tt>Return self<=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__len__"><strong>__len__</strong></a>(self, /)</dt><dd><tt>Return len(self).</tt></dd></dl>
<dl><dt><a name="ProxyType-__lshift__"><strong>__lshift__</strong></a>(self, value, /)</dt><dd><tt>Return self<<value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__lt__"><strong>__lt__</strong></a>(self, value, /)</dt><dd><tt>Return self<value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__matmul__"><strong>__matmul__</strong></a>(self, value, /)</dt><dd><tt>Return self@value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__mod__"><strong>__mod__</strong></a>(self, value, /)</dt><dd><tt>Return self%value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__mul__"><strong>__mul__</strong></a>(self, value, /)</dt><dd><tt>Return self*value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ne__"><strong>__ne__</strong></a>(self, value, /)</dt><dd><tt>Return self!=value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__neg__"><strong>__neg__</strong></a>(self, /)</dt><dd><tt>-self</tt></dd></dl>
<dl><dt><a name="ProxyType-__next__"><strong>__next__</strong></a>(self, /)</dt><dd><tt>Implement next(self).</tt></dd></dl>
<dl><dt><a name="ProxyType-__or__"><strong>__or__</strong></a>(self, value, /)</dt><dd><tt>Return self|value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__pos__"><strong>__pos__</strong></a>(self, /)</dt><dd><tt>+self</tt></dd></dl>
<dl><dt><a name="ProxyType-__pow__"><strong>__pow__</strong></a>(self, value, mod=None, /)</dt><dd><tt>Return pow(self, value, mod).</tt></dd></dl>
<dl><dt><a name="ProxyType-__radd__"><strong>__radd__</strong></a>(self, value, /)</dt><dd><tt>Return value+self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rand__"><strong>__rand__</strong></a>(self, value, /)</dt><dd><tt>Return value&self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rdivmod__"><strong>__rdivmod__</strong></a>(self, value, /)</dt><dd><tt>Return divmod(value, self).</tt></dd></dl>
<dl><dt><a name="ProxyType-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="ProxyType-__reversed__"><strong>__reversed__</strong></a>(...)</dt></dl>
<dl><dt><a name="ProxyType-__rfloordiv__"><strong>__rfloordiv__</strong></a>(self, value, /)</dt><dd><tt>Return value//self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rlshift__"><strong>__rlshift__</strong></a>(self, value, /)</dt><dd><tt>Return value<<self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rmatmul__"><strong>__rmatmul__</strong></a>(self, value, /)</dt><dd><tt>Return value@self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rmod__"><strong>__rmod__</strong></a>(self, value, /)</dt><dd><tt>Return value%self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rmul__"><strong>__rmul__</strong></a>(self, value, /)</dt><dd><tt>Return value*self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__ror__"><strong>__ror__</strong></a>(self, value, /)</dt><dd><tt>Return value|self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rpow__"><strong>__rpow__</strong></a>(self, value, mod=None, /)</dt><dd><tt>Return pow(value, self, mod).</tt></dd></dl>
<dl><dt><a name="ProxyType-__rrshift__"><strong>__rrshift__</strong></a>(self, value, /)</dt><dd><tt>Return value>>self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rshift__"><strong>__rshift__</strong></a>(self, value, /)</dt><dd><tt>Return self>>value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rsub__"><strong>__rsub__</strong></a>(self, value, /)</dt><dd><tt>Return value-self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rtruediv__"><strong>__rtruediv__</strong></a>(self, value, /)</dt><dd><tt>Return value/self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__rxor__"><strong>__rxor__</strong></a>(self, value, /)</dt><dd><tt>Return value^self.</tt></dd></dl>
<dl><dt><a name="ProxyType-__setattr__"><strong>__setattr__</strong></a>(self, name, value, /)</dt><dd><tt>Implement setattr(self, name, value).</tt></dd></dl>
<dl><dt><a name="ProxyType-__setitem__"><strong>__setitem__</strong></a>(self, key, value, /)</dt><dd><tt>Set self[key] to value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__str__"><strong>__str__</strong></a>(self, /)</dt><dd><tt>Return str(self).</tt></dd></dl>
<dl><dt><a name="ProxyType-__sub__"><strong>__sub__</strong></a>(self, value, /)</dt><dd><tt>Return self-value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__truediv__"><strong>__truediv__</strong></a>(self, value, /)</dt><dd><tt>Return self/value.</tt></dd></dl>
<dl><dt><a name="ProxyType-__xor__"><strong>__xor__</strong></a>(self, value, /)</dt><dd><tt>Return self^value.</tt></dd></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="ReferenceType">class <strong>ReferenceType</strong></a>(<a href="builtins.html#object">object</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="ReferenceType-__call__"><strong>__call__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Call self as a function.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__eq__"><strong>__eq__</strong></a>(self, value, /)</dt><dd><tt>Return self==value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__ge__"><strong>__ge__</strong></a>(self, value, /)</dt><dd><tt>Return self>=value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__gt__"><strong>__gt__</strong></a>(self, value, /)</dt><dd><tt>Return self>value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__hash__"><strong>__hash__</strong></a>(self, /)</dt><dd><tt>Return hash(self).</tt></dd></dl>
<dl><dt><a name="ReferenceType-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__le__"><strong>__le__</strong></a>(self, value, /)</dt><dd><tt>Return self<=value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__lt__"><strong>__lt__</strong></a>(self, value, /)</dt><dd><tt>Return self<value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__ne__"><strong>__ne__</strong></a>(self, value, /)</dt><dd><tt>Return self!=value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<hr>
Class methods defined here:<br>
<dl><dt><a name="ReferenceType-__class_getitem__"><strong>__class_getitem__</strong></a>(...)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">type</a></font></font></dt><dd><tt>See <a href="https://www.python.org/dev/peps/pep-0585/">PEP 585</a></tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="ReferenceType-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__callback__</strong></dt>
</dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="WeakKeyDictionary">class <strong>WeakKeyDictionary</strong></a>(<a href="collections.abc.html#MutableMapping">MutableMapping</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#WeakKeyDictionary">WeakKeyDictionary</a>(dict=None)<br>
<br>
Mapping class that references keys weakly.<br>
<br>
Entries in the dictionary will be discarded when there is no<br>
longer a strong reference to the key. This can be used to<br>
associate additional data with an <a href="builtins.html#object">object</a> owned by other parts of<br>
an application without adding attributes to those objects. This<br>
can be especially useful with objects that override attribute<br>
accesses.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="weakref.html#WeakKeyDictionary">WeakKeyDictionary</a></dd>
<dd><a href="collections.abc.html#MutableMapping">MutableMapping</a></dd>
<dd><a href="collections.abc.html#Mapping">Mapping</a></dd>
<dd><a href="collections.abc.html#Collection">Collection</a></dd>
<dd><a href="collections.abc.html#Sized">Sized</a></dd>
<dd><a href="collections.abc.html#Iterable">Iterable</a></dd>
<dd><a href="collections.abc.html#Container">Container</a></dd>
<dd><a href="builtins.html#object">object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="WeakKeyDictionary-__contains__"><strong>__contains__</strong></a>(self, key)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__copy__"><strong>__copy__</strong></a> = <a href="#WeakKeyDictionary-copy">copy</a>(self)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__deepcopy__"><strong>__deepcopy__</strong></a>(self, memo)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__delitem__"><strong>__delitem__</strong></a>(self, key)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__init__"><strong>__init__</strong></a>(self, dict=None)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-__ior__"><strong>__ior__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__iter__"><strong>__iter__</strong></a> = <a href="#WeakKeyDictionary-keys">keys</a>(self)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__len__"><strong>__len__</strong></a>(self)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-__or__"><strong>__or__</strong></a>(self, other)</dt><dd><tt>Return self|value.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-__ror__"><strong>__ror__</strong></a>(self, other)</dt><dd><tt>Return value|self.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-copy"><strong>copy</strong></a>(self)</dt></dl>
<dl><dt><a name="WeakKeyDictionary-get"><strong>get</strong></a>(self, key, default=None)</dt><dd><tt>D.<a href="#WeakKeyDictionary-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-items"><strong>items</strong></a>(self)</dt><dd><tt>D.<a href="#WeakKeyDictionary-items">items</a>() -> a set-like <a href="builtins.html#object">object</a> providing a view on D's items</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-keyrefs"><strong>keyrefs</strong></a>(self)</dt><dd><tt>Return a list of weak references to the keys.<br>
<br>
The references are not guaranteed to be 'live' at the time<br>
they are used, so the result of calling the references needs<br>
to be checked before being used. This can be used to avoid<br>
creating references that will cause the garbage collector to<br>
keep the keys around longer than needed.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-keys"><strong>keys</strong></a>(self)</dt><dd><tt>D.<a href="#WeakKeyDictionary-keys">keys</a>() -> a set-like <a href="builtins.html#object">object</a> providing a view on D's keys</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-pop"><strong>pop</strong></a>(self, key, *args)</dt><dd><tt>D.<a href="#WeakKeyDictionary-pop">pop</a>(k[,d]) -> v, remove specified key and return the corresponding value.<br>
If key is not found, d is returned if given, otherwise KeyError is raised.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-popitem"><strong>popitem</strong></a>(self)</dt><dd><tt>D.<a href="#WeakKeyDictionary-popitem">popitem</a>() -> (k, v), remove and return some (key, value) pair<br>
as a 2-tuple; but raise KeyError if D is empty.</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-setdefault"><strong>setdefault</strong></a>(self, key, default=None)</dt><dd><tt>D.<a href="#WeakKeyDictionary-setdefault">setdefault</a>(k[,d]) -> D.<a href="#WeakKeyDictionary-get">get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-update"><strong>update</strong></a>(self, dict=None, /, **kwargs)</dt><dd><tt>D.<a href="#WeakKeyDictionary-update">update</a>([E, ]**F) -> None. Update D from mapping/iterable E and F.<br>
If E present and has a .<a href="#WeakKeyDictionary-keys">keys</a>() method, does: for k in E: D[k] = E[k]<br>
If E present and lacks .<a href="#WeakKeyDictionary-keys">keys</a>() method, does: for (k, v) in E: D[k] = v<br>
In either case, this is followed by: for k, v in F.<a href="#WeakKeyDictionary-items">items</a>(): D[k] = v</tt></dd></dl>
<dl><dt><a name="WeakKeyDictionary-values"><strong>values</strong></a>(self)</dt><dd><tt>D.<a href="#WeakKeyDictionary-values">values</a>() -> an <a href="builtins.html#object">object</a> providing a view on D's values</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__abstractmethods__</strong> = frozenset()</dl>
<hr>
Methods inherited from <a href="collections.abc.html#MutableMapping">MutableMapping</a>:<br>
<dl><dt><a name="WeakKeyDictionary-clear"><strong>clear</strong></a>(self)</dt><dd><tt>D.<a href="#WeakKeyDictionary-clear">clear</a>() -> None. Remove all items from D.</tt></dd></dl>
<hr>
Methods inherited from <a href="collections.abc.html#Mapping">Mapping</a>:<br>
<dl><dt><a name="WeakKeyDictionary-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return self==value.</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="collections.abc.html#Mapping">Mapping</a>:<br>
<dl><dt><strong>__hash__</strong> = None</dl>
<dl><dt><strong>__reversed__</strong> = None</dl>
<hr>
Class methods inherited from <a href="collections.abc.html#Collection">Collection</a>:<br>
<dl><dt><a name="WeakKeyDictionary-__subclasshook__"><strong>__subclasshook__</strong></a>(C)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">ABCMeta</a></font></font></dt><dd><tt>Abstract classes can override this to customize issubclass().<br>
<br>
This is invoked early on by abc.ABCMeta.__subclasscheck__().<br>
It should return True, False or NotImplemented. If it returns<br>
NotImplemented, the normal algorithm is used. Otherwise, it<br>
overrides the normal algorithm (and the outcome is cached).</tt></dd></dl>
<hr>
Class methods inherited from <a href="collections.abc.html#Iterable">Iterable</a>:<br>
<dl><dt><a name="WeakKeyDictionary-__class_getitem__"><strong>__class_getitem__</strong></a> = GenericAlias(...)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">ABCMeta</a></font></font></dt><dd><tt>Represent a <a href="https://www.python.org/dev/peps/pep-0585/">PEP 585</a> generic type<br>
<br>
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="WeakMethod">class <strong>WeakMethod</strong></a>(<a href="weakref.html#ReferenceType">ReferenceType</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#WeakMethod">WeakMethod</a>(meth, callback=None)<br>
<br>
A custom `weakref.<a href="#ref">ref</a>` subclass which simulates a weak reference to<br>
a bound method, working around the lifetime problem of bound methods.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="weakref.html#WeakMethod">WeakMethod</a></dd>
<dd><a href="weakref.html#ReferenceType">ReferenceType</a></dd>
<dd><a href="builtins.html#object">object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="WeakMethod-__call__"><strong>__call__</strong></a>(self)</dt><dd><tt>Call self as a function.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return self==value.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__hash__"><strong>__hash__</strong></a>(self, /)</dt><dd><tt>Return hash(self).</tt></dd></dl>
<dl><dt><a name="WeakMethod-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return self!=value.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="WeakMethod-__new__"><strong>__new__</strong></a>(cls, meth, callback=None)</dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="weakref.html#ReferenceType">ReferenceType</a>:<br>
<dl><dt><a name="WeakMethod-__ge__"><strong>__ge__</strong></a>(self, value, /)</dt><dd><tt>Return self>=value.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__gt__"><strong>__gt__</strong></a>(self, value, /)</dt><dd><tt>Return self>value.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__le__"><strong>__le__</strong></a>(self, value, /)</dt><dd><tt>Return self<=value.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__lt__"><strong>__lt__</strong></a>(self, value, /)</dt><dd><tt>Return self<value.</tt></dd></dl>
<dl><dt><a name="WeakMethod-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<hr>
Class methods inherited from <a href="weakref.html#ReferenceType">ReferenceType</a>:<br>
<dl><dt><a name="WeakMethod-__class_getitem__"><strong>__class_getitem__</strong></a>(...)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">type</a></font></font></dt><dd><tt>See <a href="https://www.python.org/dev/peps/pep-0585/">PEP 585</a></tt></dd></dl>
<hr>
Data descriptors inherited from <a href="weakref.html#ReferenceType">ReferenceType</a>:<br>
<dl><dt><strong>__callback__</strong></dt>
</dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="WeakValueDictionary">class <strong>WeakValueDictionary</strong></a>(<a href="collections.abc.html#MutableMapping">MutableMapping</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#WeakValueDictionary">WeakValueDictionary</a>(other=(), /, **kw)<br>
<br>
Mapping class that references values weakly.<br>
<br>
Entries in the dictionary will be discarded when no strong<br>
reference to the value exists anymore<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="weakref.html#WeakValueDictionary">WeakValueDictionary</a></dd>
<dd><a href="collections.abc.html#MutableMapping">MutableMapping</a></dd>
<dd><a href="collections.abc.html#Mapping">Mapping</a></dd>
<dd><a href="collections.abc.html#Collection">Collection</a></dd>
<dd><a href="collections.abc.html#Sized">Sized</a></dd>
<dd><a href="collections.abc.html#Iterable">Iterable</a></dd>
<dd><a href="collections.abc.html#Container">Container</a></dd>
<dd><a href="builtins.html#object">object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="WeakValueDictionary-__contains__"><strong>__contains__</strong></a>(self, key)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__copy__"><strong>__copy__</strong></a> = <a href="#WeakValueDictionary-copy">copy</a>(self)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__deepcopy__"><strong>__deepcopy__</strong></a>(self, memo)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__delitem__"><strong>__delitem__</strong></a>(self, key)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__init__"><strong>__init__</strong></a>(self, other=(), /, **kw)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-__ior__"><strong>__ior__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__iter__"><strong>__iter__</strong></a> = <a href="#WeakValueDictionary-keys">keys</a>(self)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__len__"><strong>__len__</strong></a>(self)</dt></dl>
<dl><dt><a name="WeakValueDictionary-__or__"><strong>__or__</strong></a>(self, other)</dt><dd><tt>Return self|value.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-__ror__"><strong>__ror__</strong></a>(self, other)</dt><dd><tt>Return value|self.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt></dl>
<dl><dt><a name="WeakValueDictionary-copy"><strong>copy</strong></a>(self)</dt></dl>
<dl><dt><a name="WeakValueDictionary-get"><strong>get</strong></a>(self, key, default=None)</dt><dd><tt>D.<a href="#WeakValueDictionary-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-items"><strong>items</strong></a>(self)</dt><dd><tt>D.<a href="#WeakValueDictionary-items">items</a>() -> a set-like <a href="builtins.html#object">object</a> providing a view on D's items</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-itervaluerefs"><strong>itervaluerefs</strong></a>(self)</dt><dd><tt>Return an iterator that yields the weak references to the values.<br>
<br>
The references are not guaranteed to be 'live' at the time<br>
they are used, so the result of calling the references needs<br>
to be checked before being used. This can be used to avoid<br>
creating references that will cause the garbage collector to<br>
keep the values around longer than needed.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-keys"><strong>keys</strong></a>(self)</dt><dd><tt>D.<a href="#WeakValueDictionary-keys">keys</a>() -> a set-like <a href="builtins.html#object">object</a> providing a view on D's keys</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-pop"><strong>pop</strong></a>(self, key, *args)</dt><dd><tt>D.<a href="#WeakValueDictionary-pop">pop</a>(k[,d]) -> v, remove specified key and return the corresponding value.<br>
If key is not found, d is returned if given, otherwise KeyError is raised.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-popitem"><strong>popitem</strong></a>(self)</dt><dd><tt>D.<a href="#WeakValueDictionary-popitem">popitem</a>() -> (k, v), remove and return some (key, value) pair<br>
as a 2-tuple; but raise KeyError if D is empty.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-setdefault"><strong>setdefault</strong></a>(self, key, default=None)</dt><dd><tt>D.<a href="#WeakValueDictionary-setdefault">setdefault</a>(k[,d]) -> D.<a href="#WeakValueDictionary-get">get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-update"><strong>update</strong></a>(self, other=None, /, **kwargs)</dt><dd><tt>D.<a href="#WeakValueDictionary-update">update</a>([E, ]**F) -> None. Update D from mapping/iterable E and F.<br>
If E present and has a .<a href="#WeakValueDictionary-keys">keys</a>() method, does: for k in E: D[k] = E[k]<br>
If E present and lacks .<a href="#WeakValueDictionary-keys">keys</a>() method, does: for (k, v) in E: D[k] = v<br>
In either case, this is followed by: for k, v in F.<a href="#WeakValueDictionary-items">items</a>(): D[k] = v</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-valuerefs"><strong>valuerefs</strong></a>(self)</dt><dd><tt>Return a list of weak references to the values.<br>
<br>
The references are not guaranteed to be 'live' at the time<br>
they are used, so the result of calling the references needs<br>
to be checked before being used. This can be used to avoid<br>
creating references that will cause the garbage collector to<br>
keep the values around longer than needed.</tt></dd></dl>
<dl><dt><a name="WeakValueDictionary-values"><strong>values</strong></a>(self)</dt><dd><tt>D.<a href="#WeakValueDictionary-values">values</a>() -> an <a href="builtins.html#object">object</a> providing a view on D's values</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__abstractmethods__</strong> = frozenset()</dl>
<hr>
Methods inherited from <a href="collections.abc.html#MutableMapping">MutableMapping</a>:<br>
<dl><dt><a name="WeakValueDictionary-clear"><strong>clear</strong></a>(self)</dt><dd><tt>D.<a href="#WeakValueDictionary-clear">clear</a>() -> None. Remove all items from D.</tt></dd></dl>
<hr>
Methods inherited from <a href="collections.abc.html#Mapping">Mapping</a>:<br>
<dl><dt><a name="WeakValueDictionary-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return self==value.</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="collections.abc.html#Mapping">Mapping</a>:<br>
<dl><dt><strong>__hash__</strong> = None</dl>
<dl><dt><strong>__reversed__</strong> = None</dl>
<hr>
Class methods inherited from <a href="collections.abc.html#Collection">Collection</a>:<br>
<dl><dt><a name="WeakValueDictionary-__subclasshook__"><strong>__subclasshook__</strong></a>(C)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">ABCMeta</a></font></font></dt><dd><tt>Abstract classes can override this to customize issubclass().<br>
<br>
This is invoked early on by abc.ABCMeta.__subclasscheck__().<br>
It should return True, False or NotImplemented. If it returns<br>
NotImplemented, the normal algorithm is used. Otherwise, it<br>
overrides the normal algorithm (and the outcome is cached).</tt></dd></dl>
<hr>
Class methods inherited from <a href="collections.abc.html#Iterable">Iterable</a>:<br>
<dl><dt><a name="WeakValueDictionary-__class_getitem__"><strong>__class_getitem__</strong></a> = GenericAlias(...)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">ABCMeta</a></font></font></dt><dd><tt>Represent a <a href="https://www.python.org/dev/peps/pep-0585/">PEP 585</a> generic type<br>
<br>
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="finalize">class <strong>finalize</strong></a>(<a href="builtins.html#object">object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#finalize">finalize</a>(obj, func, /, *args, **kwargs)<br>
<br>
Class for finalization of weakrefable objects<br>
<br>
<a href="#finalize">finalize</a>(obj, func, *args, **kwargs) returns a callable finalizer<br>
<a href="builtins.html#object">object</a> which will be called when obj is garbage collected. The<br>
first time the finalizer is called it evaluates func(*arg, **kwargs)<br>
and returns the result. After this the finalizer is dead, and<br>
calling it just returns None.<br>
<br>
When the program exits any remaining finalizers for which the<br>
atexit attribute is true will be run in reverse order of creation.<br>
By default atexit is true.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="finalize-__call__"><strong>__call__</strong></a>(self, _=None)</dt><dd><tt>If alive then mark as dead and return func(*args, **kwargs);<br>
otherwise return None</tt></dd></dl>
<dl><dt><a name="finalize-__init__"><strong>__init__</strong></a>(self, obj, func, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="finalize-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="finalize-detach"><strong>detach</strong></a>(self)</dt><dd><tt>If alive then mark as dead and return (obj, func, args, kwargs);<br>
otherwise return None</tt></dd></dl>
<dl><dt><a name="finalize-peek"><strong>peek</strong></a>(self)</dt><dd><tt>If alive then return (obj, func, args, kwargs);<br>
otherwise return None</tt></dd></dl>
<hr>
Readonly properties defined here:<br>
<dl><dt><strong>alive</strong></dt>
<dd><tt>Whether finalizer is alive</tt></dd>
</dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>atexit</strong></dt>
<dd><tt>Whether finalizer should be called at exit</tt></dd>
</dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><strong>ref</strong> = <a name="ref">class ReferenceType</a>(<a href="builtins.html#object">object</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="ReferenceType-__call__"><strong>__call__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Call self as a function.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__eq__"><strong>__eq__</strong></a>(self, value, /)</dt><dd><tt>Return self==value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__ge__"><strong>__ge__</strong></a>(self, value, /)</dt><dd><tt>Return self>=value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__gt__"><strong>__gt__</strong></a>(self, value, /)</dt><dd><tt>Return self>value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__hash__"><strong>__hash__</strong></a>(self, /)</dt><dd><tt>Return hash(self).</tt></dd></dl>
<dl><dt><a name="ReferenceType-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__le__"><strong>__le__</strong></a>(self, value, /)</dt><dd><tt>Return self<=value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__lt__"><strong>__lt__</strong></a>(self, value, /)</dt><dd><tt>Return self<value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__ne__"><strong>__ne__</strong></a>(self, value, /)</dt><dd><tt>Return self!=value.</tt></dd></dl>
<dl><dt><a name="ReferenceType-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<hr>
Class methods defined here:<br>
<dl><dt><a name="ReferenceType-__class_getitem__"><strong>__class_getitem__</strong></a>(...)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">type</a></font></font></dt><dd><tt>See <a href="https://www.python.org/dev/peps/pep-0585/">PEP 585</a></tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="ReferenceType-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__callback__</strong></dt>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-_remove_dead_weakref"><strong>_remove_dead_weakref</strong></a>(dct, key, /)</dt><dd><tt>Atomically remove key from dict if it points to a dead weakref.</tt></dd></dl>
<dl><dt><a name="-getweakrefcount"><strong>getweakrefcount</strong></a>(object, /)</dt><dd><tt>Return the number of weak references to '<a href="builtins.html#object">object</a>'.</tt></dd></dl>
<dl><dt><a name="-getweakrefs"><strong>getweakrefs</strong></a>(...)</dt><dd><tt><a href="#-getweakrefs">getweakrefs</a>(<a href="builtins.html#object">object</a>) -- return a list of all weak reference objects<br>
that point to '<a href="builtins.html#object">object</a>'.</tt></dd></dl>
<dl><dt><a name="-proxy"><strong>proxy</strong></a>(...)</dt><dd><tt><a href="#-proxy">proxy</a>(<a href="builtins.html#object">object</a>[, callback]) -- create a proxy <a href="builtins.html#object">object</a> that weakly<br>
references '<a href="builtins.html#object">object</a>'. 'callback', if given, is called with a<br>
reference to the proxy when '<a href="builtins.html#object">object</a>' is about to be finalized.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>ProxyTypes</strong> = (<class 'weakref.ProxyType'>, <class 'weakref.CallableProxyType'>)<br>
<strong>__all__</strong> = ['ref', 'proxy', 'getweakrefcount', 'getweakrefs', 'WeakKeyDictionary', 'ReferenceType', 'ProxyType', 'CallableProxyType', 'ProxyTypes', 'WeakValueDictionary', 'WeakSet', 'WeakMethod', 'finalize']<br>
<strong>__cached__</strong> = '/usr/lib/python3.10/__pycache__/weakref.cpython-310.pyc'<br>
<strong>__file__</strong> = '/usr/lib/python3.10/weakref.py'<br>
<strong>__loader__</strong> = <_frozen_importlib_external.SourceFileLoader object><br>
<strong>__name__</strong> = 'weakref'<br>
<strong>__spec__</strong> = ModuleSpec(name='weakref', loader=<_frozen_impor...a55a80>, origin='/usr/lib/python3.10/weakref.py')</td></tr></table>
</body></html>
|