{"action":"created","issue":{"url":"https://api.github.com/repos/gdanezis/petlib/issues/2","labels_url":"https://api.github.com/repos/gdanezis/petlib/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gdanezis/petlib/issues/2/comments","events_url":"https://api.github.com/repos/gdanezis/petlib/issues/2/events","html_url":"https://github.com/gdanezis/petlib/issues/2","id":55106130,"number":2,"title":"Bn's constructor does not check its parameter is a number","user":{"login":"Sidnioulz","id":5108577,"avatar_url":"https://avatars.githubusercontent.com/u/5108577?v=3","gravatar_id":"","url":"https://api.github.com/users/Sidnioulz","html_url":"https://github.com/Sidnioulz","followers_url":"https://api.github.com/users/Sidnioulz/followers","following_url":"https://api.github.com/users/Sidnioulz/following{/other_user}","gists_url":"https://api.github.com/users/Sidnioulz/gists{/gist_id}","starred_url":"https://api.github.com/users/Sidnioulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sidnioulz/subscriptions","organizations_url":"https://api.github.com/users/Sidnioulz/orgs","repos_url":"https://api.github.com/users/Sidnioulz/repos","events_url":"https://api.github.com/users/Sidnioulz/events{/privacy}","received_events_url":"https://api.github.com/users/Sidnioulz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-22T02:17:16Z","updated_at":"2015-03-16T21:05:43Z","closed_at":"2015-03-16T21:05:43Z","body":"Which results in `Bn.__init__` serving arbitrary objects to `abs()`. According to the doc, the following types are acceptable:\r\n\r\n> \"The argument may be a plain or long integer or a floating point number. If the argument is a complex number, its magnitude is returned.\"\r\n\r\nYou could either make `Bn` be an `int` or `float`,  make its constructor explicitely reject wrong input types, or build a copy constructor (is that even a thing in Python!?)."},"comment":{"url":"https://api.github.com/repos/gdanezis/petlib/issues/comments/81938883","html_url":"https://github.com/gdanezis/petlib/issues/2#issuecomment-81938883","issue_url":"https://api.github.com/repos/gdanezis/petlib/issues/2","id":81938883,"user":{"login":"gdanezis","id":4999882,"avatar_url":"https://avatars.githubusercontent.com/u/4999882?v=3","gravatar_id":"","url":"https://api.github.com/users/gdanezis","html_url":"https://github.com/gdanezis","followers_url":"https://api.github.com/users/gdanezis/followers","following_url":"https://api.github.com/users/gdanezis/following{/other_user}","gists_url":"https://api.github.com/users/gdanezis/gists{/gist_id}","starred_url":"https://api.github.com/users/gdanezis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdanezis/subscriptions","organizations_url":"https://api.github.com/users/gdanezis/orgs","repos_url":"https://api.github.com/users/gdanezis/repos","events_url":"https://api.github.com/users/gdanezis/events{/privacy}","received_events_url":"https://api.github.com/users/gdanezis/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T21:05:43Z","updated_at":"2015-03-16T21:05:43Z","body":"Dealt with this in a pythonic way."}}