Skip to content

Lest the whole program be smitten with a curse.

class ParseNode:
    def __init__(self, name):
        self.name = name
        self.parent = None
        self.children = []

    def spirit_of_elijah(self):
        for child in self.children:
            child.parent = self
            child.spirit_of_elijah()

4 Comments

  1. Emily wrote:

    I am confused, usually not hard to do though.

    Thursday, March 10, 2011 at 3:18 pm | Permalink
  2. Joshua wrote:

    Show it to Matt and see if he thinks it is funny.

    Thursday, March 10, 2011 at 11:54 pm | Permalink
  3. Mallory wrote:

    Thumbs down for computer science jokes. It’s not even funny.

    Friday, March 11, 2011 at 12:35 pm | Permalink
  4. Joshua wrote:

    It really made me happy when I wrote it down.

    Wednesday, March 16, 2011 at 6:58 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

 

Better Tag Cloud