Advertisement
Guest User

rowboat.py

a guest
Oct 24th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. class NotGentleError(Exception):
  4.     pass
  5.  
  6. def row(boat):
  7.     raise NotGentleError('gently!')
  8.  
  9. def but(dream):
  10.     return None
  11.  
  12. def merrily():
  13.     print ':)'
  14.  
  15. if __name__ == '__main__':
  16.     life = None
  17.     boat = None
  18.     dream = None
  19.  
  20.     try:
  21.         row(row(row(boat)))
  22.     except NotGentleError:
  23.         merrily()
  24.         merrily()
  25.         merrily()
  26.         merrily()
  27.  
  28.     print life is but(dream)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement