Mark Lawrence added the comment: Could we borrow code from the ipython %paste command? This issue is also referenced from #5124. ---------- nosy: +BreamoreBoy _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue3559> _______________________________________