Skip to content

An error in % (String Formatting Operator) #26

Description

@BigShuang

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions