Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize Class Reference
Inheritance diagram for pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Member Function Documentation

◆ __call__()

pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize.__call__ (   self,
  _ = None 
)
If alive then mark as dead and return func(*args, **kwargs);
otherwise return None

◆ alive()

pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize.alive (   self)
Whether finalizer is alive

◆ atexit()

pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize.atexit (   self)
Whether finalizer should be called at exit

◆ detach()

pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize.detach (   self)
If alive then mark as dead and return (obj, func, args, kwargs);
otherwise return None

◆ peek()

pip._vendor.urllib3.packages.backports.weakref_finalize.weakref_finalize.peek (   self)
If alive then return (obj, func, args, kwargs);
otherwise return None

The documentation for this class was generated from the following file: