Skip to content

"yield from" fixes - #1247

Closed
pfalcon wants to merge 3 commits into
micropython:masterfrom
pfalcon:yield-from-fixes
Closed

pfalcon wants to merge 3 commits into
micropython:masterfrom
pfalcon:yield-from-fixes

Conversation

@pfalcon

@pfalcon pfalcon commented May 10, 2015

Copy link
Copy Markdown
Contributor

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 3 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
Copy Markdown

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
Copy Markdown
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.

3 participants