yellowpigs.net

jabberwocky.py

Sara Smollett

Feb 2008

#!/usr/bin/python

"""
If you can write poetry in Perl, why not in Python?
(With apologies to Lewis Carroll and Guido.)
"""

def ykcowrebbaj:
  time = brillig
  for tove in toves:
    if is_slithy(tove):
      tove.gyre(wabe)
      tove.gimble(wabe)
  for borogove in borogoves:
    borogove.mimsy = True
  for rath in raths:
    if is_mome(rath):
      rath.outgribe()