8000 bpo-46987: Remove _PySys_GetObjectId / _PySys_GetObjectId by corona10 · Pull Request #31835 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46987: Remove _PySys_GetObjectId / _PySys_GetObjectId #31835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-46987: Remove _PySys_GetObjectId / _PySys_GetObjectId
  • Loading branch information
corona10 committed Mar 12, 2022
commit af8e4e8c88d3f660282210613f72a0e7bae3aece
2 changes: 0 additions & 2 deletions Include/cpython/sysmodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

PyAPI_FUNC(PyObject *) _PySys_GetAttr(PyThreadState *tstate,
PyObject *name);
PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key);
PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *);

PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove _PySys_GetObjectId and _PySys_GetObjectId. Patch by Dong-hee Na.
14 changes: 0 additions & 14 deletions Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ sys_get_object_id(PyThreadState *tstate, _Py_Identifier *key)
return value;
}

PyObject *
_PySys_GetObjectId(_Py_Identifier *key)
{
PyThreadState *tstate = _PyThreadState_GET();
return sys_get_object_id(tstate, key);
}

static PyObject *
_PySys_GetObject(PyInterpreterState *interp, const char *name)
{
Expand Down Expand Up @@ -145,13 +138,6 @@ sys_set_object_id(PyInterpreterState *interp, _Py_Identifier *key, PyObject *v)
return sys_set_object(interp, _PyUnicode_FromId(key), v);
}

int
_PySys_SetObjectId(_Py_Identifier *key, PyObject *v)
{
PyInterpreterState *interp = _PyInterpreterState_GET();
return sys_set_object_id(interp, key, v);
}

int
_PySys_SetAttr(PyObject *key, PyObject *v)
{
Expand Down
0