Skip to content

Conversation

@tiran
Copy link
Member

@tirantiran commented Apr 29, 2021

vstinnerand 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
Member

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

Copy link
Member

@vstinnervstinner left a comment

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
Member

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

@tiran
Copy link
MemberAuthor

Thanks Victor!

Sign up for freeto 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

@tiran@vstinner@the-knights-who-say-ni@bedevere-bot