{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/pyston/issues/1054","repository_url":"https://api.github.com/repos/dropbox/pyston","labels_url":"https://api.github.com/repos/dropbox/pyston/issues/1054/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/pyston/issues/1054/comments","events_url":"https://api.github.com/repos/dropbox/pyston/issues/1054/events","html_url":"https://github.com/dropbox/pyston/pull/1054","id":126638768,"number":1054,"title":"Tuple and list calling order fixing.","user":{"login":"Daetalus","id":3905926,"avatar_url":"https://avatars.githubusercontent.com/u/3905926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daetalus","html_url":"https://github.com/Daetalus","followers_url":"https://api.github.com/users/Daetalus/followers","following_url":"https://api.github.com/users/Daetalus/following{/other_user}","gists_url":"https://api.github.com/users/Daetalus/gists{/gist_id}","starred_url":"https://api.github.com/users/Daetalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daetalus/subscriptions","organizations_url":"https://api.github.com/users/Daetalus/orgs","repos_url":"https://api.github.com/users/Daetalus/repos","events_url":"https://api.github.com/users/Daetalus/events{/privacy}","received_events_url":"https://api.github.com/users/Daetalus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dropbox/pyston/labels/changes%20requested","name":"changes requested","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-14T11:50:02Z","updated_at":"2016-02-22T15:48:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dropbox/pyston/pulls/1054","html_url":"https://github.com/dropbox/pyston/pull/1054","diff_url":"https://github.com/dropbox/pyston/pull/1054.diff","patch_url":"https://github.com/dropbox/pyston/pull/1054.patch"},"body":"For `tuple.__add__`, if we throw an exception in our `tuple.__add__`, we won't bother checking for an `__radd__`. So before throw exception, I call `__radd__` first. If both return `NotImplemented`. Throw an exception.\r\n\r\nFor `list.__mul__`. Before throw `TypeError, XXX object cannot be interpreted as an index`., I check the argument type whether is `int` or `long` first. If not, throw `TypeError, can't multiply sequence by non-int of type XXX`. This may not the correct solution, but the behavior is more like CPython."},"comment":{"url":"https://api.github.com/repos/dropbox/pyston/issues/comments/187238901","html_url":"https://github.com/dropbox/pyston/pull/1054#issuecomment-187238901","issue_url":"https://api.github.com/repos/dropbox/pyston/issues/1054","id":187238901,"user":{"login":"Daetalus","id":3905926,"avatar_url":"https://avatars.githubusercontent.com/u/3905926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daetalus","html_url":"https://github.com/Daetalus","followers_url":"https://api.github.com/users/Daetalus/followers","following_url":"https://api.github.com/users/Daetalus/following{/other_user}","gists_url":"https://api.github.com/users/Daetalus/gists{/gist_id}","starred_url":"https://api.github.com/users/Daetalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daetalus/subscriptions","organizations_url":"https://api.github.com/users/Daetalus/orgs","repos_url":"https://api.github.com/users/Daetalus/repos","events_url":"https://api.github.com/users/Daetalus/events{/privacy}","received_events_url":"https://api.github.com/users/Daetalus/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T15:48:25Z","updated_at":"2016-02-22T15:48:25Z","body":"@kmod , updated, return `NotImplemented` could solves the problem, only the error message is different from CPython's. Would you mind to review it if you have time, please? Thank you!"}}