How can I evaluate a line of Python code from emacs buffer and have the result be written to the buffer at my cursor? I want to do something like in haskell-mode where you can type C-u C-c C-t and the type definition of whatever was at your cursor is inserted at your cursor.
So, if I selected and sent a region such as
1 + 2
from a .py buffer to the Python inferior process I would then see
3
1 + 2
in my .py buffer, ie. the 3 followed by a newline was inserted at point.