Content-Length: 246490 | pFad | http://github.com/adafruit/circuitpython/issues/10206

56 Support raw f-strings · Issue #10206 · adafruit/circuitpython · GitHub
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

Support raw f-strings #10206

Open
AbortRetryFail opened this issue Mar 31, 2025 · 5 comments
Open

Support raw f-strings #10206

AbortRetryFail opened this issue Mar 31, 2025 · 5 comments

Comments

@AbortRetryFail
Copy link

Please add support for raw f-strings.

>>> import glob
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/glob.py", line 319
SyntaxError: raw f-strings are not supported

It looks like MicroPython did this last year, and it didn't even make the code bigger. micropython#15218

I'll try to apply this patch myself and see if it works, but I might be way out of my depth here.

@AbortRetryFail
Copy link
Author

I had to tweak their patch a bit, but it builds and seems to work OK on my LILYGO T-Deck.

@dhalbert
Copy link
Collaborator

dhalbert commented Mar 31, 2025

We periodically merge from upstream and will be including that change the next time, so if you submit a PR, try to make it as similar as possible, and let us know what you had to tweak.

@AbortRetryFail
Copy link
Author

Well, I tried to attach the patch here but Github just says "failed to upload"

Doing it the hard way with the whole fork and PR song and dance.

@AbortRetryFail
Copy link
Author

I hit another, taller wall with what I was trying to do, so I stopped working on this. I guess close it out the next time you merge from MicroPython.

@dhalbert
Copy link
Collaborator

dhalbert commented Apr 2, 2025

Sorry to hear! But it's on the list -- thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/issues/10206

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy