mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
bpo-36347: stop using RESTRICTED constants (GH-12684)
The constants `RESTRICTED` and `PY_WRITE_RESTRICTED` no longer have a meaning in Python 3. Therefore, CPython should not use them. CC @matrixise https://bugs.python.org/issue36347
This commit is contained in:
parent
5d38517aa1
commit
24bba8cf5b
3 changed files with 8 additions and 10 deletions
|
@ -222,7 +222,7 @@ static PyGetSetDef meth_getsets [] = {
|
|||
#define OFF(x) offsetof(PyCFunctionObject, x)
|
||||
|
||||
static PyMemberDef meth_members[] = {
|
||||
{"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED},
|
||||
{"__module__", T_OBJECT, OFF(m_module), 0},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue