inserts code from a file:
.. literalinclude:: example.py

http://www.google.com/search?hl=en&safe=off&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=CHW&q=restructured+text+insert+text&aq=f&oq=&aqi=
restructured text insert text - Google Search
http://www.google.com/search?q=sphinx+insert+code&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
sphinx insert code - Google Search
http://broadcast.oreilly.com/2009/02/writing-technical-documentatio.html
Writing Technical Documentation with Sphinx, Paver, and Cog - O'Reilly Broadcast
http://www.google.com/search?q=sphinx+include+sample+code&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
sphinx include sample code - Google Search
http://sphinx.pocoo.org/rest.html
reStructuredText Primer — Sphinx v0.6.3 documentation
http://sphinx.pocoo.org/markup/code.html
Showing code examples — Sphinx v0.6.3 documentation