Conversation
@ddfisher Bu-uuuuump? |
Sorry for being slow to review this! I was hoping to get to it this week but had some other things take precedence. It's at the top of my list for next week! |
This PR has made me realize that the typed_ast update process needs to be nailed down a bit better -- I should have something written up about that shortly, but this PR is blocking on that happening, sorry! |
Any updates here? It would be great to have f-strings supported in mypy before CPython 3.6 final comes out. I can help if necessary. |
Python 3.6 is here, and...
What can I do to help? |
@mbdevpl I guess you mix 3.5 and 3.6? |
functools.py is part of standard Python library and is unrelated to typed_ast. A common reason for syntax error in this file is that you're running the Python 3.5 interpreter and using Python 3.6's library. How did you run your program? |
So, first of all, I compiled Python 3.6.0 from source, and installed using I think the problem at hand is not that I mix 3.5 and 3.6, but that this PR is still not merged, hence this error. And thus my question, what can I do to help in bringing f-strings to typed_ast? |
Patience please. See python/mypy#2622 |
@gvanrossum Thank you for that reference. Ok, I'll just wait then. |
Fstrings are now supported. Sorry for the long wait! In the process of reviewing this PR, I realized that porting new Python features onto typed_ast was not the best way to go about things, because pull requests like this are difficult to review, and because typed_ast was turning into a mishmash of Python 3.5 and Python 3.6 syntax (both in parsing and in the produced AST). In lieu of merging this PR, I've instead rebuilt typed_ast on top of the Python 3.6 ast module. I've also formalized the update process for the future, so there shouldn't be such long waits again (see here). I appreciate your working in putting up this PR, @kirbyfan64 -- sorry it's not getting landed. |
no worries, thanks for your work, I can now run mypy again on all my code \o/ |
I'm just happy that f-strings finally work!! :D |
Optionally disable contentSize frame header
Well, this was a bit more complicated than I thought...