Re:Re: Can not dump class object created on runtime

2009-06-10 Thread metalzong
Thanks a lot. 在2009-06-11,"Chris Rebert" 写道: On Wed, Jun 10, 2009 at 7:25 AM, Metal Zong wrote: > Hello, > > Can not dump class object created on runtime. > > Is there anybody can help me? Thank. > > Following is testing code: > > import pickle > from ne

Re: Can not dump class object created on runtime

2009-06-10 Thread Chris Rebert
On Wed, Jun 10, 2009 at 7:25 AM, Metal Zong wrote: > Hello, > > Can not dump class object created on runtime. > > Is there anybody can help me? Thank. > > Following is testing code: > > import pickle > from new import classobj > > class A: >     def __str__

Can not dump class object created on runtime

2009-06-10 Thread Metal Zong
Hello, Can not dump class object created on runtime. Is there anybody can help me? Thank. Following is testing code: import pickle from new import classobj class A: def __str__(self): return self.__class__.name if __name__ == "__main__": c = classo