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