(An Unofficial) Python Tutorial Wiki

putting the community back in "maintained by the community"

5do3

Having >>> or ... before every line of code makes it really hard to copy paste the stuff into the interpreter. It seems like someone learning python might want to do that, instead of copying the code by hand to test things out.

Comments

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)

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...