Skip to content

Add link to Python 3 sequences documentation #26

Description

@project-delphi

In *args and **kwargs: Flexible Arguments section of the link, there is this paragraph:

Here it is not the names args and kwargs that are important, but the * characters preceding them. args and kwargs are just the variable names often used by convention, short for "arguments" and "keyword arguments". The operative difference is the asterisk characters: a single * before a variable means "expand this as a sequence", while a double ** before a variable means "expand this as a dictionary". In fact, this syntax can be used not only with the function definition, but with the function call as well!

This seems to be the first time that sequence concept is mentioned. Given that there are many types of sequences and the concept is worth an aside, would it be a good idea to link to Sequence Types in the Python documentation?

Not sure if it is worth weaving in the broader concept of sequences or re-phrasing to restrict the example to just tuples.

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