|
Monero
|


Classes | |
| class | _Info |
Public Member Functions | |
| __init__ (self, obj, func, *args, **kwargs) | |
| __call__ (self, _=None) | |
| detach (self) | |
| peek (self) | |
| alive (self) | |
| atexit (self) | |
| atexit (self, value) | |
| __repr__ (self) | |
Protected Member Functions | |
| _select_for_exit (cls) | |
| _exitfunc (cls) | |
Protected Attributes | |
| _exitfunc | |
Static Protected Attributes | |
| dict | _registry = {} |
| bool | _shutdown = False |
| _index_iter = itertools.count() | |
| bool | _dirty = False |
| bool | _registered_with_atexit = False |
Static Private Attributes | |
| tuple | __slots__ = () |
Class for finalization of weakrefable objects finalize(obj, func, *args, **kwargs) returns a callable finalizer object which will be called when obj is garbage collected. The first time the finalizer is called it evaluates func(*arg, **kwargs) and returns the result. After this the finalizer is dead, and calling it just returns None. When the program exits any remaining finalizers for which the atexit attribute is true will be run in reverse order of creation. By default atexit is true.
| py2backports.weakref.finalize.__init__ | ( | self, | |
| obj, | |||
| func, | |||
| * | args, | ||
| ** | kwargs ) |
| py2backports.weakref.finalize.__call__ | ( | self, | |
| _ = None ) |
If alive then mark as dead and return func(*args, **kwargs); otherwise return None
| py2backports.weakref.finalize.__repr__ | ( | self | ) |
|
protected |
|
protected |
| py2backports.weakref.finalize.alive | ( | self | ) |
Whether finalizer is alive
| py2backports.weakref.finalize.atexit | ( | self | ) |
Whether finalizer should be called at exit
| py2backports.weakref.finalize.atexit | ( | self, | |
| value ) |
| py2backports.weakref.finalize.detach | ( | self | ) |
If alive then mark as dead and return (obj, func, args, kwargs); otherwise return None
| py2backports.weakref.finalize.peek | ( | self | ) |
If alive then return (obj, func, args, kwargs); otherwise return None
|
staticprivate |
|
staticprotected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |