{"action":"opened","number":110,"pull_request":{"url":"https://api.github.com/repos/tqdm/tqdm/pulls/110","id":56645126,"html_url":"https://github.com/tqdm/tqdm/pull/110","diff_url":"https://github.com/tqdm/tqdm/pull/110.diff","patch_url":"https://github.com/tqdm/tqdm/pull/110.patch","issue_url":"https://api.github.com/repos/tqdm/tqdm/issues/110","number":110,"state":"open","locked":false,"title":"Raise error on tqdm.update(n) where n<1","user":{"login":"Socialery","id":3059973,"avatar_url":"https://avatars.githubusercontent.com/u/3059973?v=3","gravatar_id":"","url":"https://api.github.com/users/Socialery","html_url":"https://github.com/Socialery","followers_url":"https://api.github.com/users/Socialery/followers","following_url":"https://api.github.com/users/Socialery/following{/other_user}","gists_url":"https://api.github.com/users/Socialery/gists{/gist_id}","starred_url":"https://api.github.com/users/Socialery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Socialery/subscriptions","organizations_url":"https://api.github.com/users/Socialery/orgs","repos_url":"https://api.github.com/users/Socialery/repos","events_url":"https://api.github.com/users/Socialery/events{/privacy}","received_events_url":"https://api.github.com/users/Socialery/received_events","type":"User","site_admin":false},"body":"I know this is a bit of an opinion/pedantic-heavy change, but it is something that threw me off. `.update(-5)` will increase the progress by 1, which I don't think is desired by anyone who enters that.\r\n\r\nRegardless if whether a progress bar can decrease or not (which I'm assuming is currently \"not\"), if someone types in `.update(-5)` or any other negative number, they do not expect an increase, and so it is unexpected behavior unless that person reads the source-code of tqdm.\r\n\r\nIf this change isn't accepted, I would suggest either adding support for decreasing the value, or noting the behavior in the documentation.","created_at":"2016-01-20T18:07:07Z","updated_at":"2016-01-20T18:07:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tqdm/tqdm/pulls/110/commits","review_comments_url":"https://api.github.com/repos/tqdm/tqdm/pulls/110/comments","review_comment_url":"https://api.github.com/repos/tqdm/tqdm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tqdm/tqdm/issues/110/comments","statuses_url":"https://api.github.com/repos/tqdm/tqdm/statuses/1928a7ec44cc53e8dc9e24d8f1f6f1fe48a48193","head":{"label":"Socialery:patch-2","ref":"patch-2","sha":"1928a7ec44cc53e8dc9e24d8f1f6f1fe48a48193","user":{"login":"Socialery","id":3059973,"avatar_url":"https://avatars.githubusercontent.com/u/3059973?v=3","gravatar_id":"","url":"https://api.github.com/users/Socialery","html_url":"https://github.com/Socialery","followers_url":"https://api.github.com/users/Socialery/followers","following_url":"https://api.github.com/users/Socialery/following{/other_user}","gists_url":"https://api.github.com/users/Socialery/gists{/gist_id}","starred_url":"https://api.github.com/users/Socialery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Socialery/subscriptions","organizations_url":"https://api.github.com/users/Socialery/orgs","repos_url":"https://api.github.com/users/Socialery/repos","events_url":"https://api.github.com/users/Socialery/events{/privacy}","received_events_url":"https://api.github.com/users/Socialery/received_events","type":"User","site_admin":false},"repo":{"id":39062251,"name":"tqdm","full_name":"Socialery/tqdm","owner":{"login":"Socialery","id":3059973,"avatar_url":"https://avatars.githubusercontent.com/u/3059973?v=3","gravatar_id":"","url":"https://api.github.com/users/Socialery","html_url":"https://github.com/Socialery","followers_url":"https://api.github.com/users/Socialery/followers","following_url":"https://api.github.com/users/Socialery/following{/other_user}","gists_url":"https://api.github.com/users/Socialery/gists{/gist_id}","starred_url":"https://api.github.com/users/Socialery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Socialery/subscriptions","organizations_url":"https://api.github.com/users/Socialery/orgs","repos_url":"https://api.github.com/users/Socialery/repos","events_url":"https://api.github.com/users/Socialery/events{/privacy}","received_events_url":"https://api.github.com/users/Socialery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Socialery/tqdm","description":"Your python progress bar","fork":true,"url":"https://api.github.com/repos/Socialery/tqdm","forks_url":"https://api.github.com/repos/Socialery/tqdm/forks","keys_url":"https://api.github.com/repos/Socialery/tqdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Socialery/tqdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Socialery/tqdm/teams","hooks_url":"https://api.github.com/repos/Socialery/tqdm/hooks","issue_events_url":"https://api.github.com/repos/Socialery/tqdm/issues/events{/number}","events_url":"https://api.github.com/repos/Socialery/tqdm/events","assignees_url":"https://api.github.com/repos/Socialery/tqdm/assignees{/user}","branches_url":"https://api.github.com/repos/Socialery/tqdm/branches{/branch}","tags_url":"https://api.github.com/repos/Socialery/tqdm/tags","blobs_url":"https://api.github.com/repos/Socialery/tqdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Socialery/tqdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Socialery/tqdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Socialery/tqdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Socialery/tqdm/statuses/{sha}","languages_url":"https://api.github.com/repos/Socialery/tqdm/languages","stargazers_url":"https://api.github.com/repos/Socialery/tqdm/stargazers","contributors_url":"https://api.github.com/repos/Socialery/tqdm/contributors","subscribers_url":"https://api.github.com/repos/Socialery/tqdm/subscribers","subscription_url":"https://api.github.com/repos/Socialery/tqdm/subscription","commits_url":"https://api.github.com/repos/Socialery/tqdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Socialery/tqdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Socialery/tqdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Socialery/tqdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Socialery/tqdm/contents/{+path}","compare_url":"https://api.github.com/repos/Socialery/tqdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Socialery/tqdm/merges","archive_url":"https://api.github.com/repos/Socialery/tqdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Socialery/tqdm/downloads","issues_url":"https://api.github.com/repos/Socialery/tqdm/issues{/number}","pulls_url":"https://api.github.com/repos/Socialery/tqdm/pulls{/number}","milestones_url":"https://api.github.com/repos/Socialery/tqdm/milestones{/number}","notifications_url":"https://api.github.com/repos/Socialery/tqdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Socialery/tqdm/labels{/name}","releases_url":"https://api.github.com/repos/Socialery/tqdm/releases{/id}","created_at":"2015-07-14T08:06:19Z","updated_at":"2015-07-14T08:06:19Z","pushed_at":"2016-01-20T18:01:12Z","git_url":"git://github.com/Socialery/tqdm.git","ssh_url":"git@github.com:Socialery/tqdm.git","clone_url":"https://github.com/Socialery/tqdm.git","svn_url":"https://github.com/Socialery/tqdm","homepage":"","size":1544,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tqdm:master","ref":"master","sha":"a3c2f6bd19ef73c49b7f31d7eccb5ea060f24740","user":{"login":"tqdm","id":12731565,"avatar_url":"https://avatars.githubusercontent.com/u/12731565?v=3","gravatar_id":"","url":"https://api.github.com/users/tqdm","html_url":"https://github.com/tqdm","followers_url":"https://api.github.com/users/tqdm/followers","following_url":"https://api.github.com/users/tqdm/following{/other_user}","gists_url":"https://api.github.com/users/tqdm/gists{/gist_id}","starred_url":"https://api.github.com/users/tqdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqdm/subscriptions","organizations_url":"https://api.github.com/users/tqdm/orgs","repos_url":"https://api.github.com/users/tqdm/repos","events_url":"https://api.github.com/users/tqdm/events{/privacy}","received_events_url":"https://api.github.com/users/tqdm/received_events","type":"Organization","site_admin":false},"repo":{"id":36804486,"name":"tqdm","full_name":"tqdm/tqdm","owner":{"login":"tqdm","id":12731565,"avatar_url":"https://avatars.githubusercontent.com/u/12731565?v=3","gravatar_id":"","url":"https://api.github.com/users/tqdm","html_url":"https://github.com/tqdm","followers_url":"https://api.github.com/users/tqdm/followers","following_url":"https://api.github.com/users/tqdm/following{/other_user}","gists_url":"https://api.github.com/users/tqdm/gists{/gist_id}","starred_url":"https://api.github.com/users/tqdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqdm/subscriptions","organizations_url":"https://api.github.com/users/tqdm/orgs","repos_url":"https://api.github.com/users/tqdm/repos","events_url":"https://api.github.com/users/tqdm/events{/privacy}","received_events_url":"https://api.github.com/users/tqdm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tqdm/tqdm","description":"A fast, extensible progress bar for Python","fork":false,"url":"https://api.github.com/repos/tqdm/tqdm","forks_url":"https://api.github.com/repos/tqdm/tqdm/forks","keys_url":"https://api.github.com/repos/tqdm/tqdm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tqdm/tqdm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tqdm/tqdm/teams","hooks_url":"https://api.github.com/repos/tqdm/tqdm/hooks","issue_events_url":"https://api.github.com/repos/tqdm/tqdm/issues/events{/number}","events_url":"https://api.github.com/repos/tqdm/tqdm/events","assignees_url":"https://api.github.com/repos/tqdm/tqdm/assignees{/user}","branches_url":"https://api.github.com/repos/tqdm/tqdm/branches{/branch}","tags_url":"https://api.github.com/repos/tqdm/tqdm/tags","blobs_url":"https://api.github.com/repos/tqdm/tqdm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tqdm/tqdm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tqdm/tqdm/git/refs{/sha}","trees_url":"https://api.github.com/repos/tqdm/tqdm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tqdm/tqdm/statuses/{sha}","languages_url":"https://api.github.com/repos/tqdm/tqdm/languages","stargazers_url":"https://api.github.com/repos/tqdm/tqdm/stargazers","contributors_url":"https://api.github.com/repos/tqdm/tqdm/contributors","subscribers_url":"https://api.github.com/repos/tqdm/tqdm/subscribers","subscription_url":"https://api.github.com/repos/tqdm/tqdm/subscription","commits_url":"https://api.github.com/repos/tqdm/tqdm/commits{/sha}","git_commits_url":"https://api.github.com/repos/tqdm/tqdm/git/commits{/sha}","comments_url":"https://api.github.com/repos/tqdm/tqdm/comments{/number}","issue_comment_url":"https://api.github.com/repos/tqdm/tqdm/issues/comments{/number}","contents_url":"https://api.github.com/repos/tqdm/tqdm/contents/{+path}","compare_url":"https://api.github.com/repos/tqdm/tqdm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tqdm/tqdm/merges","archive_url":"https://api.github.com/repos/tqdm/tqdm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tqdm/tqdm/downloads","issues_url":"https://api.github.com/repos/tqdm/tqdm/issues{/number}","pulls_url":"https://api.github.com/repos/tqdm/tqdm/pulls{/number}","milestones_url":"https://api.github.com/repos/tqdm/tqdm/milestones{/number}","notifications_url":"https://api.github.com/repos/tqdm/tqdm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tqdm/tqdm/labels{/name}","releases_url":"https://api.github.com/repos/tqdm/tqdm/releases{/id}","created_at":"2015-06-03T13:13:14Z","updated_at":"2016-01-20T17:39:49Z","pushed_at":"2016-01-13T11:23:55Z","git_url":"git://github.com/tqdm/tqdm.git","ssh_url":"git@github.com:tqdm/tqdm.git","clone_url":"https://github.com/tqdm/tqdm.git","svn_url":"https://github.com/tqdm/tqdm","homepage":"https://pypi.python.org/pypi/tqdm","size":1657,"stargazers_count":2127,"watchers_count":2127,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":13,"forks":80,"open_issues":13,"watchers":2127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tqdm/tqdm/pulls/110"},"html":{"href":"https://github.com/tqdm/tqdm/pull/110"},"issue":{"href":"https://api.github.com/repos/tqdm/tqdm/issues/110"},"comments":{"href":"https://api.github.com/repos/tqdm/tqdm/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/tqdm/tqdm/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/tqdm/tqdm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tqdm/tqdm/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/tqdm/tqdm/statuses/1928a7ec44cc53e8dc9e24d8f1f6f1fe48a48193"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}