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

Broken yield parsing in python 2.7 #751

Closed
kylec1 opened this issue Aug 17, 2015 · 2 comments
Closed

Broken yield parsing in python 2.7 #751

kylec1 opened this issue Aug 17, 2015 · 2 comments

Comments

@kylec1
Copy link
Contributor

kylec1 commented Aug 17, 2015

Code:

 def wrapped(*args, **kwargs):
      with new_scope(g, r):
            ret = yield f(*args, **kwargs)

results in error: Parse error before "f".

@o11c
Copy link
Contributor

o11c commented Aug 17, 2015

Duplicate of #498 which I am already working on.

@JukkaL JukkaL added the hack label Aug 17, 2015
@JukkaL
Copy link
Collaborator

JukkaL commented Aug 19, 2015

We are are currently blocked on this, so I'll implement a quick hack the lets mypy process code such as the example above, but doesn't actually do useful type checking.

JukkaL added a commit that referenced this issue Aug 19, 2015
Still no real type checking, but at least mypy can process
functions with yield expression.

Closes #751.
@JukkaL JukkaL closed this as completed Aug 19, 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

No branches or pull requests

3 participants