-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix handling of invalid conversion characters #61
Fix handling of invalid conversion characters #61
Conversation
We only have a single f-string conversion character related error left after this PR which is the following: We can make them soft keywords (? I think they aren't normalized but not super sure, @pablogsal or @lysnikolaou you can probably correct me on this) OR we simply allow this edge case (or hard-code it in the tokenizer which might look a bit ugly I think). |
Let's simply allow the edge case, I don't want to add crazy complexity just for this particular case. |
Hummm, actually this PR makes a lot more tests fail so I think I am going to revert it for now |
30 failures -> 52 failures |
Uh, in my local branch it was something like 28 to 24? (On test_fstring). Will double check |
@pablogsal I can't seem to reproduce your findings 🤔 Is there a chance I'm missing something when trying this? Before (current revision at the
After (actually before your revert / after this PR):
|
Note: this time we are allowing normalized unicode identifiers as conversion characters as per the discussion in pablogsal#61 (comment)
Hummmm, let me check in the main CI if I revert your revert |
Does #62 include this PR as well? |
Yep, with the above edge case fixed as well. |
No description provided.