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

Should we agree on a style of string formatting? #104

Open
AnEnglishmanInNorway opened this issue Aug 4, 2021 · 0 comments
Open

Should we agree on a style of string formatting? #104

AnEnglishmanInNorway opened this issue Aug 4, 2021 · 0 comments

Comments

@AnEnglishmanInNorway
Copy link
Collaborator

AnEnglishmanInNorway commented Aug 4, 2021

After my embarrassing round of incorrect string formatting errors in connection with #82, I wondered if we should agree to a consistent way to format strings. With little Python background I located what seems like a decent description of formatting in Python - https://realpython.com/python-f-strings/. Another decent article here: https://www.telerik.com/blogs/string-formatting-python
I think we may already be committed to Python 3, so perhaps f-strings is the way to go now? And perhaps we should get rid of the oldest % formatting in our code?

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

No branches or pull requests

1 participant