Added self.contents in mob.py to be pickled. Typing 'quit' raised this exception:
Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs) File "gilmud.py", line 193, in addClient self.handlePlayer(player) File "gilmud.py", line 252, in handlePlayer player.end() File "/home/justin/gilmud/mob.py", line 458, in end self.save() File "/home/justin/gilmud/mob.py", line 648, in save pickle.dump(self.contents, fout) File "/usr/lib/python2.7/copy_reg.py", line 77, in _reduce_ex raise TypeError("a class that defines __slots without " TypeError: a class that defines slots without defining getstate cannot be pickled
Comment #1
Posted on Jun 20, 2012 by Happy DogRevamp, doesn't need fixing.
Status: WontFix
Labels:
Type-Defect
Priority-High