{"action":"created","issue":{"url":"https://api.github.com/repos/bpoldrack/datalad/issues/25","repository_url":"https://api.github.com/repos/bpoldrack/datalad","labels_url":"https://api.github.com/repos/bpoldrack/datalad/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/bpoldrack/datalad/issues/25/comments","events_url":"https://api.github.com/repos/bpoldrack/datalad/issues/25/events","html_url":"https://github.com/bpoldrack/datalad/pull/25","id":145682056,"number":25,"title":"ENH: No longer force all non-optional params to have EnsureNone()","user":{"login":"hanke","id":136479,"avatar_url":"https://avatars.githubusercontent.com/u/136479?v=3","gravatar_id":"","url":"https://api.github.com/users/hanke","html_url":"https://github.com/hanke","followers_url":"https://api.github.com/users/hanke/followers","following_url":"https://api.github.com/users/hanke/following{/other_user}","gists_url":"https://api.github.com/users/hanke/gists{/gist_id}","starred_url":"https://api.github.com/users/hanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanke/subscriptions","organizations_url":"https://api.github.com/users/hanke/orgs","repos_url":"https://api.github.com/users/hanke/repos","events_url":"https://api.github.com/users/hanke/events{/privacy}","received_events_url":"https://api.github.com/users/hanke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-04T13:20:53Z","updated_at":"2016-04-04T15:40:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bpoldrack/datalad/pulls/25","html_url":"https://github.com/bpoldrack/datalad/pull/25","diff_url":"https://github.com/bpoldrack/datalad/pull/25.diff","patch_url":"https://github.com/bpoldrack/datalad/pull/25.patch"},"body":"Our API functions have a problem. Most of them need a dataset to work,\r\nbut we have logic to figure the particular dataset out automatically,\r\nhence usually: dataset=None. As this must be the first argument, we\r\ncannot have positional args, which is not nice.\r\n\r\nThis commit mitigates the cosmetics of the problem and removes the need\r\nto have EnsureNone() for all kwargs that are nevertheless required to\r\nhave a value other than none.\r\n\r\nNot ideal, but can't think of something better."},"comment":{"url":"https://api.github.com/repos/bpoldrack/datalad/issues/comments/205355972","html_url":"https://github.com/bpoldrack/datalad/pull/25#issuecomment-205355972","issue_url":"https://api.github.com/repos/bpoldrack/datalad/issues/25","id":205355972,"user":{"login":"hanke","id":136479,"avatar_url":"https://avatars.githubusercontent.com/u/136479?v=3","gravatar_id":"","url":"https://api.github.com/users/hanke","html_url":"https://github.com/hanke","followers_url":"https://api.github.com/users/hanke/followers","following_url":"https://api.github.com/users/hanke/following{/other_user}","gists_url":"https://api.github.com/users/hanke/gists{/gist_id}","starred_url":"https://api.github.com/users/hanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanke/subscriptions","organizations_url":"https://api.github.com/users/hanke/orgs","repos_url":"https://api.github.com/users/hanke/repos","events_url":"https://api.github.com/users/hanke/events{/privacy}","received_events_url":"https://api.github.com/users/hanke/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T15:40:07Z","updated_at":"2016-04-04T15:40:07Z","body":"Excellent point! Thanks.\n\nOn Mon, Apr 4, 2016 at 5:35 PM, Yaroslav Halchenko <notifications@github.com\n> wrote:\n\n> oh... rright, forgot about that. But since all of this is short of magic:\n> http://nbviewer.jupyter.org/url/www.onerussian.com/tmp/bind_methods1.ipynb\n> and compatible with both python 2 and 3\n>\n> there is a runtime penalty of cause but since those are interface\n> functions, I don't think it would be anything to worry about\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/bpoldrack/datalad/pull/25#issuecomment-205353886>\n>\n\n\n\n-- \nMichael Hanke\nhttp://mih.voxindeserto.de\n"}}