2012/7/5 Carlos Ferreira <[email protected]> > * File "E:\Users\Claymore\Desktop\SimPy-Sims\Main.py", line 184, in > TransmitMessage > > GlobalShelve["GlobalNetwork"][str(self.agentName)]["NetworkInterfacesStats"][self.interfaceName]["MessagesTraceInput"].append({"arrivalTime":now(), > "messageID":message.messageID, "sizeInBytes":message.__sizeof__()}) > AttributeError: 'Message' object has no attribute '__sizeof__' > * > > Can anyone help me here ?
PyPy does not implement __sizeof__. You have two choices here: remove the call from the code (it's seems to be only for information purpose), or implement the __sizeof__ method in the Message class, by returning some random value. -- Amaury Forgeot d'Arc
_______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
