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

setup() really wants to be a generator #48

Open
agrover opened this issue Jan 24, 2014 · 0 comments
Open

setup() really wants to be a generator #48

agrover opened this issue Jan 24, 2014 · 0 comments

Comments

@agrover
Copy link
Contributor

agrover commented Jan 24, 2014

err_func is a hack -- it's more natural to return nonfatal error messages with yield!

Unfortunately, py 2.7 doesn't have 'yield from', which would let us convert without ugly for loops every time we call another setup(). This will be a nice cleanup once we are py3-only.

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

No branches or pull requests

1 participant