◐ Shell
reader mode source ↗
Skip to content

gh-104469 : Convert _testcapi/dict.c to use AC#107859

Closed
jamie2779 wants to merge 2 commits into
python:mainfrom
jamie2779:gh-104469
Closed

gh-104469 : Convert _testcapi/dict.c to use AC#107859
jamie2779 wants to merge 2 commits into
python:mainfrom
jamie2779:gh-104469

Conversation

@jamie2779

@jamie2779 jamie2779 commented Aug 11, 2023

Copy link
Copy Markdown

@bedevere-bot

Copy link
Copy Markdown

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@jamie2779

jamie2779 commented Aug 11, 2023

Copy link
Copy Markdown
Author

@corona10 corona10 self-assigned this Aug 11, 2023
@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@serhiy-storchaka

Copy link
Copy Markdown
Member

It significantly reduces readability to me.

It significantly increases the number of lines in Modules/_testcapi/dict.c:

 Modules/_testcapi/dict.c | 412 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------
 1 file changed, 291 insertions(+), 121 deletions(-)

And this is not counting the large amount of code added to another file.

I have a limited field of vision and can't see anything beyond a limited number of lines of code. Before that, test functions were compact. After these changes, they will exceed my limit. And if I need to understand what exactly the function does, I have to look for the corresponding code in the generated file and then go back to the previous file, but when I look from the file I lose the context and I have to reread each line on the screen again to find the right place.

These changes are not friendly to the visually impaired.

@jamie2779

Copy link
Copy Markdown
Author

@erlend-aasland @corona10 I have made the requested changes; Please Take Another Look!

@erlend-aasland

Copy link
Copy Markdown
Contributor

I think Serhiy's opinion should be taken into account. Converting _testcapi to Argument Clinic is not of importance.

@ambv

ambv commented Aug 11, 2023

Copy link
Copy Markdown
Contributor

Closing and re-opening to retrigger CLA checks. Sorry for the noise.

@ambv ambv closed this Aug 11, 2023
@ambv ambv reopened this Aug 11, 2023
@ghost

ghost commented Aug 11, 2023

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

@corona10

Copy link
Copy Markdown
Member

close via #104469 (comment)

@corona10 corona10 closed this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants