From 297970793e168b37d9896ec7a19d5a6141985266 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 7 Jun 2020 20:34:31 +0800 Subject: [PATCH] bugfix --- appPublic/dictObject.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appPublic/dictObject.py b/appPublic/dictObject.py index 1214aee..81b330b 100755 --- a/appPublic/dictObject.py +++ b/appPublic/dictObject.py @@ -28,6 +28,9 @@ class DictObject: raise Exception('_kwargs not in __dict__') return b.get(name,None) + def __setattr__(self,name,value): + self.__setitem__(name,value) + def __getitem__(self,name): x = self.__dict__.get(name,None) if x is not None: