Re: Serializing a user-defined class

2010-11-03 Thread T.J. Simmons
rt > wrote: > >> >> On Wed, Nov 3, 2010 at 8:30 AM, T.J. Simmons < > theimmortal...@gmail.com> > >> >> wrote: > >> >> > Hi all, got a question regarding serializing classes that I've > >> >> > defined. > >&g

Serializing a user-defined class

2010-11-03 Thread T.J. Simmons
Hi all, got a question regarding serializing classes that I've defined. I have some classes like class Foo: def __init__(self, x, y): self.x = x, self.y = y then a class that can contain multiple Foos, such as: class Bar: def __init__(self): self.foos = [Foo(a, b),