:orphan:

:py:mod:`tlm_adjoint.alias`
===========================

.. py:module:: tlm_adjoint.alias


Module Contents
---------------

.. py:function:: gc_disabled(fn)

   
   Decorator to disable the Python garbage collector.


   :Parameters:

       **fn** : callable
           Callable for which the Python garbage collector should be disabled.

       **Returns:**
           ..

       **callable**
           Callable for which the Python garbage collector is disabled.














   ..
       !! processed by numpydoc !!

.. py:class:: WeakAlias(obj)


   
   An alias to an object. Does *not* hold a reference to the original
   object.

   Intended to be used in combination with :func:`weakref.finalize`, so that
   object attributes may be updated when the original object is destroyed, but
   object methods may still be called after it is destroyed.

   :Parameters:

       **obj** : object
           Object to alias.














   ..
       !! processed by numpydoc !!