Friday, October 15, 2010

Of Life and Python

class Life(Soul):
     
           def __init__(self, human features, soul, air, infinity, good, evil):
                           self.human = human
                           # etc etc

          def  life(self):
                    while life == True:
                             for moments in life:
                                       if self.human.dreaming == True:
                                                  try:
                                                      self.human += reality
                                                      except HumanSleeping, err

                   return self.human

3 comments:

  1. if readers == thought:
    return readers.feel_free_to_expand_this == True

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. def do_homework(self, work):
    ....if work.due_date >= 3.days.from.now:
    ........return False
    ........
    ....if self.hunger >= 7:
    ........return False
    ....
    ....try:
    ........for i in range(work.difficulty * (work.due_date - today.date)):
    ............procrastinate()
    ............self.energy -= 1
    ............
    ........if self.energy > 0:
    ............work.do()
    ............return True
    ........else:
    ............return False
    ............
    ....except(DistractedByFriend):
    ........self.chill()
    ........return False

    def procrastinate(self):
    ....
    ....if self.room.is_messy:
    ........self.clean(self.room)
    ....
    ....elif self.videos.unfinished_projects >= 1:
    ........self.videos.unfinished_projects[0].edit()
    ....
    ....else:
    ........read()

    ReplyDelete