Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

python classes

Name: Anonymous 2010-01-05 23:50

OK, say I need to create an application that simulates a
family tree.  Each member may have a mom dad and kids.

I need to create a family tree class that contains a
collection of these member class objects and methods for
adding branches, removing members, etc...

I'm mainly having a hard time figuring how to join the
members if that makes sense.

I've got something like...

class member(object):
   
    def __init__(self):
       member.kid = self[0]
       member.dad = self[1]
       etc...


class familyTree(object):

    def __init___(self):
        for m in mlist:
            try:
                m = member(m)

blah blah blah


How to I make the familytree class contain a
collection of member class objects?

Name: OP 2010-01-06 20:48

>>22
Ok, now you've fuqin angered an expert programmer. God
fuckign damn.  First of all, you dont fuqin know what a
man page is.  Secondly, this is /prog/, do not demand
useful answers the way you want them to be.

Thirdly, programming is all about philosophy and
``abstract bullshite'' that you will never comprehend.
And fuqin lastly, fuck off with your bullshyt.  Everything
has already been answered in >>6,12,15

Have you read your fan-mail today?  Didn't think so.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List