https://github.com/python/cpython/commit/ba3357c6d31568e1454c302f1804e2b7ee3b90d5
commit: ba3357c6d31568e1454c302f1804e2b7ee3b90d5
branch: main
author: Kumar Aditya <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-10-31T12:54:46Z
summary:

regenerate clinic for sliceobject.c.h (#160997)

files:
M Objects/clinic/sliceobject.c.h

diff --git a/Objects/clinic/sliceobject.c.h b/Objects/clinic/sliceobject.c.h
index 39fff4b06eb6a35..20df083f27458ef 100644
--- a/Objects/clinic/sliceobject.c.h
+++ b/Objects/clinic/sliceobject.c.h
@@ -50,7 +50,7 @@ slice_vectorcall(PyObject *type, PyObject *const *args,
     PyObject *stop = NULL;
     PyObject *step = NULL;
 
-    assert(Py_Is(_PyType_CAST(type), &PySlice_Type));
+    assert(_PyType_CAST(type)->tp_new == slice_new);
     /* Make sure the type object is immutable: the generated
      * vectorcall doesn't deal e.g. with users reassigning __init__. */
     assert(PyType_HasFeature(_PyType_CAST(type), Py_TPFLAGS_IMMUTABLETYPE));
@@ -75,4 +75,4 @@ slice_vectorcall(PyObject *type, PyObject *const *args,
 exit:
     return return_value;
 }
-/*[clinic end generated code: output=3547c23a3ee3cd86 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=62159046029c6bdf input=a9049054013a1b77]*/

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to