-
Notifications
You must be signed in to change notification settings - Fork 4
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
[.pylint] % formatting in logging #9
Comments
I personally prefer using |
Yeah, I constantly poke people in comments about it, but some people can't even be consistent and chose one way how to format strings because they give a f* about warnings. So let's be pragmatic for a moment: |
@jpopelka please, teach us f-strings then :) |
not sure how to react, since I know all (but one) of us know it. What about ? string = f"Hello {some_variable}. You are {another_variable}." is there anything else you need to know ? |
Actually half of this: https://pyformat.info/ I always forget how to do Some time ago I started this cheatsheet: https://github.com/TomasTomecek/mysterious-keybinds#python Having a clear table which all of us could print and stuff behind our monitors would be mind-blowing. Probably even nobel price-winning. |
We have many occurrences of this:
We are mostly using new
.format
syntax -- is this optimalisation really necessary?PyLint_W1202
https://stackoverflow.com/questions/34619790/pylint-message-logging-format-interpolation
The text was updated successfully, but these errors were encountered: