{"action":"created","issue":{"url":"https://api.github.com/repos/PyCQA/astroid/issues/126","labels_url":"https://api.github.com/repos/PyCQA/astroid/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/astroid/issues/126/comments","events_url":"https://api.github.com/repos/PyCQA/astroid/issues/126/events","html_url":"https://github.com/PyCQA/astroid/issues/126","id":121166207,"number":126,"title":"Add support for operator.methodcaller & co","user":{"login":"pylint-bot","id":16198247,"avatar_url":"https://avatars.githubusercontent.com/u/16198247?v=3","gravatar_id":"","url":"https://api.github.com/users/pylint-bot","html_url":"https://github.com/pylint-bot","followers_url":"https://api.github.com/users/pylint-bot/followers","following_url":"https://api.github.com/users/pylint-bot/following{/other_user}","gists_url":"https://api.github.com/users/pylint-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pylint-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pylint-bot/subscriptions","organizations_url":"https://api.github.com/users/pylint-bot/orgs","repos_url":"https://api.github.com/users/pylint-bot/repos","events_url":"https://api.github.com/users/pylint-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pylint-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PyCQA/astroid/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-20T15:07:21Z","updated_at":"2015-12-12T12:31:05Z","closed_at":null,"body":"Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)**\n\n----------------------------------------\n\nWe could understand operator.methodcaller, operator.attrgetter and operator.itemgetter.\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/logilab/astroid/issue/126\n"},"comment":{"url":"https://api.github.com/repos/PyCQA/astroid/issues/comments/164145848","html_url":"https://github.com/PyCQA/astroid/issues/126#issuecomment-164145848","issue_url":"https://api.github.com/repos/PyCQA/astroid/issues/126","id":164145848,"user":{"login":"PCManticore","id":448166,"avatar_url":"https://avatars.githubusercontent.com/u/448166?v=3","gravatar_id":"","url":"https://api.github.com/users/PCManticore","html_url":"https://github.com/PCManticore","followers_url":"https://api.github.com/users/PCManticore/followers","following_url":"https://api.github.com/users/PCManticore/following{/other_user}","gists_url":"https://api.github.com/users/PCManticore/gists{/gist_id}","starred_url":"https://api.github.com/users/PCManticore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCManticore/subscriptions","organizations_url":"https://api.github.com/users/PCManticore/orgs","repos_url":"https://api.github.com/users/PCManticore/repos","events_url":"https://api.github.com/users/PCManticore/events{/privacy}","received_events_url":"https://api.github.com/users/PCManticore/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T12:31:05Z","updated_at":"2015-12-12T12:31:05Z","body":"There seems to be a false positive on pylint's side with regard to operator.attrgetter, pylint inferring its result as [Uninferable, tuple]. This makes sense when seeing the implementation of attrgetter.\r\n\r\n```\r\nfrom astroid.test_utils import extract_node\r\nn = extract_node('''\r\nfrom operator import attrgetter\r\nattrgetter(None)(None)\r\n''')\r\nprint(list(n.inferred()))\r\n```"}}