{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/traitlets/issues/73","labels_url":"https://api.github.com/repos/ipython/traitlets/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/ipython/traitlets/issues/73/comments","events_url":"https://api.github.com/repos/ipython/traitlets/issues/73/events","html_url":"https://github.com/ipython/traitlets/pull/73","id":103639769,"number":73,"title":"Cross Validation Using New Decorator API","user":{"login":"rmorshea","id":4041990,"avatar_url":"https://avatars.githubusercontent.com/u/4041990?v=3","gravatar_id":"","url":"https://api.github.com/users/rmorshea","html_url":"https://github.com/rmorshea","followers_url":"https://api.github.com/users/rmorshea/followers","following_url":"https://api.github.com/users/rmorshea/following{/other_user}","gists_url":"https://api.github.com/users/rmorshea/gists{/gist_id}","starred_url":"https://api.github.com/users/rmorshea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmorshea/subscriptions","organizations_url":"https://api.github.com/users/rmorshea/orgs","repos_url":"https://api.github.com/users/rmorshea/repos","events_url":"https://api.github.com/users/rmorshea/events{/privacy}","received_events_url":"https://api.github.com/users/rmorshea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":63,"created_at":"2015-08-28T03:22:39Z","updated_at":"2015-09-11T20:24:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ipython/traitlets/pulls/73","html_url":"https://github.com/ipython/traitlets/pull/73","diff_url":"https://github.com/ipython/traitlets/pull/73.diff","patch_url":"https://github.com/ipython/traitlets/pull/73.patch"},"body":"brief example\r\n\r\n```python\r\n\r\nfrom traitlets import HasTraits, Int, validate\r\n\r\nclass H(HasTraits):\r\n    \r\n    i = Int()\r\n    \r\n    @validate('i')\r\n    def _i_validator(self, proposal):\r\n        return proposal['value']+1\r\n\r\nh  = H()\r\nh.i = 1\r\nprint('result : '+ str(h.i))\r\n```\r\n\r\n`'result : 2'`\r\n"},"comment":{"url":"https://api.github.com/repos/ipython/traitlets/issues/comments/139653923","html_url":"https://github.com/ipython/traitlets/pull/73#issuecomment-139653923","issue_url":"https://api.github.com/repos/ipython/traitlets/issues/73","id":139653923,"user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T20:24:47Z","updated_at":"2015-09-11T20:24:47Z","body":"@SylvainCorlay thanks, I'll try to have a look tomorrow."}}