{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4946","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4946/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4946/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4946/events","html_url":"https://github.com/astropy/astropy/pull/4946","id":155553081,"number":4946,"title":"Table pprint() to handle unicode in Python 2","user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Affects-release","name":"Affects-release","color":"0052cc"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Python2","name":"Python2","color":"f7c6c7"},{"url":"https://api.github.com/repos/astropy/astropy/labels/table","name":"table","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"taldcroft","id":348089,"avatar_url":"https://avatars.githubusercontent.com/u/348089?v=3","gravatar_id":"","url":"https://api.github.com/users/taldcroft","html_url":"https://github.com/taldcroft","followers_url":"https://api.github.com/users/taldcroft/followers","following_url":"https://api.github.com/users/taldcroft/following{/other_user}","gists_url":"https://api.github.com/users/taldcroft/gists{/gist_id}","starred_url":"https://api.github.com/users/taldcroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taldcroft/subscriptions","organizations_url":"https://api.github.com/users/taldcroft/orgs","repos_url":"https://api.github.com/users/taldcroft/repos","events_url":"https://api.github.com/users/taldcroft/events{/privacy}","received_events_url":"https://api.github.com/users/taldcroft/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/26","html_url":"https://github.com/astropy/astropy/milestones/v1.2.0","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/26/labels","id":1114049,"number":26,"title":"v1.2.0","description":"","creator":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":167,"state":"open","created_at":"2015-05-17T16:11:47Z","updated_at":"2016-05-18T20:44:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-05-18T17:00:49Z","updated_at":"2016-05-18T21:16:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/4946","html_url":"https://github.com/astropy/astropy/pull/4946","diff_url":"https://github.com/astropy/astropy/pull/4946.diff","patch_url":"https://github.com/astropy/astropy/pull/4946.patch"},"body":"This fixes #4944. That is, `pprint()` now handles unicode in Python 2 properly. Also expanded test to include special character and rearranged Python 2/3 logic to handle Python 4.\r\n\r\np.s. I optimistically milestoned this to 1.2. Feel free to remove milestone if it is not possible.\r\n\r\np.p.s. My Emacs also automatically removed trailing whitespace.\r\n\r\nExample use case:\r\n```python\r\nIn [1]: from astropy.table import Table, Column\r\n\r\nIn [2]: tab = Table()\r\n\r\nIn [3]: tab.add_column(Column(data=['blah','bläh'], name='ok'))\r\n\r\nIn [4]: tab.pprint()\r\n ok \r\n----\r\nblah\r\nbläh\r\n```"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/220160777","html_url":"https://github.com/astropy/astropy/pull/4946#issuecomment-220160777","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4946","id":220160777,"user":{"login":"saimn","id":311639,"avatar_url":"https://avatars.githubusercontent.com/u/311639?v=3","gravatar_id":"","url":"https://api.github.com/users/saimn","html_url":"https://github.com/saimn","followers_url":"https://api.github.com/users/saimn/followers","following_url":"https://api.github.com/users/saimn/following{/other_user}","gists_url":"https://api.github.com/users/saimn/gists{/gist_id}","starred_url":"https://api.github.com/users/saimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimn/subscriptions","organizations_url":"https://api.github.com/users/saimn/orgs","repos_url":"https://api.github.com/users/saimn/repos","events_url":"https://api.github.com/users/saimn/events{/privacy}","received_events_url":"https://api.github.com/users/saimn/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T21:16:23Z","updated_at":"2016-05-18T21:16:23Z","body":"This remind me about a similar bug with a FITS table (read with `astropy.table.Table`) and I forgot to investigate ... Testing with this table and your PR fix the issue, so :+1: "}}