Issue #19273: The marker comments Argument Clinic uses have been changed
to improve readability.
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index bfc730b..910b48f 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -69,10 +69,10 @@
#include "Python.h"
#include "stringlib/eq.h"
-/*[clinic]
+/*[clinic input]
class dict
-[clinic]*/
-/*[clinic checksum: da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
+[clinic start generated code]*/
+/*[clinic end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
typedef struct {
/* Cached hash code of me_key. */
@@ -2164,7 +2164,7 @@
return res;
}
-/*[clinic]
+/*[clinic input]
@coexist
dict.__contains__
@@ -2173,7 +2173,7 @@
/
True if D has a key k, else False"
-[clinic]*/
+[clinic start generated code]*/
PyDoc_STRVAR(dict___contains____doc__,
"__contains__(key)\n"
@@ -2184,7 +2184,7 @@
static PyObject *
dict___contains__(PyObject *self, PyObject *key)
-/*[clinic checksum: 3bbac5ce898ae630d9668fa1c8b3afb645ff22e8]*/
+/*[clinic end generated code: checksum=3bbac5ce898ae630d9668fa1c8b3afb645ff22e8]*/
{
register PyDictObject *mp = (PyDictObject *)self;
Py_hash_t hash;
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index fc6f0d0..48eccf7 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -47,10 +47,10 @@
#include <windows.h>
#endif
-/*[clinic]
+/*[clinic input]
class str
-[clinic]*/
-/*[clinic checksum: da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
+[clinic start generated code]*/
+/*[clinic end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
/* --- Globals ------------------------------------------------------------
@@ -12860,7 +12860,7 @@
return case_operation(self, do_swapcase);
}
-/*[clinic]
+/*[clinic input]
@staticmethod
str.maketrans as unicode_maketrans
@@ -12882,7 +12882,7 @@
in the resulting dictionary, each character in x will be mapped to the
character at the same position in y. If there is a third argument, it
must be a string, whose characters will be mapped to None in the result.
-[clinic]*/
+[clinic start generated code]*/
PyDoc_STRVAR(unicode_maketrans__doc__,
"maketrans(x, y=None, z=None)\n"
@@ -12922,7 +12922,7 @@
static PyObject *
unicode_maketrans_impl(void *null, PyObject *x, PyObject *y, PyObject *z)
-/*[clinic checksum: 7f76f414a0dfd0c614e0d4717872eeb520516da7]*/
+/*[clinic end generated code: checksum=7f76f414a0dfd0c614e0d4717872eeb520516da7]*/
{
PyObject *new = NULL, *key, *value;
Py_ssize_t i = 0;