{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/3315","labels_url":"https://api.github.com/repos/astropy/astropy/issues/3315/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/3315/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/3315/events","html_url":"https://github.com/astropy/astropy/pull/3315","id":54879861,"number":3315,"title":"str(SkyCoord) should not return repr-style output","user":{"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},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/coordinates","name":"coordinates","color":"c7def8"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Ready-for-final-review","name":"Ready-for-final-review","color":"009800"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/15","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/15/labels","id":643887,"number":15,"title":"v1.0.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":19,"closed_issues":208,"state":"open","created_at":"2014-04-29T16:03:02Z","updated_at":"2015-01-21T20:37:03Z","due_on":"2015-01-23T05:00:00Z","closed_at":null},"comments":16,"created_at":"2015-01-20T12:57:33Z","updated_at":"2015-01-21T21:40:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/3315","html_url":"https://github.com/astropy/astropy/pull/3315","diff_url":"https://github.com/astropy/astropy/pull/3315.diff","patch_url":"https://github.com/astropy/astropy/pull/3315.patch"},"body":"At the moment ``str(SkyCoord)`` returns a repr-style output:\r\n\r\n```\r\nIn [20]: str(c)\r\nOut[20]: '<SkyCoord (ICRS): ra=10.68470833 deg, dec=41.26875 deg>'\r\n```\r\n\r\nOn the other hand, ``Time`` returns a nicely formatted time:\r\n\r\n```\r\nIn [21]: str(t)\r\nOut[21]: '2015-01-20 12:46:46.735742'\r\n```\r\n\r\nI think the second is correct, and ``str(c)`` should return 'nice' output. I would suggest that ``str`` should return the same output as ``c.to_string()``.\r\n\r\nFurthermore, ``to_string`` at the moment could return a better default:\r\n\r\n```\r\nIn [22]: c\r\nOut[22]: <SkyCoord (ICRS): ra=10.68470833 deg, dec=41.26875 deg>\r\n\r\nIn [23]: c.to_string()\r\nOut[23]: '10.6847 41.2687'\r\n```\r\n\r\nFor equatorial systems the default really should be ``hmsdms``:\r\n\r\n```\r\nIn [18]: c.to_string(style='hmsdms')\r\nOut[18]: '00h42m44.33s +41d16m07.5s'\r\n```\r\n\r\nSo there are two requests here:\r\n\r\n* Tie ``str(SkyCoord)`` to ``SkyCoord.to_string``\r\n* Have frames define a default syle for ``to_string``\r\n\r\nBoth of these are trivial so I'm happy to implement them if @eteq and @taldcroft agree.\r\n\r\nBy the way, this will result in more 'normal' output for ``SkyCoord`` in tables following #3011 "},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/70927174","html_url":"https://github.com/astropy/astropy/pull/3315#issuecomment-70927174","issue_url":"https://api.github.com/repos/astropy/astropy/issues/3315","id":70927174,"user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T21:40:24Z","updated_at":"2015-01-21T21:40:24Z","body":"p.s. In the table context, I'd hope both system and units could be listed as the \"unit\"."}}