Skip to content

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

Open
lysnikolaou wants to merge 1 commit into
gvanrossum:tag-strings-v2from
lysnikolaou:disable-tagstringstart-after-conversion-fstring
Open

Disallow TAGSTRING_START after the conversion character in an f-string#67
lysnikolaou wants to merge 1 commit into
gvanrossum:tag-strings-v2from
lysnikolaou:disable-tagstringstart-after-conversion-fstring

Conversation

@lysnikolaou

@lysnikolaou lysnikolaou commented Apr 27, 2023

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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