diff --git a/Lib/test/clinic.test.c b/Lib/test/clinic.test.c index e7fcdafa56d02b..b15aeb898d35a1 100644 --- a/Lib/test/clinic.test.c +++ b/Lib/test/clinic.test.c @@ -4957,9 +4957,9 @@ Test.property [clinic start generated code]*/ #if defined(Test_property_HAS_DOCSTR) -# define Test_property_DOCSTR Test_property__doc__ +# define Test_property_DOCSTR Test_property__doc__ #else -# define Test_property_DOCSTR NULL +# define Test_property_DOCSTR NULL #endif #if defined(TEST_PROPERTY_GETSETDEF) # undef TEST_PROPERTY_GETSETDEF @@ -4979,7 +4979,7 @@ Test_property_get(TestObj *self, void *Py_UNUSED(context)) static PyObject * Test_property_get_impl(TestObj *self) -/*[clinic end generated code: output=1bfac7190f65014a input=2d92b3449fbc7d2b]*/ +/*[clinic end generated code: output=27b519719d992e03 input=2d92b3449fbc7d2b]*/ /*[clinic input] @setter @@ -4987,9 +4987,9 @@ Test.property [clinic start generated code]*/ #if defined(TEST_PROPERTY_HAS_DOCSTR) -# define Test_property_DOCSTR Test_property__doc__ +# define Test_property_DOCSTR Test_property__doc__ #else -# define Test_property_DOCSTR NULL +# define Test_property_DOCSTR NULL #endif #if defined(TEST_PROPERTY_GETSETDEF) # undef TEST_PROPERTY_GETSETDEF @@ -5009,7 +5009,7 @@ Test_property_set(TestObj *self, PyObject *value, void *Py_UNUSED(context)) static int Test_property_set_impl(TestObj *self, PyObject *value) -/*[clinic end generated code: output=44050814a89e3dc5 input=3bc3f46a23c83a88]*/ +/*[clinic end generated code: output=9797cd03c5204ddb input=3bc3f46a23c83a88]*/ /*[clinic input] output push diff --git a/Modules/_io/clinic/bufferedio.c.h b/Modules/_io/clinic/bufferedio.c.h index 34f9b2e69944a6..d5bec5f71f5be8 100644 --- a/Modules/_io/clinic/bufferedio.c.h +++ b/Modules/_io/clinic/bufferedio.c.h @@ -328,9 +328,9 @@ _io__Buffered_simple_flush(buffered *self, PyObject *Py_UNUSED(ignored)) } #if defined(_io__Buffered_closed_HAS_DOCSTR) -# define _io__Buffered_closed_DOCSTR _io__Buffered_closed__doc__ +# define _io__Buffered_closed_DOCSTR _io__Buffered_closed__doc__ #else -# define _io__Buffered_closed_DOCSTR NULL +# define _io__Buffered_closed_DOCSTR NULL #endif #if defined(_IO__BUFFERED_CLOSED_GETSETDEF) # undef _IO__BUFFERED_CLOSED_GETSETDEF @@ -470,9 +470,9 @@ _io__Buffered_writable(buffered *self, PyObject *Py_UNUSED(ignored)) } #if defined(_io__Buffered_name_HAS_DOCSTR) -# define _io__Buffered_name_DOCSTR _io__Buffered_name__doc__ +# define _io__Buffered_name_DOCSTR _io__Buffered_name__doc__ #else -# define _io__Buffered_name_DOCSTR NULL +# define _io__Buffered_name_DOCSTR NULL #endif #if defined(_IO__BUFFERED_NAME_GETSETDEF) # undef _IO__BUFFERED_NAME_GETSETDEF @@ -497,9 +497,9 @@ _io__Buffered_name_get(buffered *self, void *Py_UNUSED(context)) } #if defined(_io__Buffered_mode_HAS_DOCSTR) -# define _io__Buffered_mode_DOCSTR _io__Buffered_mode__doc__ +# define _io__Buffered_mode_DOCSTR _io__Buffered_mode__doc__ #else -# define _io__Buffered_mode_DOCSTR NULL +# define _io__Buffered_mode_DOCSTR NULL #endif #if defined(_IO__BUFFERED_MODE_GETSETDEF) # undef _IO__BUFFERED_MODE_GETSETDEF @@ -1245,4 +1245,4 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=5a3a8dd6e473eb79 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=442b05b9a117df6c input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/stringio.c.h b/Modules/_io/clinic/stringio.c.h index 3d6a6b70d28b44..6bdb2181985f7d 100644 --- a/Modules/_io/clinic/stringio.c.h +++ b/Modules/_io/clinic/stringio.c.h @@ -476,9 +476,9 @@ _io_StringIO___setstate__(stringio *self, PyObject *state) } #if defined(_io_StringIO_closed_HAS_DOCSTR) -# define _io_StringIO_closed_DOCSTR _io_StringIO_closed__doc__ +# define _io_StringIO_closed_DOCSTR _io_StringIO_closed__doc__ #else -# define _io_StringIO_closed_DOCSTR NULL +# define _io_StringIO_closed_DOCSTR NULL #endif #if defined(_IO_STRINGIO_CLOSED_GETSETDEF) # undef _IO_STRINGIO_CLOSED_GETSETDEF @@ -503,9 +503,9 @@ _io_StringIO_closed_get(stringio *self, void *Py_UNUSED(context)) } #if defined(_io_StringIO_line_buffering_HAS_DOCSTR) -# define _io_StringIO_line_buffering_DOCSTR _io_StringIO_line_buffering__doc__ +# define _io_StringIO_line_buffering_DOCSTR _io_StringIO_line_buffering__doc__ #else -# define _io_StringIO_line_buffering_DOCSTR NULL +# define _io_StringIO_line_buffering_DOCSTR NULL #endif #if defined(_IO_STRINGIO_LINE_BUFFERING_GETSETDEF) # undef _IO_STRINGIO_LINE_BUFFERING_GETSETDEF @@ -530,9 +530,9 @@ _io_StringIO_line_buffering_get(stringio *self, void *Py_UNUSED(context)) } #if defined(_io_StringIO_newlines_HAS_DOCSTR) -# define _io_StringIO_newlines_DOCSTR _io_StringIO_newlines__doc__ +# define _io_StringIO_newlines_DOCSTR _io_StringIO_newlines__doc__ #else -# define _io_StringIO_newlines_DOCSTR NULL +# define _io_StringIO_newlines_DOCSTR NULL #endif #if defined(_IO_STRINGIO_NEWLINES_GETSETDEF) # undef _IO_STRINGIO_NEWLINES_GETSETDEF @@ -555,4 +555,4 @@ _io_StringIO_newlines_get(stringio *self, void *Py_UNUSED(context)) return return_value; } -/*[clinic end generated code: output=9814a7ebc7ed94af input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9ffea20cd32d4cd8 input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/textio.c.h b/Modules/_io/clinic/textio.c.h index be9c820132bfa8..23b3cc8d71e098 100644 --- a/Modules/_io/clinic/textio.c.h +++ b/Modules/_io/clinic/textio.c.h @@ -208,9 +208,9 @@ PyDoc_STRVAR(_io__TextIOBase_encoding__doc__, #define _io__TextIOBase_encoding_HAS_DOCSTR #if defined(_io__TextIOBase_encoding_HAS_DOCSTR) -# define _io__TextIOBase_encoding_DOCSTR _io__TextIOBase_encoding__doc__ +# define _io__TextIOBase_encoding_DOCSTR _io__TextIOBase_encoding__doc__ #else -# define _io__TextIOBase_encoding_DOCSTR NULL +# define _io__TextIOBase_encoding_DOCSTR NULL #endif #if defined(_IO__TEXTIOBASE_ENCODING_GETSETDEF) # undef _IO__TEXTIOBASE_ENCODING_GETSETDEF @@ -237,9 +237,9 @@ PyDoc_STRVAR(_io__TextIOBase_newlines__doc__, #define _io__TextIOBase_newlines_HAS_DOCSTR #if defined(_io__TextIOBase_newlines_HAS_DOCSTR) -# define _io__TextIOBase_newlines_DOCSTR _io__TextIOBase_newlines__doc__ +# define _io__TextIOBase_newlines_DOCSTR _io__TextIOBase_newlines__doc__ #else -# define _io__TextIOBase_newlines_DOCSTR NULL +# define _io__TextIOBase_newlines_DOCSTR NULL #endif #if defined(_IO__TEXTIOBASE_NEWLINES_GETSETDEF) # undef _IO__TEXTIOBASE_NEWLINES_GETSETDEF @@ -264,9 +264,9 @@ PyDoc_STRVAR(_io__TextIOBase_errors__doc__, #define _io__TextIOBase_errors_HAS_DOCSTR #if defined(_io__TextIOBase_errors_HAS_DOCSTR) -# define _io__TextIOBase_errors_DOCSTR _io__TextIOBase_errors__doc__ +# define _io__TextIOBase_errors_DOCSTR _io__TextIOBase_errors__doc__ #else -# define _io__TextIOBase_errors_DOCSTR NULL +# define _io__TextIOBase_errors_DOCSTR NULL #endif #if defined(_IO__TEXTIOBASE_ERRORS_GETSETDEF) # undef _IO__TEXTIOBASE_ERRORS_GETSETDEF @@ -1132,9 +1132,9 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored)) } #if defined(_io_TextIOWrapper_name_HAS_DOCSTR) -# define _io_TextIOWrapper_name_DOCSTR _io_TextIOWrapper_name__doc__ +# define _io_TextIOWrapper_name_DOCSTR _io_TextIOWrapper_name__doc__ #else -# define _io_TextIOWrapper_name_DOCSTR NULL +# define _io_TextIOWrapper_name_DOCSTR NULL #endif #if defined(_IO_TEXTIOWRAPPER_NAME_GETSETDEF) # undef _IO_TEXTIOWRAPPER_NAME_GETSETDEF @@ -1159,9 +1159,9 @@ _io_TextIOWrapper_name_get(textio *self, void *Py_UNUSED(context)) } #if defined(_io_TextIOWrapper_closed_HAS_DOCSTR) -# define _io_TextIOWrapper_closed_DOCSTR _io_TextIOWrapper_closed__doc__ +# define _io_TextIOWrapper_closed_DOCSTR _io_TextIOWrapper_closed__doc__ #else -# define _io_TextIOWrapper_closed_DOCSTR NULL +# define _io_TextIOWrapper_closed_DOCSTR NULL #endif #if defined(_IO_TEXTIOWRAPPER_CLOSED_GETSETDEF) # undef _IO_TEXTIOWRAPPER_CLOSED_GETSETDEF @@ -1186,9 +1186,9 @@ _io_TextIOWrapper_closed_get(textio *self, void *Py_UNUSED(context)) } #if defined(_io_TextIOWrapper_newlines_HAS_DOCSTR) -# define _io_TextIOWrapper_newlines_DOCSTR _io_TextIOWrapper_newlines__doc__ +# define _io_TextIOWrapper_newlines_DOCSTR _io_TextIOWrapper_newlines__doc__ #else -# define _io_TextIOWrapper_newlines_DOCSTR NULL +# define _io_TextIOWrapper_newlines_DOCSTR NULL #endif #if defined(_IO_TEXTIOWRAPPER_NEWLINES_GETSETDEF) # undef _IO_TEXTIOWRAPPER_NEWLINES_GETSETDEF @@ -1213,9 +1213,9 @@ _io_TextIOWrapper_newlines_get(textio *self, void *Py_UNUSED(context)) } #if defined(_io_TextIOWrapper_errors_HAS_DOCSTR) -# define _io_TextIOWrapper_errors_DOCSTR _io_TextIOWrapper_errors__doc__ +# define _io_TextIOWrapper_errors_DOCSTR _io_TextIOWrapper_errors__doc__ #else -# define _io_TextIOWrapper_errors_DOCSTR NULL +# define _io_TextIOWrapper_errors_DOCSTR NULL #endif #if defined(_IO_TEXTIOWRAPPER_ERRORS_GETSETDEF) # undef _IO_TEXTIOWRAPPER_ERRORS_GETSETDEF @@ -1240,9 +1240,9 @@ _io_TextIOWrapper_errors_get(textio *self, void *Py_UNUSED(context)) } #if defined(_io_TextIOWrapper__CHUNK_SIZE_HAS_DOCSTR) -# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR _io_TextIOWrapper__CHUNK_SIZE__doc__ +# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR _io_TextIOWrapper__CHUNK_SIZE__doc__ #else -# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR NULL +# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR NULL #endif #if defined(_IO_TEXTIOWRAPPER__CHUNK_SIZE_GETSETDEF) # undef _IO_TEXTIOWRAPPER__CHUNK_SIZE_GETSETDEF @@ -1267,9 +1267,9 @@ _io_TextIOWrapper__CHUNK_SIZE_get(textio *self, void *Py_UNUSED(context)) } #if defined(_IO_TEXTIOWRAPPER__CHUNK_SIZE_HAS_DOCSTR) -# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR _io_TextIOWrapper__CHUNK_SIZE__doc__ +# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR _io_TextIOWrapper__CHUNK_SIZE__doc__ #else -# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR NULL +# define _io_TextIOWrapper__CHUNK_SIZE_DOCSTR NULL #endif #if defined(_IO_TEXTIOWRAPPER__CHUNK_SIZE_GETSETDEF) # undef _IO_TEXTIOWRAPPER__CHUNK_SIZE_GETSETDEF @@ -1292,4 +1292,4 @@ _io_TextIOWrapper__CHUNK_SIZE_set(textio *self, PyObject *value, void *Py_UNUSED return return_value; } -/*[clinic end generated code: output=3807f278e1656e16 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d01aa598647c1385 input=a9049054013a1b77]*/ diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 65705e8c36cd07..1637ca1428c11b 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -883,9 +883,9 @@ class CLanguage(Language): """) GETTERDEF_PROTOTYPE_DEFINE: Final[str] = normalize_snippet(r""" #if defined({getset_basename}_HAS_DOCSTR) - # define {getset_basename}_DOCSTR {getset_basename}__doc__ + # define {getset_basename}_DOCSTR {getset_basename}__doc__ #else - # define {getset_basename}_DOCSTR NULL + # define {getset_basename}_DOCSTR NULL #endif #if defined({getset_name}_GETSETDEF) # undef {getset_name}_GETSETDEF @@ -896,9 +896,9 @@ class CLanguage(Language): """) SETTERDEF_PROTOTYPE_DEFINE: Final[str] = normalize_snippet(r""" #if defined({getset_name}_HAS_DOCSTR) - # define {getset_basename}_DOCSTR {getset_basename}__doc__ + # define {getset_basename}_DOCSTR {getset_basename}__doc__ #else - # define {getset_basename}_DOCSTR NULL + # define {getset_basename}_DOCSTR NULL #endif #if defined({getset_name}_GETSETDEF) # undef {getset_name}_GETSETDEF