{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4242","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4242/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4242/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4242/events","html_url":"https://github.com/astropy/astropy/pull/4242","id":111375249,"number":4242,"title":"add_docstring decorator.","user":{"login":"MSeifert04","id":14200878,"avatar_url":"https://avatars.githubusercontent.com/u/14200878?v=3","gravatar_id":"","url":"https://api.github.com/users/MSeifert04","html_url":"https://github.com/MSeifert04","followers_url":"https://api.github.com/users/MSeifert04/followers","following_url":"https://api.github.com/users/MSeifert04/following{/other_user}","gists_url":"https://api.github.com/users/MSeifert04/gists{/gist_id}","starred_url":"https://api.github.com/users/MSeifert04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSeifert04/subscriptions","organizations_url":"https://api.github.com/users/MSeifert04/orgs","repos_url":"https://api.github.com/users/MSeifert04/repos","events_url":"https://api.github.com/users/MSeifert04/events{/privacy}","received_events_url":"https://api.github.com/users/MSeifert04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-14T11:03:26Z","updated_at":"2015-10-15T14:57:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/4242","html_url":"https://github.com/astropy/astropy/pull/4242","diff_url":"https://github.com/astropy/astropy/pull/4242.diff","patch_url":"https://github.com/astropy/astropy/pull/4242.patch"},"body":"In the discussion of #4234 @embray asked me to build a decorator to create dynamical docstrings. Since there might be other use-cases out there and I want to use it in several distinct files/classes I just thought there might be a place in the ``astropy.utils.decorators`` for it.\r\n\r\nPlease feel free to comment. If there shouldn't be use-cases outside my class or if there is already such a decorator in the python built-ins (I have looked but apparently there is no such thing) just speak up and I will only use this for my classes.\r\n\r\nThe decorator is very simple just a 4-liner but I tested it with functions, methods and it works within a python console, for sphinx and even (very happy about that) the spyder object inspector."},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/148411813","html_url":"https://github.com/astropy/astropy/pull/4242#issuecomment-148411813","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4242","id":148411813,"user":{"login":"MSeifert04","id":14200878,"avatar_url":"https://avatars.githubusercontent.com/u/14200878?v=3","gravatar_id":"","url":"https://api.github.com/users/MSeifert04","html_url":"https://github.com/MSeifert04","followers_url":"https://api.github.com/users/MSeifert04/followers","following_url":"https://api.github.com/users/MSeifert04/following{/other_user}","gists_url":"https://api.github.com/users/MSeifert04/gists{/gist_id}","starred_url":"https://api.github.com/users/MSeifert04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSeifert04/subscriptions","organizations_url":"https://api.github.com/users/MSeifert04/orgs","repos_url":"https://api.github.com/users/MSeifert04/repos","events_url":"https://api.github.com/users/MSeifert04/events{/privacy}","received_events_url":"https://api.github.com/users/MSeifert04/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T14:57:17Z","updated_at":"2015-10-15T14:57:17Z","body":"@mhvk Thanks for restarting the test and the error seems to be gone. I'm feeling rather stupid but I want to know: What is a fluke?"}}