You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class animal(object):
....
class Turtle(animal)
....
there is only two predifined classes. another classes user will define
pictures of animal are shipped with programm and equal class name or class's father name
For some reason JumpingFrog's __module__ is set to __builtin__. It needs to be set to __main__. I tried setting it manually to __main__ and it worked. So investigate why it's being set to __builtin__.
Activity
darvin commentedon Sep 29, 2010
after #60
darvin commentedon Sep 29, 2010
some troubles with it:
in in-game console:
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
x=Frog()
class JumpingFrog(Frog):
pass
d = JumpingFrog()
send()
in stderr:
Traceback (most recent call last):
File "/usr/lib/python2.6/multiprocessing/queues.py", line 242, in _feed
send(obj)
PicklingError: Can't pickle <class 'JumpingFrog'>: attribute lookup builtin.JumpingFrog failed
any ideas?
cool-RR commentedon Sep 29, 2010
For some reason
JumpingFrog's__module__is set to__builtin__. It needs to be set to__main__. I tried setting it manually to__main__and it worked. So investigate why it's being set to__builtin__.