{"action":"closed","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3036","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3036/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3036/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3036/events","html_url":"https://github.com/kivy/kivy/issues/3036","id":57762087,"number":3036,"title":"EventDispatcher eats up all kwargs even if it did not process it.","user":{"login":"matham","id":1644286,"avatar_url":"https://avatars.githubusercontent.com/u/1644286?v=3","gravatar_id":"","url":"https://api.github.com/users/matham","html_url":"https://github.com/matham","followers_url":"https://api.github.com/users/matham/followers","following_url":"https://api.github.com/users/matham/following{/other_user}","gists_url":"https://api.github.com/users/matham/gists{/gist_id}","starred_url":"https://api.github.com/users/matham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matham/subscriptions","organizations_url":"https://api.github.com/users/matham/orgs","repos_url":"https://api.github.com/users/matham/repos","events_url":"https://api.github.com/users/matham/events{/privacy}","received_events_url":"https://api.github.com/users/matham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-16T03:39:19Z","updated_at":"2015-07-07T15:20:35Z","closed_at":"2015-07-07T15:20:35Z","body":"If any any of the kwargs are property names, EventDispatcher sets those property to the kwargs values. However, if the key is not a property, it does not forward it with super, but just eats it up.\r\n\r\nFor example:\r\n\r\n```\r\nfrom kivy.event import EventDispatcher\r\nclass MyColor(object):\r\n\r\n    def __init__(self, color='blue', **kwargs):\r\n        print 'color is {}'.format(color)\r\n\r\nclass Coloring(EventDispatcher, MyColor):\r\n    pass\r\n\r\ncolor = Coloring(color='green')\r\n```\r\nprints `color is blue`. rather than green.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8607842-eventdispatcher-eats-up-all-kwargs-even-if-it-did-not-process-it?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}