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 list.sorted() #39428
Comments
As discussed on py-dev, this returns a sorted copy of a |
Logged In: YES Revised the patch to avoid an unnecessary copy whenever the |
Logged In: YES Rationale for the change todo = [t for t in tasks.copysort() if due_today(t)]
genhistory(date, events.copysort(key=incidenttime)) Spreading these out over multiple lines is an unnecessary Also, using copysort() eliminates a unnecessary variable |
Logged In: YES Alex, can you give this patch a second review. I did not put in additional classmethod warnings because all |
Logged In: YES Applied. |
Logged In: YES Looks good to me! I understand not wanting -- given the clean and |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: