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

Appearance settings

bpo-43916: Use Py_TPFLAGS_DISABLE_NEW flag in hashlib#25722

Closed
tiran wants to merge 3 commits into
python:masterpython/cpython:masterfrom
tiran:bpo-43916-hashlibtiran/cpython:bpo-43916-hashlibCopy head branch name to clipboard
Closed

bpo-43916: Use Py_TPFLAGS_DISABLE_NEW flag in hashlib#25722
tiran wants to merge 3 commits into
python:masterpython/cpython:masterfrom
tiran:bpo-43916-hashlibtiran/cpython:bpo-43916-hashlibCopy head branch name to clipboard

Conversation

@tiran

@tiran tiran commented Apr 29, 2021

Copy link
Copy Markdown
Member

vstinner and others added 3 commits April 29, 2021 17:36
Add a new Py_TPFLAGS_DISABLE_NEW type flag to disallow creating
instances of a type.
Signed-off-by: Christian Heimes <christian@python.org>
@vstinner

Copy link
Copy Markdown
Member

I merged my PR #25721 and the flag was renamed. Can you please rebase your PR?

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. If you rebase your PR and rename Py_TPFLAGS_DISABLE_NEW flag to Py_TPFLAGS_DISALLOW_INSTANTIATION.

I only reviewed Lib/test/test_hashlib.py and Modules/_hashopenssl.c changes.

@vstinner

Copy link
Copy Markdown
Member

I created PR #25745 which also updates the posix module.

@tiran

tiran commented Apr 30, 2021

Copy link
Copy Markdown
Member Author

Thanks Victor!

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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.