[Tutor] advice on creating and working with a complex data structure

Serdar Tumgoren zstumgoren at gmail.com
Mon Jul 20 20:03:19 CEST 2009


> Have you considered using classes? This looks like a fairly natural fit for
> race, candidate, committee and maybe report casses

Aha, okay, the multiple classes approach makes sense.  But would these
be nested classes, perhaps inheriting attributes from their parent
classes? E.g.:

class Race

    class Candidate

        class Committee

            class Filing


More information about the Tutor mailing list