IPython also allows you to paste in '>>> foo()' and it treats it as 'foo()'. Really smart, and not an obvious thing to implement.