Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-40077: Convert itertools types to heap types#24065

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commentedJan 2, 2021
edited by bedevere-bot
Loading

Erlend E. Aasland added23 commitsJanuary 2, 2021 21:13
@erlend-aasland
Copy link
ContributorAuthor

@rhettinger, let me know how large chunks you want me to split this PR in.

@pablogsalpablogsal added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJan 4, 2021
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@pablogsal for commit55cee70 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJan 4, 2021
@rhettinger
Copy link
Contributor

  • I can't review this because I don't fully understand the changes
  • I'm unclear why this is necessary.
  • The code churn is enormous.
  • There are measurable performance hits.
  • There are no doc changes or tests, so I'm unclear what the user benefit would be.

@erlend-aasland
Copy link
ContributorAuthor

  • I can't review this because I don't fully understand the changes

The changes are described in the PR subject:"Convert itertools types to heap types"
As an improvement, and in order to make the change more explicit, I could alter the subject to"Convert itertools types to heapallocated types".

In order to fully understand the changes, I would recommend taking a look atPEP 384,PEP 573,PyType_Spec, andPyType_Slot.

I guess@vstinner or@corona10 could assist in reviewing this, if they don't mind.

  • I'm unclear why this is necessary.
  • The code churn is enormous.

#24065 (comment)

  • There are measurable performance hits.

https://mail.python.org/archives/list/python-dev@python.org/thread/S5GZZCEREZLA2PEMTVFBCDM52H4JSENR/#RIK75U3ROEHWZL4VENQSQECB4F4GDELV

  • There are no doc changes

Theitertools docs does not contain information about how its types are implemented. I see no reason to add this information.

or tests

A module should not alter its behaviour depending on how its types are implemented. I see no reason to add type implementation specific tests foritertools.

, so I'm unclear what the user benefit would be.

@vstinner
Copy link
Member

I prefer to close the PR for now. I'm working on a PEP with@corona10 to explain the rationale. We can wait until this (future) PEP is accepted before changing itertools.

erlend-aasland reacted with thumbs up emojicorona10 reacted with heart emoji

@erlend-aaslanderlend-aasland deleted the bpo-40077/itertools branchJanuary 6, 2021 11:41
@erlend-aasland
Copy link
ContributorAuthor

erlend-aasland commentedJan 6, 2021
edited
Loading

I prefer to close the PR for now. I'm working on a PEP with@corona10 to explain the rationale. We can wait until this (future) PEP is accepted before changing itertools.

All right!

I'll keep the branch around, then :)

@erlend-aasland
Copy link
ContributorAuthor

FYI,PEP-687 was justaccepted.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rhettingerrhettingerAwaiting requested review from rhettinger

@shihai1991shihai1991Awaiting requested review from shihai1991

@vstinnervstinnerAwaiting requested review from vstinner

@corona10corona10Awaiting requested review from corona10

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@erlend-aasland@bedevere-bot@rhettinger@vstinner@shihai1991@pablogsal@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp