{"action":"opened","number":81,"pull_request":{"url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/81","id":32383189,"html_url":"https://github.com/sigmavirus24/requests-toolbelt/pull/81","diff_url":"https://github.com/sigmavirus24/requests-toolbelt/pull/81.diff","patch_url":"https://github.com/sigmavirus24/requests-toolbelt/pull/81.patch","issue_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/81","number":81,"state":"open","locked":false,"title":"Use a len attribute instead of the __len__ method","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"body":"On 32-bit architecture, the size of the integer returned by the __len__\r\nmethod are restricted to the maximum size of an integer in C. Any number\r\nthat is larger than 2**32 results in an OverflowError.\r\n\r\nrequests uses a utility method to determine the length of a body of a\r\nrequest. By setting `len` as an attribute, we can still take advantage of\r\nsuper_len's behaviour and we can hack around the OverflowError.\r\n\r\nCloses #80","created_at":"2015-04-01T01:56:14Z","updated_at":"2015-04-01T01:56:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/81/commits","review_comments_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/81/comments","review_comment_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/81/comments","statuses_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/statuses/c02e7f1b90fd5ec05b49a6c46c867c66c7f29257","head":{"label":"sigmavirus24:bug/80","ref":"bug/80","sha":"c02e7f1b90fd5ec05b49a6c46c867c66c7f29257","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"repo":{"id":15515181,"name":"requests-toolbelt","full_name":"sigmavirus24/requests-toolbelt","owner":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigmavirus24/requests-toolbelt","description":"A toolbelt of useful classes and functions to be used with python-requests","fork":false,"url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt","forks_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/forks","keys_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/teams","hooks_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/hooks","issue_events_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/events{/number}","events_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/events","assignees_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/assignees{/user}","branches_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/branches{/branch}","tags_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/tags","blobs_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/statuses/{sha}","languages_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/languages","stargazers_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/stargazers","contributors_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/contributors","subscribers_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/subscribers","subscription_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/subscription","commits_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/contents/{+path}","compare_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/merges","archive_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/downloads","issues_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues{/number}","pulls_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls{/number}","milestones_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/milestones{/number}","notifications_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/labels{/name}","releases_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/releases{/id}","created_at":"2013-12-29T21:19:08Z","updated_at":"2015-03-29T20:36:07Z","pushed_at":"2015-04-01T01:56:14Z","git_url":"git://github.com/sigmavirus24/requests-toolbelt.git","ssh_url":"git@github.com:sigmavirus24/requests-toolbelt.git","clone_url":"https://github.com/sigmavirus24/requests-toolbelt.git","svn_url":"https://github.com/sigmavirus24/requests-toolbelt","homepage":"https://toolbelt.readthedocs.org","size":1448,"stargazers_count":164,"watchers_count":164,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":19,"forks":24,"open_issues":19,"watchers":164,"default_branch":"master"}},"base":{"label":"sigmavirus24:master","ref":"master","sha":"710e35e9db7f8806d4eff4af33c8283f507c8f22","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"repo":{"id":15515181,"name":"requests-toolbelt","full_name":"sigmavirus24/requests-toolbelt","owner":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigmavirus24/requests-toolbelt","description":"A toolbelt of useful classes and functions to be used with python-requests","fork":false,"url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt","forks_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/forks","keys_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/teams","hooks_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/hooks","issue_events_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/events{/number}","events_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/events","assignees_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/assignees{/user}","branches_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/branches{/branch}","tags_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/tags","blobs_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/statuses/{sha}","languages_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/languages","stargazers_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/stargazers","contributors_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/contributors","subscribers_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/subscribers","subscription_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/subscription","commits_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/contents/{+path}","compare_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/merges","archive_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/downloads","issues_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues{/number}","pulls_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls{/number}","milestones_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/milestones{/number}","notifications_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/labels{/name}","releases_url":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/releases{/id}","created_at":"2013-12-29T21:19:08Z","updated_at":"2015-03-29T20:36:07Z","pushed_at":"2015-04-01T01:56:14Z","git_url":"git://github.com/sigmavirus24/requests-toolbelt.git","ssh_url":"git@github.com:sigmavirus24/requests-toolbelt.git","clone_url":"https://github.com/sigmavirus24/requests-toolbelt.git","svn_url":"https://github.com/sigmavirus24/requests-toolbelt","homepage":"https://toolbelt.readthedocs.org","size":1448,"stargazers_count":164,"watchers_count":164,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":19,"forks":24,"open_issues":19,"watchers":164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/81"},"html":{"href":"https://github.com/sigmavirus24/requests-toolbelt/pull/81"},"issue":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/81"},"comments":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/sigmavirus24/requests-toolbelt/statuses/c02e7f1b90fd5ec05b49a6c46c867c66c7f29257"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":44,"deletions":26,"changed_files":4}}