{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1467","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1467/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1467/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1467/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/issues/1467","id":133439559,"number":1467,"title":"bucket.list_blobs(max_results=n) has no effect","user":{"login":"jlowin","id":153965,"avatar_url":"https://avatars.githubusercontent.com/u/153965?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowin","html_url":"https://github.com/jlowin","followers_url":"https://api.github.com/users/jlowin/followers","following_url":"https://api.github.com/users/jlowin/following{/other_user}","gists_url":"https://api.github.com/users/jlowin/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowin/subscriptions","organizations_url":"https://api.github.com/users/jlowin/orgs","repos_url":"https://api.github.com/users/jlowin/repos","events_url":"https://api.github.com/users/jlowin/events{/privacy}","received_events_url":"https://api.github.com/users/jlowin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/labels/storage","name":"storage","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-13T15:02:00Z","updated_at":"2016-02-15T19:13:09Z","closed_at":null,"body":"passing `max_results=5` to `bucket.list_blobs()` appears to have no effect; all blobs are returned in the `BlobIterator`"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/comments/184350748","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/issues/1467#issuecomment-184350748","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1467","id":184350748,"user":{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T19:13:09Z","updated_at":"2016-02-15T19:13:09Z","body":"Luckily, it's our fault (not the `storage` backend API). We iterate **past** the `maxResults` even when we don't mean to.\r\n\r\nA short term fix would be for you to use the iterator manually:\r\n\r\n```python\r\nresponse = blob_iter.get_next_page_response()\r\nresults = list(blob_iter.get_items_from_response(response))\r\n```\r\n\r\nThanks a lot for bringing it to our attention!"}}