Skip to content

Commit 6edb13f

Browse files
committed
Rename PyObject_GetAttrStackRef to _PyObject_GetAttrStackRef
1 parent 382e937 commit 6edb13f

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Include/internal/pycore_object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ PyAPI_FUNC(int) _PyObject_GetMethodStackRef(PyThreadState *ts, PyObject *obj,
900900

901901
// Like PyObject_GetAttr but returns a _PyStackRef. For types, this can
902902
// return a deferred reference to reduce reference count contention.
903-
PyAPI_FUNC(_PyStackRef) PyObject_GetAttrStackRef(PyObject *obj, PyObject *name);
903+
PyAPI_FUNC(_PyStackRef) _PyObject_GetAttrStackRef(PyObject *obj, PyObject *name);
904904

905905
// Cache the provided init method in the specialization cache of type if the
906906
// provided type version matches the current version of the type.

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ PyObject_GetAttr(PyObject *v, PyObject *name)
13391339
For types (tp_getattro == _Py_type_getattro), this can return
13401340
a deferred reference to reduce reference count contention. */
13411341
_PyStackRef
1342-
PyObject_GetAttrStackRef(PyObject *v, PyObject *name)
1342+
_PyObject_GetAttrStackRef(PyObject *v, PyObject *name)
13431343
{
13441344
PyTypeObject *tp = Py_TYPE(v);
13451345
if (!PyUnicode_Check(name)) {

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10984,7 +10984,7 @@ slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
1098410984

1098510985
_PyCStackRef func_ref;
1098610986
_PyThreadState_PushCStackRef(tstate, &func_ref);
10987-
func_ref.ref = PyObject_GetAttrStackRef((PyObject *)type, &_Py_ID(__new__));
10987+
func_ref.ref = _PyObject_GetAttrStackRef((PyObject *)type, &_Py_ID(__new__));
1098810988
if (PyStackRef_IsNull(func_ref.ref)) {
1098910989
_PyThreadState_PopCStackRef(tstate, &func_ref);
1099010990
return NULL;

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ dummy_func(
23892389
}
23902390
else {
23912391
/* Classic, pushes one value. */
2392-
attr = PyObject_GetAttrStackRef(PyStackRef_AsPyObjectBorrow(owner), name);
2392+
attr = _PyObject_GetAttrStackRef(PyStackRef_AsPyObjectBorrow(owner), name);
23932393
PyStackRef_CLOSE(owner);
23942394
ERROR_IF(PyStackRef_IsNull(attr));
23952395
}

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)