Skip to content

Instantly share code, notes, and snippets.

@hansent
Created June 20, 2013 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hansent/5827227 to your computer and use it in GitHub Desktop.
Save hansent/5827227 to your computer and use it in GitHub Desktop.
#find_meeting_time.py
#scheduling is hard :/
def find_meeting_time(person):
meeting_time = person.suggest()
for p in pythonistas:
if p.has_conflict(meeting_time):
meeting_time = find_meeting_time(p)
return meeting_time
class Thomas(person):
def suggest(self):
return "Tue, July 2, 12:30PM"
# lets hope we dont get a RuntimeError for
# exceeding the maximum level of recursion
print find_meeting_time(Thomas())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment