Skip to content

Fix StopIteration exception related issue#115

Merged
asakatida merged 3 commits intomasterfrom
fix/stop-iteration-exception
Apr 26, 2019
Merged

Fix StopIteration exception related issue#115
asakatida merged 3 commits intomasterfrom
fix/stop-iteration-exception

Conversation

@gabor-boros
Copy link
Copy Markdown
Member

@gabor-boros gabor-boros commented Apr 25, 2019

Reason for the change
#110

Description
Due to PEP 479 StopIteration handling inside generators. This change fixes the "issue" by returning if a stop iteration raised.

Code examples

Python 3.7.3 (default, Mar 27 2019, 09:23:15) 
[Clang 10.0.1 (clang-1001.0.46.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from rethinkdb import r
>>> r.now()
<RqlQuery instance: r.now() >

Checklist

  • Unit tests created/modified
  • Integration tests created/modified

References
https://www.python.org/dev/peps/pep-0479/

@gabor-boros gabor-boros added the bug Something isn't working label Apr 25, 2019
@gabor-boros gabor-boros added this to the Release 2.4.2 milestone Apr 25, 2019
@gabor-boros gabor-boros self-assigned this Apr 25, 2019
@gabor-boros gabor-boros changed the title Fix StopIteration exception Fix StopIteration exception related issue Apr 25, 2019
@rethinkdb rethinkdb deleted a comment Apr 26, 2019
@gabor-boros gabor-boros requested a review from asakatida April 26, 2019 08:36
@asakatida asakatida merged commit efd62ee into master Apr 26, 2019
@gabor-boros gabor-boros deleted the fix/stop-iteration-exception branch August 30, 2019 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants