{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/4202","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/4202/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/4202/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/4202/events","html_url":"https://github.com/kivy/kivy/pull/4202","id":149835376,"number":4202,"title":"StringProperty: convert None to empty string","user":{"login":"kived","id":1126441,"avatar_url":"https://avatars.githubusercontent.com/u/1126441?v=3","gravatar_id":"","url":"https://api.github.com/users/kived","html_url":"https://github.com/kived","followers_url":"https://api.github.com/users/kived/followers","following_url":"https://api.github.com/users/kived/following{/other_user}","gists_url":"https://api.github.com/users/kived/gists{/gist_id}","starred_url":"https://api.github.com/users/kived/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kived/subscriptions","organizations_url":"https://api.github.com/users/kived/orgs","repos_url":"https://api.github.com/users/kived/repos","events_url":"https://api.github.com/users/kived/events{/privacy}","received_events_url":"https://api.github.com/users/kived/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T17:32:22Z","updated_at":"2016-04-20T18:33:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kivy/kivy/pulls/4202","html_url":"https://github.com/kivy/kivy/pull/4202","diff_url":"https://github.com/kivy/kivy/pull/4202.diff","patch_url":"https://github.com/kivy/kivy/pull/4202.patch"},"body":"Makes using `StringProperty` easier. No more `text: root.my_text or ''`. Option `none_is_empty` defaults to `True` but can be disabled, and does nothing if `allownone` is `True`."},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/212549525","html_url":"https://github.com/kivy/kivy/pull/4202#issuecomment-212549525","issue_url":"https://api.github.com/repos/kivy/kivy/issues/4202","id":212549525,"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},"created_at":"2016-04-20T18:33:59Z","updated_at":"2016-04-20T18:33:59Z","body":"I don't fully understand where this would be useful. When `allownone` is `False` this would only work for the initial case where the default value was set to `None` explicitly (later you cannot even set it to `None`), because the default is still the empty string. If you don't want to do `text: root.my_text or ''` why set `my_text` to default to `None` in the first place? Just leave it empty or set it to the empty string. In Kivy itself, I don't think we ever set it to None explicitly.\r\n\r\nAlso, I often set the default value to `None` and I'd rather not have to also set this new parameter `none_is_empty` to `False`."}}