1

IPython's magic %paste silently ignored everything in my clipboard under certain circumstances. The causal agent: a commented ← symbol. This is automatically generated in Google docs by typing <-- and space.

Comparison of outcomes, when copy-pasting with and without a commented ← symbol:

print 'foo' # ←

enter image description here

print 'foo' #

enter image description here

Notice how in the first case (involving ←) IPython simply ignored the content of %paste as if I had an empty clipboard.

Firstly, would anyone who has more knowledge of the code underlying IPython's magic %paste be able to explain why this silent error occurs?

Secondly, what other characters might cause this? What is the unifying property across such characters?

Versions:

IPython 0.13.2

Python 2.6.6

Character Encoding:

en_GB.UTF-8

Terminal:

Bash Xterm

hello_there_andy
  • 2,039
  • 2
  • 21
  • 51
  • What kind of terminal are you using, and what is its character encoding? – unutbu Nov 26 '14 at 14:13
  • Btw, I'm unable to reproduce the problem using IPython 2.0.0, Python 2.7.6, Ubuntu gnome terminal, UTF-8 encoding. – unutbu Nov 26 '14 at 14:17
  • @unutbu interesting, character encoding: en_GB.UTF-8, I am using the standard bash terminal or Xterm (depending on what you mean by type) – hello_there_andy Nov 26 '14 at 14:21

0 Answers0