We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some feedback:
What about specifying formats every time it's possible to do so when you're using the str.format() method instead of accessing argument by position? https://docs.python.org/2/library/string.html#formatspec
The text was updated successfully, but these errors were encountered:
I'm trying to figure out how to actually specify format strings using str.format(), and it's quite confusing. Right now I do stuff like this:
'This is a string {0}, and this is an int {1}'.format('foobar', 100)
But I'm not specifying types. I know I can specify types if I use the % string formatting operator, like this:
'This is a string %s, and this is an int %d' % ('foobar', 100)
But how can I specify the types while still keeping the .format() syntax?
Sorry, something went wrong.
Aha, figured it out.
'This is a string {0:s}, and this is an int {1:d}'.format('foobar', 100)
669750b
cant_connect_ctrlport and cant_connect_socksport are expecting string…
aae9995
…s and not ints (#169)
No branches or pull requests
Some feedback:
The text was updated successfully, but these errors were encountered: