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

An error in % (String Formatting Operator) #26

Open
BigShuang opened this issue Jan 7, 2021 · 0 comments
Open

An error in % (String Formatting Operator) #26

BigShuang opened this issue Jan 7, 2021 · 0 comments

Comments

@BigShuang
Copy link

File location: python-reference/source/docs/str/formatting.rst.

In Syntax %[key][flags][width][.precision][length type]conversion type % values,
the conversion type is not optional.
It should be Required, which marks the end of the specifier.

I think only the fields in square brackets are optional.

Corresponding docs: https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting

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