Skip to content

gh-135532: use defining_class for copying BLAKE-2 and SHA-3 objects #135838

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

Merged
merged 2 commits into from
Jun 24, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Jun 23, 2025

Performance are left untouched even if we're not using a METH_NOARGS. I tried to remove the defining_class in existing code but it didn't help. If we were to allow subclassing in the future, this saves some work as we would only need to touch constructors and not the methods themselves.

@picnixz picnixz requested review from gpshead and tiran as code owners June 23, 2025 10:22
@picnixz picnixz added skip news type-refactor Code refactoring (with no changes in behavior) labels Jun 23, 2025
@picnixz picnixz changed the title gh-135532: use defining_class for copying HACL*-based BLAKE-2 and SHA-3 objects gh-135532: use defining_class for copying BLAKE-2 and SHA-3 objects Jun 23, 2025
@picnixz
Copy link
Member Author

picnixz commented Jun 23, 2025

!buildbot FIPS only

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @picnixz for commit f631476 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135838%2Fmerge

The command will test the builders whose names match following regular expression: FIPS only

The builders matched are:

  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 CentOS9 FIPS Only Blake2 Builtin Hash PR

@picnixz
Copy link
Member Author

picnixz commented Jun 23, 2025

!buildbot FIPS only

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @picnixz for commit 26a029c 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135838%2Fmerge

The command will test the builders whose names match following regular expression: FIPS only

The builders matched are:

  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 CentOS9 FIPS Only Blake2 Builtin Hash PR

@picnixz picnixz merged commit ef4fc86 into python:main Jun 24, 2025
41 checks passed
@picnixz picnixz deleted the refactor/hashlib/defining-class-135532 branch June 24, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news type-refactor Code refactoring (with no changes in behavior)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants