spacepaste

  1.  
  2. module_head = ''''\
  3. """A module"""'
  4. class Thing(object):
  5. """A class."""
  6. '''
  7. method_body = '''\
  8. def method_%i(self):
  9. """A method."""
  10. trans = self.transaction
  11. self.transaction = trans
  12. trans.response
  13. '''
  14. print module_head
  15. for i in range(98):
  16. print method_body % i
  17.