{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/905","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/905/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/905/events","html_url":"https://github.com/astropy/astropy/issues/905","id":12382676,"number":905,"title":"Make a pretty printer for OrderedDict","user":{"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},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Effort-medium","name":"Effort-medium","color":"fef2c0"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Feature%20Request","name":"Feature Request","color":"bfdadc"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Package-novice","name":"Package-novice","color":"bfe5bf"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Priority-Low","name":"Priority-Low","color":"fee8c8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/5","html_url":"https://github.com/astropy/astropy/milestones/Future","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/5/labels","id":194018,"number":5,"title":"Future","description":"A feature or task for a future unspecified release.","creator":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"open_issues":108,"closed_issues":61,"state":"open","created_at":"2012-10-11T15:46:42Z","updated_at":"2016-02-08T15:53:34Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2013-03-24T23:24:13Z","updated_at":"2016-02-18T09:39:33Z","closed_at":null,"body":"`OrderedDict` is used in many places within astropy, but printing an OrderedDict object gives an ugly and difficult-to-read output.  `pprint` is no better.  Some quick googling led to some stackoverflow answers but nothing really helpful.\r\n\r\nHaving a readable representation of these objects would be useful.  One idea is to customize `pprint.pformat` to work with OrderedDict, then use that as `__repr__` or `__str__` in astropy the OrderDict class.\r\n\r\nIf someone is bored maybe this would be a good little project..."},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/185628766","html_url":"https://github.com/astropy/astropy/issues/905#issuecomment-185628766","issue_url":"https://api.github.com/repos/astropy/astropy/issues/905","id":185628766,"user":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T09:39:33Z","updated_at":"2016-02-18T09:39:33Z","body":"We could still implement our own BetterOrderedDict in astropy.utils and say something in the developer docs that its use should be preferred, at least in cases where users will interact with it.  But I agree, it's a pain :\\"}}