Skip to content

objgenerator: Implement exception handling for generators #358

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

Merged
merged 3 commits into from
Mar 22, 2014

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Mar 22, 2014

This is required to properly handle exceptions across yields.

This fixes initial issue identified in #243.

@pfalcon pfalcon changed the title objgenerator: Keep exception stack within generator object, like value stack. objgenerator: Implement exception handling for generators Mar 22, 2014
@pfalcon
Copy link
Contributor Author

pfalcon commented Mar 22, 2014

Ok, 2 additional patches implement throwing exception out of and into a generator. This kinda concludes core exception handling implementation for generators. though there're definitely finer details to tackle.

Last patch, where .throw() implemented, worth a special attention - I had to mark a func arg as volatile for example.

dpgeorge added a commit that referenced this pull request Mar 22, 2014
objgenerator: Implement exception handling for generators
@dpgeorge dpgeorge merged commit 463997f into micropython:master Mar 22, 2014
@pfalcon pfalcon deleted the gen-exc-stack branch June 6, 2014 19:04
tannewt added a commit to tannewt/circuitpython that referenced this pull request Oct 25, 2017
tannewt added a commit to tannewt/circuitpython that referenced this pull request Nov 7, 2017
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.

2 participants