Skip to content

Conversation

@technige
Copy link
Contributor

@technige technige commented Mar 9, 2016

This change simplifies the cursor to become more idiomatic for Python users. ResultCursor instances now conform to the iteration protocol (with __next__ and __iter__) and a few other methods have been removed. Specifically, at_end can be replaced with detection of StopIteration or presence of summary and position can be replace with enumerate.

Have also fixed the command line interface while I was at it.

jakewins added a commit that referenced this pull request Mar 11, 2016
@jakewins jakewins merged commit 5a5b80a into 1.0 Mar 11, 2016
@jakewins jakewins deleted the 1.0-idiomatic-iteration branch March 11, 2016 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants