-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
introduce list.sort()
but no details before
#133881
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
Comments
We could write something like: -Another use is to pass a small function as an argument:
+Another use is to pass a small function as an argument. For instance, :meth:`list.sort`
+takes a sorting key function *key* which can be a lambda function: |
I agree with you. |
Should I fix it or leave it for newcomers? |
You can pick up the task if you want! |
I would like to leave it. |
I'm ready to take it on, I've already written the documentation for pip. |
@Shepard2154 thank you! please, feel free to ask any questions. |
picnixz
pushed a commit
that referenced
this issue
May 17, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 17, 2025
…ression tutorial (pythonGH-133910) (cherry picked from commit c1c9ad1) Co-authored-by: Oleg Burnaev <51371645+Shepard2154@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 17, 2025
…ression tutorial (pythonGH-133910) (cherry picked from commit c1c9ad1) Co-authored-by: Oleg Burnaev <51371645+Shepard2154@users.noreply.github.com>
Thank you for the report & the fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
A example of lambda expressions introduces
list.sort()
, but there aren't details oflist.sort()
before.We shoud link more on lists after this example or in tutorial 3.1.3 lists.
Linked PRs
list.sort()
in lambda expression tutorial (GH-133910) #134126list.sort()
in lambda expression tutorial (GH-133910) #134127The text was updated successfully, but these errors were encountered: