Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"yield from" fixes #1247

Closed
wants to merge 3 commits into from
Closed

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented May 10, 2015

Mostly backed by test_pep380.py from CPython (which is to become part of micropython-lib). A testcase added is additional issue discovered when porting test_pep380.py.

Paul Sokolovsky added 2 commits May 11, 2015 02:59
MP_OBJ_STOP_ITERATION is equivalent of raising StopIteration, except
mp_vm_return_kind_t for it is "yield".
…g is None.

Unfortunately, MP_OBJ_STOP_ITERATION doesn't have means to pass an associated
value, so we can't optimize StopIteration exception with (non-None) argument
to MP_OBJ_STOP_ITERATION.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 93.45% when pulling d96a2f2 on pfalcon:yield-from-fixes into a7c02c4 on micropython:master.

@dpgeorge
Copy link
Member

Merged in 6738c1d.

@dpgeorge dpgeorge closed this May 11, 2015
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Oct 16, 2018
tannewt added a commit to tannewt/circuitpython that referenced this pull request Oct 16, 2018
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.

None yet

3 participants