Skip to content
This repository has been archived by the owner. It is now read-only.

Fix YIELD_FROM for Python 3.6+ #646

Merged
merged 1 commit into from Aug 23, 2017
Merged

Conversation

@abonie
Copy link
Contributor

@abonie abonie commented Aug 22, 2017

At the end of executing YIELD_FROM opcode instruction counter is
decremented to point at the previous instruction. Since Python 3.6 is
using 2-byte opcodes we have to decrement instruction counter by 2.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct
At the end of executing YIELD_FROM opcode instruction counter is
decremented to point at the previos instruction. Since Python 3.6 is
using 2-byte opcodes we have to decrement instruction counter by 2.
@phildini phildini merged commit 439bebf into beeware:master Aug 23, 2017
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants