Support RemoteFile.tell
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues regarding this feature, and didn't find any.
Description
It would be nice if RemoteFile implemented tell() -- https://docs.python.org/3/library/io.html#io.IOBase.tell
I ran into this using a 3rd-party library written to support Micropython. Its use of files works fine when you mpremote fs cp the files on to your board, but if you use mpremote mount, it fails with AttributeError: 'RemoteFile' object has no attribute 'tell'. See: https://github.com/bixb922/umidiparser/issues/6
This feature request is somewhat related to #7534, adding an argument for seek
Code Size
I'm not sure
Implementation
- I intend to implement this feature and would submit a Pull Request if desirable.
- I hope the MicroPython maintainers or community will implement this feature.
- I would like to Sponsor development of this feature.
raw f-strings
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues regarding this feature, and didn't find any.
Description
Here is a tracking issue for the implementation of raw f-strings.
Traceback (most recent call last):
File "yt_dlp/__init__.py", line 268
SyntaxError: raw f-strings are not supported
Code Size
Parsers are pretty small if you don't overengineer them, and it could easily be configured at build-time. Also, Micropython has use cases outside of microcontrollers, such as my music player project.
Implementation
- I intend to implement this feature and would submit a Pull Request if desirable.
- I hope the MicroPython maintainers or community will implement this feature.
- I would like to Sponsor development of this feature.