5do3
last updated 2 years ago by anonymous #
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
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.
AaronSw 2 years ago #
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...
Baseline 2 years ago #

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.marksand 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)
Baseline 2 years ago #