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
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
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy