태그>pickle(총 3개의 글)
'pickle' 관련 최근글
-
-
- [python] pickling시 "Nonetype object is not callable" 에러 발생.
-
Confusion will be my epitaph by epitaph|2010/09/27 14:36
python 2.6에서 발생. python class 작성시 _getattr_ 을 재정의해 줄 경우 위의 에러가 발생하면서 pickling이 불가능해 질 수 있다. 이때의 해결 방법 예 : 즉. def _getattr_(self, key): try:return self[key]except KeyError:raise AttributeError 해 주면 된다.
- [python] pickling시 "Nonetype object is not callable" 에러 발생.