{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/packaging/issues/30","labels_url":"https://api.github.com/repos/pypa/packaging/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/pypa/packaging/issues/30/comments","events_url":"https://api.github.com/repos/pypa/packaging/issues/30/events","html_url":"https://github.com/pypa/packaging/pull/30","id":69451776,"number":30,"title":"Add `operator` and `version` properties to `Specifier`","user":{"login":"nvie","id":83844,"avatar_url":"https://avatars.githubusercontent.com/u/83844?v=3","gravatar_id":"","url":"https://api.github.com/users/nvie","html_url":"https://github.com/nvie","followers_url":"https://api.github.com/users/nvie/followers","following_url":"https://api.github.com/users/nvie/following{/other_user}","gists_url":"https://api.github.com/users/nvie/gists{/gist_id}","starred_url":"https://api.github.com/users/nvie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvie/subscriptions","organizations_url":"https://api.github.com/users/nvie/orgs","repos_url":"https://api.github.com/users/nvie/repos","events_url":"https://api.github.com/users/nvie/events{/privacy}","received_events_url":"https://api.github.com/users/nvie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-19T18:31:35Z","updated_at":"2015-04-20T08:29:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pypa/packaging/pulls/30","html_url":"https://github.com/pypa/packaging/pull/30","diff_url":"https://github.com/pypa/packaging/pull/30.diff","patch_url":"https://github.com/pypa/packaging/pull/30.patch"},"body":"This adds the `operator` and `version` properties, to provide a public way of accessing the underpinnings of the Specifier (and LegacySpecifier) class.\r\n\r\nIn a nutshell:\r\n\r\n```python\r\n>>> s = Specifier('~=2.*')\r\n>>> s.operator\r\n'~='\r\n>>> s.version\r\n'2.*'\r\n```"},"comment":{"url":"https://api.github.com/repos/pypa/packaging/issues/comments/94392235","html_url":"https://github.com/pypa/packaging/pull/30#issuecomment-94392235","issue_url":"https://api.github.com/repos/pypa/packaging/issues/30","id":94392235,"user":{"login":"nvie","id":83844,"avatar_url":"https://avatars.githubusercontent.com/u/83844?v=3","gravatar_id":"","url":"https://api.github.com/users/nvie","html_url":"https://github.com/nvie","followers_url":"https://api.github.com/users/nvie/followers","following_url":"https://api.github.com/users/nvie/following{/other_user}","gists_url":"https://api.github.com/users/nvie/gists{/gist_id}","starred_url":"https://api.github.com/users/nvie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvie/subscriptions","organizations_url":"https://api.github.com/users/nvie/orgs","repos_url":"https://api.github.com/users/nvie/repos","events_url":"https://api.github.com/users/nvie/events{/privacy}","received_events_url":"https://api.github.com/users/nvie/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T08:29:39Z","updated_at":"2015-04-20T08:29:39Z","body":"I went ahead and make it so `.version` returns a (parsed) `Version` instance. `.version_string` still allows access to the string, if needed."}}