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

Update to using f-strings instead of sting.format() #104

Open
bsimmo opened this issue Jan 30, 2021 · 1 comment
Open

Update to using f-strings instead of sting.format() #104

bsimmo opened this issue Jan 30, 2021 · 1 comment

Comments

@bsimmo
Copy link

bsimmo commented Jan 30, 2021

Update to using f-strings instead of sting.format()

Is your Feature Request related to a problem? Please describe.
This is just a nice to have.
f-strings are the new Python3.6+ method and are apparently much faster* especially in later python3's and for me easier to read too.
try a search on are f-strings faster than .format

Describe the solution you'd like
Change all strings from .format to f-string

Describe alternatives you've considered
No alternative other than no rush as not vital, 1-wire is slow anyway, but every little helps.

Additional context
Something for a rainy day.
It's the way forward for Python3
It does mean a drop of Python3.5 support (support for 3.5 has been dropped by Python)

@timofurrer
Copy link
Owner

Something for a rainy day.

Absolutely! I kept Python 3.5 support because of Raspbian stretch which comes with Python 3.5
However, I'm down for dropping it.

Feel free to use your next rainy day and submit that PR 😄

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

2 participants