From a8866232e1f23ead99ee1fb8cfaff770f423499d Mon Sep 17 00:00:00 2001
From: Andreas Freise <adf@star.bham.ac.uk>
Date: Fri, 10 Apr 2015 23:36:35 +0100
Subject: [PATCH] adding missing function to params.

---
 pykat/param.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pykat/param.py b/pykat/param.py
index e7ac6a3..9670f0c 100644
--- a/pykat/param.py
+++ b/pykat/param.py
@@ -92,6 +92,15 @@ class Param(putable, putter):
         putter.__init__(self, var_name, isPutter)
             
         putable.__init__(self, owner.name, name, isPutable)
+
+    def _updateOwner(self, newOwner):
+        """
+        This updates the internal weak reference to link a parameter to who owns it.
+        Should only be called by the __deepcopy__ component method to ensure things
+        are kept up to date.
+        """
+        del self._owner
+        self._owner = weakref.ref(newOwner)
         
     @property
     def canFsig(self): return self._canFsig
-- 
GitLab