We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30020b9 commit b1f1c71Copy full SHA for b1f1c71
Include/internal/pycore_typeobject.h
@@ -275,8 +275,8 @@ PyTypeObject *_PyType_LookupByVersion(unsigned int version);
275
typedef int (*_py_validate_type)(PyTypeObject *);
276
277
// It will verify the ``ty`` through user-defined validation function ``validate``,
278
-// and if the validation is passed, it will set the ``tp_version`` to the next
279
-// available version and return 0. Otherwise, it will return an error code.
+// and if the validation is passed, it will set the ``tp_version`` as valid
+// tp_version_tag from the ``ty``.
280
extern int _PyType_Validate(PyTypeObject *ty, _py_validate_type validate, unsigned int *tp_version);
281
282
#ifdef __cplusplus
0 commit comments