google / google/apitools

list_pager.YieldFromList with negative limit returns all data

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
157
Forks
131
PR merge metrics
No merged PRs in 30d

Description

E.g. bool(-1) return True, so the while condition is always true, and the loop will only end when page_token == None
Not sure if this is WAI, I would think not, and expected the method to return nothing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.