bpo-43908: Add Py_TPFLAGS_IMMUTABLETYPE flag by erlend-aasland · Pull Request #25520 · python/cpython
erlend-aasland
changed the title
bpo-43908: Add Py_TPFLAGS_IMMUTABLE flag and use it in arraymodule
bpo-43908: Add Py_TPFLAGS_IMMUTABLE flag
erlend-aasland
changed the title
bpo-43908: Add Py_TPFLAGS_IMMUTABLE flag
bpo-43908: Add Py_TPFLAGS_IMMUTABLETYPE flag
Erlend Egeberg Aasland and others added 3 commits
Erlend Egeberg Aasland and others added 3 commits
Erlend Egeberg Aasland and others added 2 commits
da-woods pushed a commit to cython/cython that referenced this pull request
Since python/cpython#25520 types are automatically marked as immutable if they are static. While we still have the Py_TPFLAGS_HEAPTYPE hack in place we need to manually mark our types as immutable. It's possible to crash Python by trying to modify mutable static types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters