{"action":"opened","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5552","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5552/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5552/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5552/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5552","id":142913635,"number":5552,"title":"Support python's \"in\" operator","user":{"login":"tatsujin1","id":6277212,"avatar_url":"https://avatars.githubusercontent.com/u/6277212?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsujin1","html_url":"https://github.com/tatsujin1","followers_url":"https://api.github.com/users/tatsujin1/followers","following_url":"https://api.github.com/users/tatsujin1/following{/other_user}","gists_url":"https://api.github.com/users/tatsujin1/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsujin1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsujin1/subscriptions","organizations_url":"https://api.github.com/users/tatsujin1/orgs","repos_url":"https://api.github.com/users/tatsujin1/repos","events_url":"https://api.github.com/users/tatsujin1/events{/privacy}","received_events_url":"https://api.github.com/users/tatsujin1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T09:54:25Z","updated_at":"2016-03-23T09:54:25Z","closed_at":null,"body":"compare:\r\n`table.filter(r.row['field'].contains('ball'))`\r\nwith:\r\n`table.filter('ball' in r.row['field'])`\r\n\r\nIt's basically syntactic sugar on the existing syntax, as it simply turns into: `r.row['field'].__contains__('ball')`.\r\nBut it looks nicer :)  and I guess it's more \"pythonic\". \r\n\r\nA slight downside is that when using a lambda parenthesis are required:\r\n`table.filter( (lambda x: x == 1) in r.row['field'])`\r\nand doesn't look as nice any longer..."}}