You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Errors are suppressed in generator comprehensions #32
>>> list(i for x in range(10))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 1, in <genexpr>
NameError: name 'i' is not defined
Activity
corona10 commentedon Nov 24, 2018
@ncw I will take a look this issue
corona10 commentedon Nov 24, 2018
ncw commentedon Nov 27, 2018
@corona10 are you getting anywhere with this? Do you need help?
corona10 commentedon Nov 28, 2018
@ncw
gpython/py/generator.go
Line 100 in 2609237
Well, I tracked the code and I found that something issue in this side.
But I don't know which is the main reason for this issue yet.
So if you already solve this issue, Then please upload a PR for this issue :)
I can learn something from your PR.
ncw commentedon Nov 28, 2018
I haven't figured it out either!
But yes, it is probably something to do with making a new Vm Frame and the errors being suppressed there rather than propagated.
corona10 commentedon Nov 28, 2018
@ncw
I found the main reason for this bug.
I will upload the PR soon
ncw commentedon Nov 28, 2018
Great. Don't forget a failing test case :-)