Skip to content

Commit d8253e4

Browse files
committed
Move function comment to header file
1 parent 4c6bf78 commit d8253e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Include/internal/pycore_object.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,11 @@ extern bool _PyObject_TryGetInstanceAttribute(PyObject *obj, PyObject *name,
890890
PyObject **attr);
891891
extern PyObject *_PyType_LookupRefAndVersion(PyTypeObject *, PyObject *,
892892
unsigned int *);
893-
extern unsigned int
893+
894+
// Internal API to look for a name through the MRO.
895+
// This stores a stack reference in out and returns the value of
896+
// type->tp_version or zero if name is missing. It doesn't set an exception!
897+
extern unsigned int
894898
_PyType_LookupStackRefAndVersion(PyTypeObject *type, PyObject *name, _PyStackRef *out);
895899

896900
// Cache the provided init method in the specialization cache of type if the

Objects/typeobject.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5729,10 +5729,6 @@ _PyType_LookupRefAndVersion(PyTypeObject *type, PyObject *name, unsigned int *ve
57295729
return PyStackRef_AsPyObjectSteal(out);
57305730
}
57315731

5732-
/* Internal API to look for a name through the MRO.
5733-
This stores a stack reference in out and returns the value of
5734-
type->tp_version or zero if name is missing. It doesn't set an exception!
5735-
*/
57365732
unsigned int
57375733
_PyType_LookupStackRefAndVersion(PyTypeObject *type, PyObject *name, _PyStackRef *out)
57385734
{

0 commit comments

Comments
 (0)