(An Unofficial) Python Tutorial Wiki

putting the community back in "maintained by the community"

5drw

The reason I personally like showing the interpreter output is because it's much easier to show... the interpreter output. Like where I wrote bobby.marks and the output (empty list) was shown on the next line.

That's never as clear when you do it without the >>> (and you can't copy and paste anyway, because if you start pasting in copied output, you'll get errors)

Comments

It'd be pretty cool if the Python interpreter ignored those marks. Considering they're being used in stuff like doctest as well, this makes a lot of sense.

That sounds like a neat feature to try plugging into IPython. doctest.DocTestParser could be used at some level to parse out the interpreter characters and leave just the required code. Interesting...