Skip to content

Text copy-edit in the tutorial? Passing a dict named 'table' #93240

Description

@JoshuaPollinger

Documentation

https://docs.python.org/3.12/tutorial/inputoutput.html#the-string-format-method

Hi everyone! I'm reading through the tutorial and at section "7.1.2. The String format() Method", the sixth paragraph refers to passing a dictionary (named "table") as an argument. Here's the text as it reads:

This could also be done by passing the table as keyword arguments with the '**' notation.

But I think it would be more clear if the text was written as follows:

This could also be done by passing the dict as keyword arguments with the '**' notation.

or

This could also be done by passing the dict (in this example 'table') as keyword arguments with the '**' notation.

Hope this feedback is helpful! thanks!!

Activity

  1. AA-Turner commented on May 26, 2022

    @AA-Turner
    Member

    A pull request would be welcomed.

    A

  2. AA-Turner commented on May 26, 2022

    @AA-Turner
    Member

    (I'd probably go for This could also be done by passing the ``table`` dictionary as keyword arguments with the ``**`` notation.).

  3. paulreece commented on May 27, 2022

    @paulreece
    Contributor

    Hi I made the adjustment and created a PR here #93276

  4. added a commit that references this issue on Jun 21, 2022
  5. added a commit that references this issue on Jun 21, 2022
  6. added 3 commits that reference this issue on Jun 21, 2022
  7. ambv commented on Jun 21, 2022

    @ambv
    Contributor

    Fixed. Thanks! ✨ 🍰 ✨

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

    3.10 (EOL)end of life3.11only security fixes3.12only security fixesdocsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions