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

Disallow TAGSTRING_START after the conversion character in an f-string #67

Open
wants to merge 1 commit into
base: tag-strings-v2
Choose a base branch
from

Conversation

lysnikolaou
Copy link

@lysnikolaou lysnikolaou commented Apr 27, 2023

Opening this, just so you know what I meant in jimbaker/tagstr#22 (comment) and because I'll be on a plane the whole day tomorrow.

This PR solves 3/5 failures in test_fstring with the other two being related to what I wrote in jimbaker/tagstr#22 (comment).

@gvanrossum
Copy link
Owner

Nice, although this does make the code more complicated. It's already quite hard to follow what's going on -- I was mostly "programming by random modification" in the tag-strings-v2 branch.

@lysnikolaou
Copy link
Author

That's true. Maybe it isn't worth it?

Either way, one of the thing on my to-do list is to start adding comments to the different parts of the tokenizer, where the logic may be hard to follow, like we discussed at PyCon.

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