changed cursor() from recursion to while loop #284
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#284
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "non-recursive-cursor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this addresses issue #283
ps: happy for discussion on this...
Calling
while True:would force iteration though, and give no control over content actually being yielded by the generator, correct?What do you mean by "force iteration through"? If it doesn't need to make a second api call,
StopIterationis raised and it never loops...Functionally it's identical to how it is using recursion. Instead of calling
cursor()again, it loops until aStopIteration(or other exception) is generated.Hrm, I think I just was confused. I'll pull this branch hopefully this weekend to test and get it merged in if all is good! :) Thanks!