| Home | Trees | Indices | Help |
|
|---|
|
|
Bonus Tutorial: Using generators to return result bodies
Instead of returning a complete result string, you can use the yield statement to return one result part after another. This may be convenient in situations where using a template package like CherryPy or Cheetah would be overkill, and messy string concatenation too uncool. ;-)
|
|||
| GeneratorDemo | |||
Imports: cherrypy
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Mar 20 22:14:21 2008 | http://epydoc.sourceforge.net |