Skip to content

Conversation

@encukou
Copy link
Member

@encukouencukou commented Apr 9, 2021

Each section is sorted to reduce diffs (review effort) when the file becomes generated (PEP 652)
Sort is done with key=str.lower to preserve most of the original order (underscored items first).

https://bugs.python.org/issue43795

Each section is sorted to reduce diffs (review effort) when the file becomes generated. Sort is done with key=str.lower to preserve most of the original order (underscored items first).
@encukou
Copy link
MemberAuthor

encukou commented Apr 9, 2021

I'm putting this up as a separate PR to reduce conflicts. Discussions on the main PEP 652 PR might take a while.

Copy link
Member

@zwarezware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the file mode was changed; was that intentional? Otherwise looks good to me :)

I have no idea why that changed...
@encukou
Copy link
MemberAuthor

I have no idea how I managed to change the mode. Thanks for the catch!

@encukouencukou merged commit 92eebf6 into python:masterApr 14, 2021
@encukouencukou deleted the pep652-sort branch April 14, 2021 14:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@encukou@zware@pablogsal@the-knights-who-say-ni@bedevere-bot