I don't know the rationale, but a big -1 to injecting doctest-like markup inside a '.. code-block:: python' segment.