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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.