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

Add link to Python 3 sequences documentation #26

Open
project-delphi opened this issue Jul 5, 2020 · 0 comments
Open

Add link to Python 3 sequences documentation #26

project-delphi opened this issue Jul 5, 2020 · 0 comments

Comments

@project-delphi
Copy link

project-delphi commented Jul 5, 2020

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.

@project-delphi project-delphi changed the title Add link to sequences Add link to Python 3 sequences documentation Jul 5, 2020
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