Ezio Melotti added the comment: > Is this a feature? What is it for? :) The >>> is added to every example that contains an interactive session to hide the '>>>' and '...' prompts and the output and make the code copy/pastable, and it's not specific to doctests. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue12947> _______________________________________