Edward Loper - 2008-02-26

Logged In: YES
user_id=195958
Originator: NO

The epydoc reStructuredText parser defines a "..python::" directive that does exactly this. I.e.:

.. python::
import foo

I'm unlikely to add such functionality to epytext though -- simplicity is one of the main goals of epytext, and doctest block already provide very similar functionality.