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

support yield statements inside lambdas #833

Merged
merged 2 commits into from
Aug 14, 2015
Merged

Conversation

undingen
Copy link
Contributor

No description provided.

@tjhance
Copy link
Contributor

tjhance commented Aug 13, 2015

this is a thing?

wut

@@ -1650,7 +1650,7 @@ extern "C" int PyNumber_Check(PyObject* obj) noexcept {
assert(obj && obj->cls);

// Our check, since we don't currently fill in tp_as_number:
if (PyFloat_Check(obj) || PyFloat_Check(obj) || PyFloat_Check(obj))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks!

@kmod
Copy link
Collaborator

kmod commented Aug 14, 2015

wow, I am very surprised that this works.

kmod added a commit that referenced this pull request Aug 14, 2015
support yield statements inside lambdas
@kmod kmod merged commit 8e45b42 into pyston:master Aug 14, 2015
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