Skip to content

bpo-43916: Remove _disabled_new() function#25745

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:remove_disabled_new
Apr 30, 2021
Merged

bpo-43916: Remove _disabled_new() function#25745
vstinner merged 2 commits into
python:masterfrom
vstinner:remove_disabled_new

Conversation

@vstinner

@vstinner vstinner commented Apr 30, 2021

Copy link
Copy Markdown
Member

Use the new Py_TPFLAGS_DISALLOW_INSTANTIATION flag on posix and
_hashlib types.

https://bugs.python.org/issue43916

Use the new Py_TPFLAGS_DISALLOW_INSTANTIATION flag on posix and
_hashlib types.
@vstinner

Copy link
Copy Markdown
Member Author

cc @tiran @erlend-aasland

@erlend-aasland erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need to update Lib/test/test_hmac.py too

@vstinner

Copy link
Copy Markdown
Member Author

You need to update Lib/test/test_hmac.py too

Oops, I missed that part in @tiran's PR #25722.

@vstinner

Copy link
Copy Markdown
Member Author
  • Windows x86: test_asyncio failed (unrelated).
  • Tests / Ubuntu SSL tests with OpenSSL 1.1.1k: test_asyncio failed (unrelated).
  • Tests / Ubuntu SSL tests with OpenSSL 3.0.0-alpha15: test_asyncio failed (unrelated).

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.

5 participants