{"action":"created","comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments/41501474","id":41501474,"diff_hunk":"@@ -1075,7 +1076,23 @@ def copy(self):\n         for idx in self.selectedIndexes():\r\n             if not idx.isValid():\r\n                 continue\r\n-            clipl.append(to_text_string(self.delegate.get_value(idx)))\r\n+            obj = self.delegate.get_value(idx)\r\n+            # check if it's a numpy array, and if so make sure to copy the whole\r\n+            # thing in a tab separated format\r\n+            try:\r\n+                import numpy as np\r\n+            except ImportError:\r\n+                pass # skip this part\r","path":"spyderlib/widgets/dicteditor.py","position":21,"original_position":21,"commit_id":"66c1d3259d9c48e042c061f607e886924ce2d00b","original_commit_id":"66c1d3259d9c48e042c061f607e886924ce2d00b","user":{"login":"Nodd","id":506348,"avatar_url":"https://avatars.githubusercontent.com/u/506348?v=3","gravatar_id":"","url":"https://api.github.com/users/Nodd","html_url":"https://github.com/Nodd","followers_url":"https://api.github.com/users/Nodd/followers","following_url":"https://api.github.com/users/Nodd/following{/other_user}","gists_url":"https://api.github.com/users/Nodd/gists{/gist_id}","starred_url":"https://api.github.com/users/Nodd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nodd/subscriptions","organizations_url":"https://api.github.com/users/Nodd/orgs","repos_url":"https://api.github.com/users/Nodd/repos","events_url":"https://api.github.com/users/Nodd/events{/privacy}","received_events_url":"https://api.github.com/users/Nodd/received_events","type":"User","site_admin":false},"body":"You need it to check if the object is a ndarray. You you need it in order to know if you need it !","created_at":"2015-10-08T11:18:24Z","updated_at":"2015-10-08T11:18:24Z","html_url":"https://github.com/spyder-ide/spyder/pull/2577#discussion_r41501474","pull_request_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577","_links":{"self":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments/41501474"},"html":{"href":"https://github.com/spyder-ide/spyder/pull/2577#discussion_r41501474"},"pull_request":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577"}}},"pull_request":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577","id":41400274,"html_url":"https://github.com/spyder-ide/spyder/pull/2577","diff_url":"https://github.com/spyder-ide/spyder/pull/2577.diff","patch_url":"https://github.com/spyder-ide/spyder/pull/2577.patch","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2577","number":2577,"state":"closed","locked":false,"title":"Make \"copy\" work better with numpy arrays","user":{"login":"da-woods","id":10536947,"avatar_url":"https://avatars.githubusercontent.com/u/10536947?v=3","gravatar_id":"","url":"https://api.github.com/users/da-woods","html_url":"https://github.com/da-woods","followers_url":"https://api.github.com/users/da-woods/followers","following_url":"https://api.github.com/users/da-woods/following{/other_user}","gists_url":"https://api.github.com/users/da-woods/gists{/gist_id}","starred_url":"https://api.github.com/users/da-woods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da-woods/subscriptions","organizations_url":"https://api.github.com/users/da-woods/orgs","repos_url":"https://api.github.com/users/da-woods/repos","events_url":"https://api.github.com/users/da-woods/events{/privacy}","received_events_url":"https://api.github.com/users/da-woods/received_events","type":"User","site_admin":false},"body":"Previously, if you go to variable explorer, right clicked\r\non a (large) numpy array and clicked copy if copied in the form\r\n`[[1.0, 2.0 ... 3.0 ]]` (i.e. with dots in place of the middle\r\nof the array)\r\n\r\nNow it copies the whole array with as a tab separated string.\r\nThis is more useful since you can paste directly into Spyder\r\nor into a spreadsheet, and no data is omitted.\r\n\r\nThe downside is that the clipboard can get quite large","created_at":"2015-08-01T11:03:42Z","updated_at":"2015-10-08T11:18:24Z","closed_at":"2015-10-07T20:16:05Z","merged_at":"2015-10-07T20:16:05Z","merge_commit_sha":"3ecec1b6226e449a46e75b0ed0825c0873d70f82","assignee":{"login":"goanpeca","id":3627835,"avatar_url":"https://avatars.githubusercontent.com/u/3627835?v=3","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5","html_url":"https://github.com/spyder-ide/spyder/milestones/v3.0","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5/labels","id":982077,"number":5,"title":"v3.0","description":"New major release","creator":{"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},"open_issues":143,"closed_issues":159,"state":"open","created_at":"2015-02-16T23:17:23Z","updated_at":"2015-10-08T00:31:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577/commits","review_comments_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577/comments","review_comment_url":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2577/comments","statuses_url":"https://api.github.com/repos/spyder-ide/spyder/statuses/66c1d3259d9c48e042c061f607e886924ce2d00b","head":{"label":"da-woods:copy1","ref":"copy1","sha":"66c1d3259d9c48e042c061f607e886924ce2d00b","user":{"login":"da-woods","id":10536947,"avatar_url":"https://avatars.githubusercontent.com/u/10536947?v=3","gravatar_id":"","url":"https://api.github.com/users/da-woods","html_url":"https://github.com/da-woods","followers_url":"https://api.github.com/users/da-woods/followers","following_url":"https://api.github.com/users/da-woods/following{/other_user}","gists_url":"https://api.github.com/users/da-woods/gists{/gist_id}","starred_url":"https://api.github.com/users/da-woods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da-woods/subscriptions","organizations_url":"https://api.github.com/users/da-woods/orgs","repos_url":"https://api.github.com/users/da-woods/repos","events_url":"https://api.github.com/users/da-woods/events{/privacy}","received_events_url":"https://api.github.com/users/da-woods/received_events","type":"User","site_admin":false},"repo":{"id":39912191,"name":"spyder","full_name":"da-woods/spyder","owner":{"login":"da-woods","id":10536947,"avatar_url":"https://avatars.githubusercontent.com/u/10536947?v=3","gravatar_id":"","url":"https://api.github.com/users/da-woods","html_url":"https://github.com/da-woods","followers_url":"https://api.github.com/users/da-woods/followers","following_url":"https://api.github.com/users/da-woods/following{/other_user}","gists_url":"https://api.github.com/users/da-woods/gists{/gist_id}","starred_url":"https://api.github.com/users/da-woods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da-woods/subscriptions","organizations_url":"https://api.github.com/users/da-woods/orgs","repos_url":"https://api.github.com/users/da-woods/repos","events_url":"https://api.github.com/users/da-woods/events{/privacy}","received_events_url":"https://api.github.com/users/da-woods/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/da-woods/spyder","description":"Official repository for Spyder - The Scientific PYthon Development EnviRonment","fork":true,"url":"https://api.github.com/repos/da-woods/spyder","forks_url":"https://api.github.com/repos/da-woods/spyder/forks","keys_url":"https://api.github.com/repos/da-woods/spyder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/da-woods/spyder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/da-woods/spyder/teams","hooks_url":"https://api.github.com/repos/da-woods/spyder/hooks","issue_events_url":"https://api.github.com/repos/da-woods/spyder/issues/events{/number}","events_url":"https://api.github.com/repos/da-woods/spyder/events","assignees_url":"https://api.github.com/repos/da-woods/spyder/assignees{/user}","branches_url":"https://api.github.com/repos/da-woods/spyder/branches{/branch}","tags_url":"https://api.github.com/repos/da-woods/spyder/tags","blobs_url":"https://api.github.com/repos/da-woods/spyder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/da-woods/spyder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/da-woods/spyder/git/refs{/sha}","trees_url":"https://api.github.com/repos/da-woods/spyder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/da-woods/spyder/statuses/{sha}","languages_url":"https://api.github.com/repos/da-woods/spyder/languages","stargazers_url":"https://api.github.com/repos/da-woods/spyder/stargazers","contributors_url":"https://api.github.com/repos/da-woods/spyder/contributors","subscribers_url":"https://api.github.com/repos/da-woods/spyder/subscribers","subscription_url":"https://api.github.com/repos/da-woods/spyder/subscription","commits_url":"https://api.github.com/repos/da-woods/spyder/commits{/sha}","git_commits_url":"https://api.github.com/repos/da-woods/spyder/git/commits{/sha}","comments_url":"https://api.github.com/repos/da-woods/spyder/comments{/number}","issue_comment_url":"https://api.github.com/repos/da-woods/spyder/issues/comments{/number}","contents_url":"https://api.github.com/repos/da-woods/spyder/contents/{+path}","compare_url":"https://api.github.com/repos/da-woods/spyder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/da-woods/spyder/merges","archive_url":"https://api.github.com/repos/da-woods/spyder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/da-woods/spyder/downloads","issues_url":"https://api.github.com/repos/da-woods/spyder/issues{/number}","pulls_url":"https://api.github.com/repos/da-woods/spyder/pulls{/number}","milestones_url":"https://api.github.com/repos/da-woods/spyder/milestones{/number}","notifications_url":"https://api.github.com/repos/da-woods/spyder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/da-woods/spyder/labels{/name}","releases_url":"https://api.github.com/repos/da-woods/spyder/releases{/id}","created_at":"2015-07-29T19:29:06Z","updated_at":"2015-07-29T19:29:08Z","pushed_at":"2015-09-23T17:22:11Z","git_url":"git://github.com/da-woods/spyder.git","ssh_url":"git@github.com:da-woods/spyder.git","clone_url":"https://github.com/da-woods/spyder.git","svn_url":"https://github.com/da-woods/spyder","homepage":"","size":26168,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spyder-ide:master","ref":"master","sha":"3f5e2cffffda7f476bbc34fec49e442edf020af4","user":{"login":"spyder-ide","id":1284937,"avatar_url":"https://avatars.githubusercontent.com/u/1284937?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-ide","html_url":"https://github.com/spyder-ide","followers_url":"https://api.github.com/users/spyder-ide/followers","following_url":"https://api.github.com/users/spyder-ide/following{/other_user}","gists_url":"https://api.github.com/users/spyder-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-ide/subscriptions","organizations_url":"https://api.github.com/users/spyder-ide/orgs","repos_url":"https://api.github.com/users/spyder-ide/repos","events_url":"https://api.github.com/users/spyder-ide/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-ide/received_events","type":"Organization","site_admin":false},"repo":{"id":30892477,"name":"spyder","full_name":"spyder-ide/spyder","owner":{"login":"spyder-ide","id":1284937,"avatar_url":"https://avatars.githubusercontent.com/u/1284937?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-ide","html_url":"https://github.com/spyder-ide","followers_url":"https://api.github.com/users/spyder-ide/followers","following_url":"https://api.github.com/users/spyder-ide/following{/other_user}","gists_url":"https://api.github.com/users/spyder-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-ide/subscriptions","organizations_url":"https://api.github.com/users/spyder-ide/orgs","repos_url":"https://api.github.com/users/spyder-ide/repos","events_url":"https://api.github.com/users/spyder-ide/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-ide/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spyder-ide/spyder","description":"Official repository for Spyder - The Scientific PYthon Development EnviRonment","fork":false,"url":"https://api.github.com/repos/spyder-ide/spyder","forks_url":"https://api.github.com/repos/spyder-ide/spyder/forks","keys_url":"https://api.github.com/repos/spyder-ide/spyder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spyder-ide/spyder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spyder-ide/spyder/teams","hooks_url":"https://api.github.com/repos/spyder-ide/spyder/hooks","issue_events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/events{/number}","events_url":"https://api.github.com/repos/spyder-ide/spyder/events","assignees_url":"https://api.github.com/repos/spyder-ide/spyder/assignees{/user}","branches_url":"https://api.github.com/repos/spyder-ide/spyder/branches{/branch}","tags_url":"https://api.github.com/repos/spyder-ide/spyder/tags","blobs_url":"https://api.github.com/repos/spyder-ide/spyder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spyder-ide/spyder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spyder-ide/spyder/git/refs{/sha}","trees_url":"https://api.github.com/repos/spyder-ide/spyder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spyder-ide/spyder/statuses/{sha}","languages_url":"https://api.github.com/repos/spyder-ide/spyder/languages","stargazers_url":"https://api.github.com/repos/spyder-ide/spyder/stargazers","contributors_url":"https://api.github.com/repos/spyder-ide/spyder/contributors","subscribers_url":"https://api.github.com/repos/spyder-ide/spyder/subscribers","subscription_url":"https://api.github.com/repos/spyder-ide/spyder/subscription","commits_url":"https://api.github.com/repos/spyder-ide/spyder/commits{/sha}","git_commits_url":"https://api.github.com/repos/spyder-ide/spyder/git/commits{/sha}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/comments{/number}","issue_comment_url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments{/number}","contents_url":"https://api.github.com/repos/spyder-ide/spyder/contents/{+path}","compare_url":"https://api.github.com/repos/spyder-ide/spyder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spyder-ide/spyder/merges","archive_url":"https://api.github.com/repos/spyder-ide/spyder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spyder-ide/spyder/downloads","issues_url":"https://api.github.com/repos/spyder-ide/spyder/issues{/number}","pulls_url":"https://api.github.com/repos/spyder-ide/spyder/pulls{/number}","milestones_url":"https://api.github.com/repos/spyder-ide/spyder/milestones{/number}","notifications_url":"https://api.github.com/repos/spyder-ide/spyder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spyder-ide/spyder/labels{/name}","releases_url":"https://api.github.com/repos/spyder-ide/spyder/releases{/id}","created_at":"2015-02-16T22:49:48Z","updated_at":"2015-10-08T02:02:17Z","pushed_at":"2015-10-08T09:40:26Z","git_url":"git://github.com/spyder-ide/spyder.git","ssh_url":"git@github.com:spyder-ide/spyder.git","clone_url":"https://github.com/spyder-ide/spyder.git","svn_url":"https://github.com/spyder-ide/spyder","homepage":"","size":68179,"stargazers_count":547,"watchers_count":547,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":155,"mirror_url":null,"open_issues_count":544,"forks":155,"open_issues":544,"watchers":547,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577"},"html":{"href":"https://github.com/spyder-ide/spyder/pull/2577"},"issue":{"href":"https://api.github.com/repos/spyder-ide/spyder/issues/2577"},"comments":{"href":"https://api.github.com/repos/spyder-ide/spyder/issues/2577/comments"},"review_comments":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577/comments"},"review_comment":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spyder-ide/spyder/pulls/2577/commits"},"statuses":{"href":"https://api.github.com/repos/spyder-ide/spyder/statuses/66c1d3259d9c48e042c061f607e886924ce2d00b"}}}}