{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21377","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21377/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21377/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21377/events","html_url":"https://github.com/rust-lang/rust/pull/21377","id":54713810,"number":21377,"title":"Use 'in' instead of 'find()' in tidy.py","user":{"login":"iKevinY","id":2434728,"avatar_url":"https://avatars.githubusercontent.com/u/2434728?v=3","gravatar_id":"","url":"https://api.github.com/users/iKevinY","html_url":"https://github.com/iKevinY","followers_url":"https://api.github.com/users/iKevinY/followers","following_url":"https://api.github.com/users/iKevinY/following{/other_user}","gists_url":"https://api.github.com/users/iKevinY/gists{/gist_id}","starred_url":"https://api.github.com/users/iKevinY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iKevinY/subscriptions","organizations_url":"https://api.github.com/users/iKevinY/orgs","repos_url":"https://api.github.com/users/iKevinY/repos","events_url":"https://api.github.com/users/iKevinY/events{/privacy}","received_events_url":"https://api.github.com/users/iKevinY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-18T23:01:46Z","updated_at":"2015-01-18T23:02:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/21377","html_url":"https://github.com/rust-lang/rust/pull/21377","diff_url":"https://github.com/rust-lang/rust/pull/21377.diff","patch_url":"https://github.com/rust-lang/rust/pull/21377.patch"},"body":"`x in y` is more Pythonic than `y.find(x) != -1`. I believe it runs quite a bit faster as well:\r\n\r\n```bash\r\n$ python -m timeit '\"abc\".find(\"a\") != -1'\r\n1000000 loops, best of 3: 0.218 usec per loop\r\n$ python -m timeit '\"a\" in \"abc\"'\r\n10000000 loops, best of 3: 0.0343 usec per loop\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/70430936","html_url":"https://github.com/rust-lang/rust/pull/21377#issuecomment-70430936","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21377","id":70430936,"user":{"login":"rust-highfive","id":7378925,"avatar_url":"https://avatars.githubusercontent.com/u/7378925?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-highfive","html_url":"https://github.com/rust-highfive","followers_url":"https://api.github.com/users/rust-highfive/followers","following_url":"https://api.github.com/users/rust-highfive/following{/other_user}","gists_url":"https://api.github.com/users/rust-highfive/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-highfive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-highfive/subscriptions","organizations_url":"https://api.github.com/users/rust-highfive/orgs","repos_url":"https://api.github.com/users/rust-highfive/repos","events_url":"https://api.github.com/users/rust-highfive/events{/privacy}","received_events_url":"https://api.github.com/users/rust-highfive/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T23:02:00Z","updated_at":"2015-01-18T23:02:00Z","body":"r? @nikomatsakis\n\n(rust_highfive has picked a reviewer for you, use r? to override)"}}