{"action":"opened","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/778","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/778/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/778/events","html_url":"https://github.com/spyder-ide/spyder/issues/778","id":57869618,"number":778,"title":"Copy and &#37;paste not working from Editor to IPython 0.11 console","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/1%20star","name":"1 star","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/done","name":"done","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Python-Console","name":"Python-Console","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Windows","name":"Windows","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-17T00:45:54Z","updated_at":"2015-02-17T00:45:54Z","closed_at":null,"body":"_From [jones...@gmail.com](https://code.google.com/u/115331508125287012580/) on 2011-10-01T09:32:41Z_\n\n\n\nWhat steps will reproduce the problem?\n\n 1. Copy a string like print \"foo\"\r\n2. &#37;paste in console (magic paste) 3. What is the expected output? What do you see instead? In [13]: &#37;paste\r\nprint \"foo\"\r\n[?][?][?]a My comment: here are some strange characters, the [?] are single chars representing some strange data?\r\n\\## -- End pasted text --\r\n\\---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\nC:\\EclipsePython\\EvolveDesign\\src\\<ipython-input-13-771cb64cec93> in \\<module>()\r\n----> 1 get_ipython().magic(u\"paste\")\r\n\r\nC:\\Python26\\lib\\site-packages\\ipython-0.11-py2.6.egg\\IPython\\core\\interactiveshell.pyc in magic(self, arg_s, next_input)\r\n   1892                 self._magic_locals = sys._getframe(1).f_locals\r\n   1893             with self.builtin_trap:\r\n-> 1894                 result = fn(magic_args)\r\n   1895             # Ensure we're not keeping object references around:\r\n\r\n   1896             self._magic_locals = {}\r\n\r\nC:\\Python26\\lib\\site-packages\\ipython-0.11-py2.6.egg\\IPython\\frontend\\terminal\\interactiveshell.pyc in magic_paste(self, parameter_s)\r\n    588             write(\"## -- End pasted text --\\n\")\r\n    589 \r\n--> 590         self._execute_block(block, par)\r\n    591 \r\n    592     def showindentationerror(self):\r\n\r\nC:\\Python26\\lib\\site-packages\\ipython-0.11-py2.6.egg\\IPython\\core\\magic.pyc in _execute_block(self, block, par)\r\n   3211             b = textwrap.dedent(block)\r\n   3212             self.user_ns['pasted_block'] = b\r\n-> 3213             exec b in self.user_ns\r\n   3214         else:\r\n   3215             self.user_ns[par] = SList(block.splitlines())\r\n\r\nTypeError: expected string without null bytes What version of the product are you using? On what operating system? Windows XP\r\nSpyder 2.1.0beta1\r\nIPython 0.11 \n\nPlease provide any additional information below\n\n. Sorry if this is the wrong place, first time poster!\r\n\r\nWhenever I try to copy from the spyder editor (like print \"foo\") and magic &#37;paste into the console, I get the following error. However, when I copy from, say, notepad++, it works fine. Editor adding extra characters to the clipboard string?\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=778_"}}