{"action":"created","issue":{"url":"https://api.github.com/repos/python-babel/babel/issues/410","repository_url":"https://api.github.com/repos/python-babel/babel","labels_url":"https://api.github.com/repos/python-babel/babel/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/python-babel/babel/issues/410/comments","events_url":"https://api.github.com/repos/python-babel/babel/issues/410/events","html_url":"https://github.com/python-babel/babel/pull/410","id":157375660,"number":410,"title":"Allow full control on Decimal behaviour","user":{"login":"etanol","id":85804,"avatar_url":"https://avatars.githubusercontent.com/u/85804?v=3","gravatar_id":"","url":"https://api.github.com/users/etanol","html_url":"https://github.com/etanol","followers_url":"https://api.github.com/users/etanol/followers","following_url":"https://api.github.com/users/etanol/following{/other_user}","gists_url":"https://api.github.com/users/etanol/gists{/gist_id}","starred_url":"https://api.github.com/users/etanol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etanol/subscriptions","organizations_url":"https://api.github.com/users/etanol/orgs","repos_url":"https://api.github.com/users/etanol/repos","events_url":"https://api.github.com/users/etanol/events{/privacy}","received_events_url":"https://api.github.com/users/etanol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python-babel/babel/labels/pending%20review","name":"pending review","color":"ededed"},{"url":"https://api.github.com/repos/python-babel/babel/labels/size/L","name":"size/L","color":"FF8888"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-29T08:34:15Z","updated_at":"2016-05-29T14:52:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/python-babel/babel/pulls/410","html_url":"https://github.com/python-babel/babel/pull/410","diff_url":"https://github.com/python-babel/babel/pull/410.diff","patch_url":"https://github.com/python-babel/babel/pull/410.patch"},"body":"It turns out that the solution to allow the user to change the rounding mode was way simpler than expected at the beginning.\r\n\r\nAccording to [UTS #35][1] sections [3.3][2] and [3.7][3], the user is allowed to change rounding mode.  But the default should be _half even_ mode.  It turns out that this is the default Python rounding mode in all decimal implementations, so the solution was to stop indicating the rounding mode on `Decimal` operations.\r\n\r\nSome documentation has been added to show how to properly change the rounding mode and other `Context` parameters.\r\n\r\nTherefore, this should fix #90 \r\n\r\n[1]: http://www.unicode.org/reports/tr35/tr35-numbers.html\r\n[2]: http://www.unicode.org/reports/tr35/tr35-numbers.html#Formatting\r\n[3]: http://www.unicode.org/reports/tr35/tr35-numbers.html#Rounding"},"comment":{"url":"https://api.github.com/repos/python-babel/babel/issues/comments/222364721","html_url":"https://github.com/python-babel/babel/pull/410#issuecomment-222364721","issue_url":"https://api.github.com/repos/python-babel/babel/issues/410","id":222364721,"user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T14:52:28Z","updated_at":"2016-05-29T14:52:28Z","body":"ack 6238f66 8341064 f12e975\r\n"}}
{"actor":{"display_login":"akx"}}