Salome HOME
Remove use of mutable as default parameter value
[modules/kernel.git] / src / KERNEL_PY / kernel / diclookup.py
index 140d13ad86e10b63d7148a6cb759ce63748b992f..7c7095a04dfe511124a1273522506e79bf69145e 100644 (file)
@@ -53,8 +53,10 @@ class Lookup(dict):
     a dictionary which can lookup value by key, or keys by value
     """
     ## items can be a list of pair_lists or a dictionary
-    def __init__(self, items=[]):
+    def __init__(self, items=None):
         """items can be a list of pair_lists or a dictionary"""
+       if items is None:
+           items = []
         dict.__init__(self, items)
 
     ## find the key(s) as a list given a value