コード例 #1
0
 def __getstate__(self):
     # unwrap weakref for pickling
     self._client = common.unwrapWeakref(self._client)
     return SlottedObjectMixin.__getstate__(self)
コード例 #2
0
 def __setstate__(self, state):
     SlottedObjectMixin.__setstate__(self, state)
     self._client = common.wrapWeakref(self._client)
コード例 #3
0
ファイル: volume.py プロジェクト: tisttsf/music21
 def __getstate__(self):
     self._client = common.unwrapWeakref(self._client)
     return SlottedObjectMixin.__getstate__(self)