diff --git a/Lib/idlelib/idle_test/test_calltip.py b/Lib/idlelib/idle_test/test_calltip.py index 833351bd799601..cb294359c1696b 100644 --- a/Lib/idlelib/idle_test/test_calltip.py +++ b/Lib/idlelib/idle_test/test_calltip.py @@ -59,21 +59,20 @@ def gtest(obj, out): self.assertEqual(signature(obj), out) if List.__doc__ is not None: - gtest(List, '(iterable=(), /)' + calltip._argument_positional + gtest(List, '(__iterable=())' + '\n' + List.__doc__) gtest(list.__new__, '(*args, **kwargs)\n' 'Create and return a new object. ' 'See help(type) for accurate signature.') gtest(list.__init__, - '(self, /, *args, **kwargs)' - + calltip._argument_positional + '\n' + + '(__self, *args, **kwargs)' + + '\n' + 'Initialize self. See help(type(self)) for accurate signature.') - append_doc = (calltip._argument_positional - + "\nAppend object to the end of the list.") - gtest(list.append, '(self, object, /)' + append_doc) - gtest(List.append, '(self, object, /)' + append_doc) - gtest([].append, '(object, /)' + append_doc) + append_doc = "\nAppend object to the end of the list." + gtest(list.append, '(__self, __object)' + append_doc) + gtest(List.append, '(__self, __object)' + append_doc) + gtest([].append, '(__object)' + append_doc) gtest(types.MethodType, "method(function, instance)") gtest(SB(), default_tip) diff --git a/Lib/inspect.py b/Lib/inspect.py index 8c398bd3534cb6..1e5943cc556f7f 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -1918,6 +1918,7 @@ def _signature_strip_non_python_syntax(signature): current_parameter = 0 OP = token.OP + NAME = token.NAME ERRORTOKEN = token.ERRORTOKEN # token stream always starts with ENCODING token, skip it @@ -1939,14 +1940,17 @@ def _signature_strip_non_python_syntax(signature): if string == '/': assert not skip_next_comma - assert last_positional_only is None skip_next_comma = True last_positional_only = current_parameter - 1 continue + if type == NAME and string.startswith('__'): + last_positional_only = current_parameter + if (type == ERRORTOKEN) and (string == '$'): assert self_parameter is None self_parameter = current_parameter + last_positional_only = current_parameter continue if delayed_comma: @@ -2192,7 +2196,7 @@ def _signature_from_function(cls, func): # parameters list (for correct order and defaults), it should be OK. return cls(parameters, return_annotation=annotations.get('return', _empty), - __validate_parameters__=is_duck_function) + _validate_parameters_=is_duck_function) def _signature_from_callable(obj, *, @@ -2749,7 +2753,7 @@ class Signature: empty = _empty def __init__(self, parameters=None, *, return_annotation=_empty, - __validate_parameters__=True): + _validate_parameters_=True): """Constructs Signature from the given list of Parameter objects and 'return_annotation'. All arguments are optional. """ @@ -2757,7 +2761,7 @@ def __init__(self, parameters=None, *, return_annotation=_empty, if parameters is None: params = OrderedDict() else: - if __validate_parameters__: + if _validate_parameters_: params = OrderedDict() top_kind = _POSITIONAL_ONLY kind_defaults = False @@ -3035,20 +3039,14 @@ def __repr__(self): def __str__(self): result = [] - render_pos_only_separator = False render_kw_only_separator = True for param in self.parameters.values(): formatted = str(param) kind = param.kind - if kind == _POSITIONAL_ONLY: - render_pos_only_separator = True - elif render_pos_only_separator: - # It's not a positional-only parameter, and the flag - # is set to 'True' (there were pos-only params before.) - result.append('/') - render_pos_only_separator = False + if kind == _POSITIONAL_ONLY and not formatted.startswith('__'): + formatted = '__' + formatted if kind == _VAR_POSITIONAL: # OK, we have an '*args'-like parameter, so we won't need @@ -3065,11 +3063,6 @@ def __str__(self): result.append(formatted) - if render_pos_only_separator: - # There were only positional-only parameters, hence the - # flag was not reset to 'False' - result.append('/') - rendered = '({})'.format(', '.join(result)) if self.return_annotation is not _empty: diff --git a/Lib/test/clinic.test b/Lib/test/clinic.test index 62c2f00c6b2b98..54b22fbf52f731 100644 --- a/Lib/test/clinic.test +++ b/Lib/test/clinic.test @@ -16,7 +16,7 @@ test_object_converter [clinic start generated code]*/ PyDoc_STRVAR(test_object_converter__doc__, -"test_object_converter($module, a, b, c, d, /)\n" +"test_object_converter($module, __a, __b, __c, __d)\n" "--\n" "\n"); @@ -58,7 +58,7 @@ exit: static PyObject * test_object_converter_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyUnicode_Object *d) -/*[clinic end generated code: output=f2c26174b3d46e94 input=005e6a8a711a869b]*/ +/*[clinic end generated code: output=fe9bb7868d631188 input=005e6a8a711a869b]*/ /*[clinic input] @@ -70,7 +70,7 @@ test_object_converter_one_arg [clinic start generated code]*/ PyDoc_STRVAR(test_object_converter_one_arg__doc__, -"test_object_converter_one_arg($module, a, /)\n" +"test_object_converter_one_arg($module, __a)\n" "--\n" "\n"); @@ -79,7 +79,7 @@ PyDoc_STRVAR(test_object_converter_one_arg__doc__, static PyObject * test_object_converter_one_arg(PyObject *module, PyObject *a) -/*[clinic end generated code: output=6da755f8502139df input=d635d92a421f1ca3]*/ +/*[clinic end generated code: output=14c6d4fe8b07630c input=d635d92a421f1ca3]*/ /*[clinic input] @@ -92,7 +92,7 @@ test_objects_converter [clinic start generated code]*/ PyDoc_STRVAR(test_objects_converter__doc__, -"test_objects_converter($module, a, b=None, /)\n" +"test_objects_converter($module, __a, __b=None)\n" "--\n" "\n"); @@ -126,7 +126,7 @@ exit: static PyObject * test_objects_converter_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=58009c0e42b4834e input=4cbb3d9edd2a36f3]*/ +/*[clinic end generated code: output=4f796bf0a1c73b2c input=4cbb3d9edd2a36f3]*/ /*[clinic input] @@ -147,8 +147,8 @@ test_object_converter_subclass_of [clinic start generated code]*/ PyDoc_STRVAR(test_object_converter_subclass_of__doc__, -"test_object_converter_subclass_of($module, a, b, c, d, e, f, g, h, i,\n" -" j, /)\n" +"test_object_converter_subclass_of($module, __a, __b, __c, __d, __e,\n" +" __f, __g, __h, __i, __j)\n" "--\n" "\n"); @@ -240,7 +240,7 @@ test_object_converter_subclass_of_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e, PyObject *f, PyObject *g, PyObject *h, PyObject *i, PyObject *j) -/*[clinic end generated code: output=99691bda8eeda6d6 input=31b06b772d5f983e]*/ +/*[clinic end generated code: output=5679c42b6a7e2500 input=31b06b772d5f983e]*/ /*[clinic input] @@ -252,7 +252,7 @@ test_PyBytesObject_converter [clinic start generated code]*/ PyDoc_STRVAR(test_PyBytesObject_converter__doc__, -"test_PyBytesObject_converter($module, a, /)\n" +"test_PyBytesObject_converter($module, __a)\n" "--\n" "\n"); @@ -281,7 +281,7 @@ exit: static PyObject * test_PyBytesObject_converter_impl(PyObject *module, PyBytesObject *a) -/*[clinic end generated code: output=5d9a301c1df24eb5 input=12b10c7cb5750400]*/ +/*[clinic end generated code: output=b43361a80e45be42 input=12b10c7cb5750400]*/ /*[clinic input] @@ -293,7 +293,7 @@ test_PyByteArrayObject_converter [clinic start generated code]*/ PyDoc_STRVAR(test_PyByteArrayObject_converter__doc__, -"test_PyByteArrayObject_converter($module, a, /)\n" +"test_PyByteArrayObject_converter($module, __a)\n" "--\n" "\n"); @@ -322,7 +322,7 @@ exit: static PyObject * test_PyByteArrayObject_converter_impl(PyObject *module, PyByteArrayObject *a) -/*[clinic end generated code: output=9455d06f4f09637b input=5a657da535d194ae]*/ +/*[clinic end generated code: output=b898b2561bb2ba33 input=5a657da535d194ae]*/ /*[clinic input] @@ -334,7 +334,7 @@ test_unicode_converter [clinic start generated code]*/ PyDoc_STRVAR(test_unicode_converter__doc__, -"test_unicode_converter($module, a, /)\n" +"test_unicode_converter($module, __a)\n" "--\n" "\n"); @@ -366,7 +366,7 @@ exit: static PyObject * test_unicode_converter_impl(PyObject *module, PyObject *a) -/*[clinic end generated code: output=9275c04fe204f4c5 input=aa33612df92aa9c5]*/ +/*[clinic end generated code: output=6dab5c095f14eeb5 input=aa33612df92aa9c5]*/ /*[clinic input] @@ -380,7 +380,7 @@ test_bool_converter [clinic start generated code]*/ PyDoc_STRVAR(test_bool_converter__doc__, -"test_bool_converter($module, a=True, b=True, c=True, /)\n" +"test_bool_converter($module, __a=True, __b=True, __c=True)\n" "--\n" "\n"); @@ -436,7 +436,7 @@ exit: static PyObject * test_bool_converter_impl(PyObject *module, int a, int b, int c) -/*[clinic end generated code: output=25f20963894256a1 input=939854fa9f248c60]*/ +/*[clinic end generated code: output=a9d9540aa1e3a862 input=939854fa9f248c60]*/ /*[clinic input] @@ -461,9 +461,10 @@ test_char_converter [clinic start generated code]*/ PyDoc_STRVAR(test_char_converter__doc__, -"test_char_converter($module, a=b\'A\', b=b\'\\x07\', c=b\'\\x08\', d=b\'\\t\',\n" -" e=b\'\\n\', f=b\'\\x0b\', g=b\'\\x0c\', h=b\'\\r\', i=b\'\"\',\n" -" j=b\"\'\", k=b\'?\', l=b\'\\\\\', m=b\'\\x00\', n=b\'\\xff\', /)\n" +"test_char_converter($module, __a=b\'A\', __b=b\'\\x07\', __c=b\'\\x08\',\n" +" __d=b\'\\t\', __e=b\'\\n\', __f=b\'\\x0b\', __g=b\'\\x0c\',\n" +" __h=b\'\\r\', __i=b\'\"\', __j=b\"\'\", __k=b\'?\', __l=b\'\\\\\',\n" +" __m=b\'\\x00\', __n=b\'\\xff\')\n" "--\n" "\n"); @@ -690,7 +691,7 @@ static PyObject * test_char_converter_impl(PyObject *module, char a, char b, char c, char d, char e, char f, char g, char h, char i, char j, char k, char l, char m, char n) -/*[clinic end generated code: output=e041d687555e0a5d input=e42330417a44feac]*/ +/*[clinic end generated code: output=455f1078b3b6af3f input=e42330417a44feac]*/ /*[clinic input] @@ -704,7 +705,7 @@ test_unsigned_char_converter [clinic start generated code]*/ PyDoc_STRVAR(test_unsigned_char_converter__doc__, -"test_unsigned_char_converter($module, a=12, b=34, c=56, /)\n" +"test_unsigned_char_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -807,7 +808,7 @@ exit: static PyObject * test_unsigned_char_converter_impl(PyObject *module, unsigned char a, unsigned char b, unsigned char c) -/*[clinic end generated code: output=ebf905c5c9414762 input=021414060993e289]*/ +/*[clinic end generated code: output=f7a1eb0a1ddbd879 input=021414060993e289]*/ /*[clinic input] @@ -819,7 +820,7 @@ test_short_converter [clinic start generated code]*/ PyDoc_STRVAR(test_short_converter__doc__, -"test_short_converter($module, a=12, /)\n" +"test_short_converter($module, __a=12)\n" "--\n" "\n"); @@ -874,7 +875,7 @@ exit: static PyObject * test_short_converter_impl(PyObject *module, short a) -/*[clinic end generated code: output=86fe1a1496a7ff20 input=6a8a7a509a498ff4]*/ +/*[clinic end generated code: output=d878d0c6c32e48f3 input=6a8a7a509a498ff4]*/ /*[clinic input] @@ -888,7 +889,7 @@ test_unsigned_short_converter [clinic start generated code]*/ PyDoc_STRVAR(test_unsigned_short_converter__doc__, -"test_unsigned_short_converter($module, a=12, b=34, c=56, /)\n" +"test_unsigned_short_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -944,7 +945,7 @@ exit: static PyObject * test_unsigned_short_converter_impl(PyObject *module, unsigned short a, unsigned short b, unsigned short c) -/*[clinic end generated code: output=3779fe104319e3ae input=cdfd8eff3d9176b4]*/ +/*[clinic end generated code: output=221c359c3744d0c6 input=cdfd8eff3d9176b4]*/ /*[clinic input] @@ -959,7 +960,7 @@ test_int_converter [clinic start generated code]*/ PyDoc_STRVAR(test_int_converter__doc__, -"test_int_converter($module, a=12, b=34, c=45, d=67, /)\n" +"test_int_converter($module, __a=12, __b=34, __c=45, __d=67)\n" "--\n" "\n"); @@ -1041,7 +1042,7 @@ exit: static PyObject * test_int_converter_impl(PyObject *module, int a, int b, int c, myenum d) -/*[clinic end generated code: output=de74e24e85a669a5 input=d20541fc1ca0553e]*/ +/*[clinic end generated code: output=c93d1a655d2e73cf input=d20541fc1ca0553e]*/ /*[clinic input] @@ -1055,7 +1056,7 @@ test_unsigned_int_converter [clinic start generated code]*/ PyDoc_STRVAR(test_unsigned_int_converter__doc__, -"test_unsigned_int_converter($module, a=12, b=34, c=56, /)\n" +"test_unsigned_int_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -1111,7 +1112,7 @@ exit: static PyObject * test_unsigned_int_converter_impl(PyObject *module, unsigned int a, unsigned int b, unsigned int c) -/*[clinic end generated code: output=189176ce67c7d2e7 input=5533534828b62fc0]*/ +/*[clinic end generated code: output=706171f681252c02 input=5533534828b62fc0]*/ /*[clinic input] @@ -1123,7 +1124,7 @@ test_long_converter [clinic start generated code]*/ PyDoc_STRVAR(test_long_converter__doc__, -"test_long_converter($module, a=12, /)\n" +"test_long_converter($module, __a=12)\n" "--\n" "\n"); @@ -1163,7 +1164,7 @@ exit: static PyObject * test_long_converter_impl(PyObject *module, long a) -/*[clinic end generated code: output=44cd8823f59d116b input=d2179e3c9cdcde89]*/ +/*[clinic end generated code: output=7c9f9a94b25276e1 input=d2179e3c9cdcde89]*/ /*[clinic input] @@ -1177,7 +1178,7 @@ test_unsigned_long_converter [clinic start generated code]*/ PyDoc_STRVAR(test_unsigned_long_converter__doc__, -"test_unsigned_long_converter($module, a=12, b=34, c=56, /)\n" +"test_unsigned_long_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -1229,7 +1230,7 @@ exit: static PyObject * test_unsigned_long_converter_impl(PyObject *module, unsigned long a, unsigned long b, unsigned long c) -/*[clinic end generated code: output=1c05c871c0309e08 input=f450d94cae1ef73b]*/ +/*[clinic end generated code: output=7f2a61e32c8d35bf input=f450d94cae1ef73b]*/ /*[clinic input] @@ -1241,7 +1242,7 @@ test_long_long_converter [clinic start generated code]*/ PyDoc_STRVAR(test_long_long_converter__doc__, -"test_long_long_converter($module, a=12, /)\n" +"test_long_long_converter($module, __a=12)\n" "--\n" "\n"); @@ -1281,7 +1282,7 @@ exit: static PyObject * test_long_long_converter_impl(PyObject *module, long long a) -/*[clinic end generated code: output=3e8083f3aee4f18a input=d5fc81577ff4dd02]*/ +/*[clinic end generated code: output=0c9711567ddb7204 input=d5fc81577ff4dd02]*/ /*[clinic input] @@ -1295,7 +1296,7 @@ test_unsigned_long_long_converter [clinic start generated code]*/ PyDoc_STRVAR(test_unsigned_long_long_converter__doc__, -"test_unsigned_long_long_converter($module, a=12, b=34, c=56, /)\n" +"test_unsigned_long_long_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -1351,7 +1352,7 @@ test_unsigned_long_long_converter_impl(PyObject *module, unsigned long long a, unsigned long long b, unsigned long long c) -/*[clinic end generated code: output=0a9b17fb824e28eb input=a15115dc41866ff4]*/ +/*[clinic end generated code: output=751718052a44fffa input=a15115dc41866ff4]*/ /*[clinic input] @@ -1365,7 +1366,7 @@ test_Py_ssize_t_converter [clinic start generated code]*/ PyDoc_STRVAR(test_Py_ssize_t_converter__doc__, -"test_Py_ssize_t_converter($module, a=12, b=34, c=56, /)\n" +"test_Py_ssize_t_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -1443,7 +1444,7 @@ exit: static PyObject * test_Py_ssize_t_converter_impl(PyObject *module, Py_ssize_t a, Py_ssize_t b, Py_ssize_t c) -/*[clinic end generated code: output=a46d2aaf40c10398 input=3855f184bb3f299d]*/ +/*[clinic end generated code: output=7dd5225a646182bb input=3855f184bb3f299d]*/ /*[clinic input] @@ -1457,7 +1458,7 @@ test_slice_index_converter [clinic start generated code]*/ PyDoc_STRVAR(test_slice_index_converter__doc__, -"test_slice_index_converter($module, a=12, b=34, c=56, /)\n" +"test_slice_index_converter($module, __a=12, __b=34, __c=56)\n" "--\n" "\n"); @@ -1507,7 +1508,7 @@ exit: static PyObject * test_slice_index_converter_impl(PyObject *module, Py_ssize_t a, Py_ssize_t b, Py_ssize_t c) -/*[clinic end generated code: output=2148703cd3c6e941 input=edeadb0ee126f531]*/ +/*[clinic end generated code: output=8b95bb19accda72c input=edeadb0ee126f531]*/ /*[clinic input] @@ -1519,7 +1520,7 @@ test_size_t_converter [clinic start generated code]*/ PyDoc_STRVAR(test_size_t_converter__doc__, -"test_size_t_converter($module, a=12, /)\n" +"test_size_t_converter($module, __a=12)\n" "--\n" "\n"); @@ -1553,7 +1554,7 @@ exit: static PyObject * test_size_t_converter_impl(PyObject *module, size_t a) -/*[clinic end generated code: output=8a91a9ca8a92dabb input=52e93a0fed0f1fb3]*/ +/*[clinic end generated code: output=b517171c1fca5f1d input=52e93a0fed0f1fb3]*/ /*[clinic input] @@ -1565,7 +1566,7 @@ test_float_converter [clinic start generated code]*/ PyDoc_STRVAR(test_float_converter__doc__, -"test_float_converter($module, a=12.5, /)\n" +"test_float_converter($module, __a=12.5)\n" "--\n" "\n"); @@ -1600,7 +1601,7 @@ exit: static PyObject * test_float_converter_impl(PyObject *module, float a) -/*[clinic end generated code: output=8293566b2ec1fc52 input=259c0d98eca35034]*/ +/*[clinic end generated code: output=b3ed301f8162f798 input=259c0d98eca35034]*/ /*[clinic input] @@ -1612,7 +1613,7 @@ test_double_converter [clinic start generated code]*/ PyDoc_STRVAR(test_double_converter__doc__, -"test_double_converter($module, a=12.5, /)\n" +"test_double_converter($module, __a=12.5)\n" "--\n" "\n"); @@ -1647,7 +1648,7 @@ exit: static PyObject * test_double_converter_impl(PyObject *module, double a) -/*[clinic end generated code: output=487081a9b8da67ab input=c6a9945706a41c27]*/ +/*[clinic end generated code: output=e8a6277116860719 input=c6a9945706a41c27]*/ /*[clinic input] @@ -1659,7 +1660,7 @@ test_Py_complex_converter [clinic start generated code]*/ PyDoc_STRVAR(test_Py_complex_converter__doc__, -"test_Py_complex_converter($module, a, /)\n" +"test_Py_complex_converter($module, __a)\n" "--\n" "\n"); @@ -1687,7 +1688,7 @@ exit: static PyObject * test_Py_complex_converter_impl(PyObject *module, Py_complex a) -/*[clinic end generated code: output=c2ecbec2144ca540 input=070f216a515beb79]*/ +/*[clinic end generated code: output=655fc77a6354c45c input=070f216a515beb79]*/ /*[clinic input] @@ -1706,8 +1707,8 @@ test_str_converter [clinic start generated code]*/ PyDoc_STRVAR(test_str_converter__doc__, -"test_str_converter($module, a=None, b=\'ab\', c=\'cd\', d=\'cef\', e=\'gh\',\n" -" f=\'ij\', g=\'kl\', h=\'mn\', /)\n" +"test_str_converter($module, __a=None, __b=\'ab\', __c=\'cd\', __d=\'cef\',\n" +" __e=\'gh\', __f=\'ij\', __g=\'kl\', __h=\'mn\')\n" "--\n" "\n"); @@ -1753,7 +1754,7 @@ test_str_converter_impl(PyObject *module, const char *a, const char *b, const char *f, Py_ssize_clean_t f_length, const char *g, Py_ssize_clean_t g_length, const char *h, Py_ssize_clean_t h_length) -/*[clinic end generated code: output=8415d82c56154307 input=8afe9da8185cd38c]*/ +/*[clinic end generated code: output=659b33b9d4d49255 input=8afe9da8185cd38c]*/ /*[clinic input] @@ -1769,7 +1770,7 @@ test_str_converter_encoding [clinic start generated code]*/ PyDoc_STRVAR(test_str_converter_encoding__doc__, -"test_str_converter_encoding($module, a, b, c, d, e, /)\n" +"test_str_converter_encoding($module, __a, __b, __c, __d, __e)\n" "--\n" "\n"); @@ -1828,7 +1829,7 @@ static PyObject * test_str_converter_encoding_impl(PyObject *module, char *a, char *b, char *c, char *d, Py_ssize_clean_t d_length, char *e, Py_ssize_clean_t e_length) -/*[clinic end generated code: output=f579dd9e795a364e input=eb4c38e1f898f402]*/ +/*[clinic end generated code: output=90c3fcffdd8afe1d input=eb4c38e1f898f402]*/ /*[clinic input] @@ -1844,7 +1845,7 @@ test_Py_UNICODE_converter [clinic start generated code]*/ PyDoc_STRVAR(test_Py_UNICODE_converter__doc__, -"test_Py_UNICODE_converter($module, a, b, c, d, e, /)\n" +"test_Py_UNICODE_converter($module, __a, __b, __c, __d, __e)\n" "--\n" "\n"); @@ -1888,7 +1889,7 @@ test_Py_UNICODE_converter_impl(PyObject *module, const Py_UNICODE *a, Py_ssize_clean_t d_length, const Py_UNICODE *e, Py_ssize_clean_t e_length) -/*[clinic end generated code: output=dd0a09a1b772e57b input=064a3b68ad7f04b0]*/ +/*[clinic end generated code: output=bb0ca6ce9d2cc0ea input=064a3b68ad7f04b0]*/ /*[clinic input] @@ -1904,7 +1905,7 @@ test_Py_buffer_converter [clinic start generated code]*/ PyDoc_STRVAR(test_Py_buffer_converter__doc__, -"test_Py_buffer_converter($module, a, b, c, d, e, /)\n" +"test_Py_buffer_converter($module, __a, __b, __c, __d, __e)\n" "--\n" "\n"); @@ -1959,7 +1960,7 @@ exit: static PyObject * test_Py_buffer_converter_impl(PyObject *module, Py_buffer *a, Py_buffer *b, Py_buffer *c, Py_buffer *d, Py_buffer *e) -/*[clinic end generated code: output=5760c82faa2ed61f input=6a9da0f56f9525fd]*/ +/*[clinic end generated code: output=c51ec9147e57cac4 input=6a9da0f56f9525fd]*/ /*[clinic input] @@ -1971,7 +1972,7 @@ test_keywords [clinic start generated code]*/ PyDoc_STRVAR(test_keywords__doc__, -"test_keywords($module, /, a, b)\n" +"test_keywords($module, a, b)\n" "--\n" "\n"); @@ -2005,7 +2006,7 @@ exit: static PyObject * test_keywords_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=4be6cf045ea8242e input=0d3484844749c05b]*/ +/*[clinic end generated code: output=5f0a5acef7e043b8 input=0d3484844749c05b]*/ /*[clinic input] @@ -2018,7 +2019,7 @@ test_keywords_kwonly [clinic start generated code]*/ PyDoc_STRVAR(test_keywords_kwonly__doc__, -"test_keywords_kwonly($module, /, a, *, b)\n" +"test_keywords_kwonly($module, a, *, b)\n" "--\n" "\n"); @@ -2052,7 +2053,7 @@ exit: static PyObject * test_keywords_kwonly_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=d63c4977a7a80713 input=384adc78bfa0bff7]*/ +/*[clinic end generated code: output=642eee11fc6163a5 input=384adc78bfa0bff7]*/ /*[clinic input] @@ -2065,7 +2066,7 @@ test_keywords_opt [clinic start generated code]*/ PyDoc_STRVAR(test_keywords_opt__doc__, -"test_keywords_opt($module, /, a, b=None, c=None)\n" +"test_keywords_opt($module, a, b=None, c=None)\n" "--\n" "\n"); @@ -2113,7 +2114,7 @@ exit: static PyObject * test_keywords_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=e5e50d114d8fc10a input=eda7964f784f4607]*/ +/*[clinic end generated code: output=8d0311f808817fab input=eda7964f784f4607]*/ /*[clinic input] @@ -2128,7 +2129,7 @@ test_keywords_opt_kwonly [clinic start generated code]*/ PyDoc_STRVAR(test_keywords_opt_kwonly__doc__, -"test_keywords_opt_kwonly($module, /, a, b=None, *, c=None, d=None)\n" +"test_keywords_opt_kwonly($module, a, b=None, *, c=None, d=None)\n" "--\n" "\n"); @@ -2187,7 +2188,7 @@ exit: static PyObject * test_keywords_opt_kwonly_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=3f065cb8309b9317 input=209387a4815e5082]*/ +/*[clinic end generated code: output=42e42491115eec73 input=209387a4815e5082]*/ /*[clinic input] @@ -2201,7 +2202,7 @@ test_keywords_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_keywords_kwonly_opt__doc__, -"test_keywords_kwonly_opt($module, /, a, *, b=None, c=None)\n" +"test_keywords_kwonly_opt($module, a, *, b=None, c=None)\n" "--\n" "\n"); @@ -2249,7 +2250,7 @@ exit: static PyObject * test_keywords_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=94edba5484e1681e input=18393cc64fa000f4]*/ +/*[clinic end generated code: output=cb592d57588e5df1 input=18393cc64fa000f4]*/ /*[clinic input] @@ -2262,7 +2263,7 @@ test_posonly_keywords [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords__doc__, -"test_posonly_keywords($module, a, /, b)\n" +"test_posonly_keywords($module, __a, b)\n" "--\n" "\n"); @@ -2296,7 +2297,7 @@ exit: static PyObject * test_posonly_keywords_impl(PyObject *module, PyObject *a, PyObject *b) -/*[clinic end generated code: output=eca1507f0182ffb0 input=1767b0ebdf06060e]*/ +/*[clinic end generated code: output=4214c3c6ae7528a6 input=1767b0ebdf06060e]*/ /*[clinic input] @@ -2310,7 +2311,7 @@ test_posonly_kwonly [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_kwonly__doc__, -"test_posonly_kwonly($module, a, /, *, c)\n" +"test_posonly_kwonly($module, __a, *, c)\n" "--\n" "\n"); @@ -2344,7 +2345,7 @@ exit: static PyObject * test_posonly_kwonly_impl(PyObject *module, PyObject *a, PyObject *c) -/*[clinic end generated code: output=3e14655646b66e9a input=9042f2818f664839]*/ +/*[clinic end generated code: output=3cf7c737af20478e input=9042f2818f664839]*/ /*[clinic input] @@ -2359,7 +2360,7 @@ test_posonly_keywords_kwonly [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_kwonly__doc__, -"test_posonly_keywords_kwonly($module, a, /, b, *, c)\n" +"test_posonly_keywords_kwonly($module, __a, b, *, c)\n" "--\n" "\n"); @@ -2397,7 +2398,7 @@ exit: static PyObject * test_posonly_keywords_kwonly_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=de57172fc97a626e input=29546ebdca492fea]*/ +/*[clinic end generated code: output=3e683118b1d7e3c3 input=29546ebdca492fea]*/ /*[clinic input] @@ -2412,7 +2413,7 @@ test_posonly_keywords_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_opt__doc__, -"test_posonly_keywords_opt($module, a, /, b, c=None, d=None)\n" +"test_posonly_keywords_opt($module, __a, b, c=None, d=None)\n" "--\n" "\n"); @@ -2462,7 +2463,7 @@ exit: static PyObject * test_posonly_keywords_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=8bc6b44a25d4b716 input=cdf5a9625e554e9b]*/ +/*[clinic end generated code: output=768bf54bd5a5bd17 input=cdf5a9625e554e9b]*/ /*[clinic input] @@ -2476,7 +2477,7 @@ test_posonly_keywords_opt2 [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_opt2__doc__, -"test_posonly_keywords_opt2($module, a, /, b=None, c=None)\n" +"test_posonly_keywords_opt2($module, __a, b=None, c=None)\n" "--\n" "\n"); @@ -2524,7 +2525,7 @@ exit: static PyObject * test_posonly_keywords_opt2_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=a870c45a6510ba91 input=1581299d21d16f14]*/ +/*[clinic end generated code: output=cc397b26577a0914 input=1581299d21d16f14]*/ /*[clinic input] @@ -2539,7 +2540,7 @@ test_posonly_opt_keywords_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_opt_keywords_opt__doc__, -"test_posonly_opt_keywords_opt($module, a, b=None, /, c=None, d=None)\n" +"test_posonly_opt_keywords_opt($module, __a, __b=None, c=None, d=None)\n" "--\n" "\n"); @@ -2594,7 +2595,7 @@ exit: static PyObject * test_posonly_opt_keywords_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=9ae3d52e071d3b7f input=408798ec3d42949f]*/ +/*[clinic end generated code: output=874b4d346bf9a8e8 input=408798ec3d42949f]*/ /*[clinic input] @@ -2610,7 +2611,7 @@ test_posonly_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_kwonly_opt__doc__, -"test_posonly_kwonly_opt($module, a, /, *, b, c=None, d=None)\n" +"test_posonly_kwonly_opt($module, __a, *, b, c=None, d=None)\n" "--\n" "\n"); @@ -2660,7 +2661,7 @@ exit: static PyObject * test_posonly_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=fb001f586ba68549 input=8d8e5643bbbc2309]*/ +/*[clinic end generated code: output=b8474f4f8c678be6 input=8d8e5643bbbc2309]*/ /*[clinic input] @@ -2675,7 +2676,7 @@ test_posonly_kwonly_opt2 [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_kwonly_opt2__doc__, -"test_posonly_kwonly_opt2($module, a, /, *, b=None, c=None)\n" +"test_posonly_kwonly_opt2($module, __a, *, b=None, c=None)\n" "--\n" "\n"); @@ -2723,7 +2724,7 @@ exit: static PyObject * test_posonly_kwonly_opt2_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=51aae7cac77b458a input=f7e5eed94f75fff0]*/ +/*[clinic end generated code: output=5598aeb4a70b8c3a input=f7e5eed94f75fff0]*/ /*[clinic input] @@ -2739,7 +2740,7 @@ test_posonly_opt_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_opt_kwonly_opt__doc__, -"test_posonly_opt_kwonly_opt($module, a, b=None, /, *, c=None, d=None)\n" +"test_posonly_opt_kwonly_opt($module, __a, __b=None, *, c=None, d=None)\n" "--\n" "\n"); @@ -2794,7 +2795,7 @@ exit: static PyObject * test_posonly_opt_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=68844c45143d1668 input=1e557dc979d120fd]*/ +/*[clinic end generated code: output=e61a63671391510b input=1e557dc979d120fd]*/ /*[clinic input] @@ -2811,7 +2812,7 @@ test_posonly_keywords_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_kwonly_opt__doc__, -"test_posonly_keywords_kwonly_opt($module, a, /, b, *, c, d=None, e=None)\n" +"test_posonly_keywords_kwonly_opt($module, __a, b, *, c, d=None, e=None)\n" "--\n" "\n"); @@ -2865,7 +2866,7 @@ static PyObject * test_posonly_keywords_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e) -/*[clinic end generated code: output=996ff645551897ac input=c3884a4f956fdc89]*/ +/*[clinic end generated code: output=dfa62cca553c294f input=c3884a4f956fdc89]*/ /*[clinic input] @@ -2881,7 +2882,7 @@ test_posonly_keywords_kwonly_opt2 [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_kwonly_opt2__doc__, -"test_posonly_keywords_kwonly_opt2($module, a, /, b, *, c=None, d=None)\n" +"test_posonly_keywords_kwonly_opt2($module, __a, b, *, c=None, d=None)\n" "--\n" "\n"); @@ -2931,7 +2932,7 @@ exit: static PyObject * test_posonly_keywords_kwonly_opt2_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d) -/*[clinic end generated code: output=e5a3e992fd4b28b3 input=68d01d7c0f6dafb0]*/ +/*[clinic end generated code: output=c1e9dd2ecf6d05c3 input=68d01d7c0f6dafb0]*/ /*[clinic input] @@ -2948,7 +2949,7 @@ test_posonly_keywords_opt_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_opt_kwonly_opt__doc__, -"test_posonly_keywords_opt_kwonly_opt($module, a, /, b, c=None, *,\n" +"test_posonly_keywords_opt_kwonly_opt($module, __a, b, c=None, *,\n" " d=None, e=None)\n" "--\n" "\n"); @@ -3012,7 +3013,7 @@ static PyObject * test_posonly_keywords_opt_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e) -/*[clinic end generated code: output=ff9fb6c3d2cbbaa4 input=d0883d45876f186c]*/ +/*[clinic end generated code: output=58ce93ed24cc4624 input=d0883d45876f186c]*/ /*[clinic input] @@ -3029,7 +3030,7 @@ test_posonly_keywords_opt2_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_keywords_opt2_kwonly_opt__doc__, -"test_posonly_keywords_opt2_kwonly_opt($module, a, /, b=None, c=None, *,\n" +"test_posonly_keywords_opt2_kwonly_opt($module, __a, b=None, c=None, *,\n" " d=None, e=None)\n" "--\n" "\n"); @@ -3098,7 +3099,7 @@ static PyObject * test_posonly_keywords_opt2_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e) -/*[clinic end generated code: output=c809d7a84a2205e1 input=c95e2e1ec93035ad]*/ +/*[clinic end generated code: output=2dd7c662cf7ddd10 input=c95e2e1ec93035ad]*/ /*[clinic input] @@ -3116,8 +3117,9 @@ test_posonly_opt_keywords_opt_kwonly_opt [clinic start generated code]*/ PyDoc_STRVAR(test_posonly_opt_keywords_opt_kwonly_opt__doc__, -"test_posonly_opt_keywords_opt_kwonly_opt($module, a, b=None, /, c=None,\n" -" d=None, *, e=None, f=None)\n" +"test_posonly_opt_keywords_opt_kwonly_opt($module, __a, __b=None,\n" +" c=None, d=None, *, e=None,\n" +" f=None)\n" "--\n" "\n"); @@ -3194,4 +3196,4 @@ test_posonly_opt_keywords_opt_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c, PyObject *d, PyObject *e, PyObject *f) -/*[clinic end generated code: output=719e4f6c224402d4 input=9914857713c5bbf8]*/ +/*[clinic end generated code: output=39e49478fc160796 input=9914857713c5bbf8]*/ diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 7c68b2c0fc2c20..675119eaa94ae0 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -131,14 +131,14 @@ def test_docstring_signature_parsing(self): self.assertEqual(_testcapi.docstring_no_signature.__text_signature__, None) self.assertEqual(_testcapi.docstring_with_invalid_signature.__doc__, - "docstring_with_invalid_signature($module, /, boo)\n" + "docstring_with_invalid_signature($module, boo)\n" "\n" "This docstring has an invalid signature." ) self.assertEqual(_testcapi.docstring_with_invalid_signature.__text_signature__, None) self.assertEqual(_testcapi.docstring_with_invalid_signature2.__doc__, - "docstring_with_invalid_signature2($module, /, boo)\n" + "docstring_with_invalid_signature2($module, boo)\n" "\n" "--\n" "\n" @@ -148,16 +148,16 @@ def test_docstring_signature_parsing(self): self.assertEqual(_testcapi.docstring_with_signature.__doc__, "This docstring has a valid signature.") - self.assertEqual(_testcapi.docstring_with_signature.__text_signature__, "($module, /, sig)") + self.assertEqual(_testcapi.docstring_with_signature.__text_signature__, "($module, sig)") self.assertEqual(_testcapi.docstring_with_signature_but_no_doc.__doc__, None) self.assertEqual(_testcapi.docstring_with_signature_but_no_doc.__text_signature__, - "($module, /, sig)") + "($module, sig)") self.assertEqual(_testcapi.docstring_with_signature_and_extra_newlines.__doc__, "\nThis docstring has a valid signature and some extra newlines.") self.assertEqual(_testcapi.docstring_with_signature_and_extra_newlines.__text_signature__, - "($module, /, parameter)") + "($module, parameter)") def test_c_type_with_matrix_multiplication(self): M = _testcapi.matmulType diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py index 244c5fecd34915..e9b5e0e9d65664 100644 --- a/Lib/test/test_clinic.py +++ b/Lib/test/test_clinic.py @@ -368,7 +368,7 @@ def test_function_docstring(self): Perform a stat system call on the given path.""") self.assertEqual(""" -stat($module, /, path) +stat($module, path) -- Perform a stat system call on the given path. @@ -390,7 +390,7 @@ def test_explicit_parameters_in_docstring(self): Okay, we're done here. """) self.assertEqual(""" -bar($module, /, x, y) +bar($module, x, y) -- This is the documentation for foo. @@ -408,7 +408,7 @@ def test_parser_regression_special_character_in_parameter_column_of_docstring_fi path: str This/used to break Clinic! """) - self.assertEqual("stat($module, /, path)\n--\n\nThis/used to break Clinic!", function.docstring) + self.assertEqual("stat($module, path)\n--\n\nThis/used to break Clinic!", function.docstring) def test_c_name(self): function = self.parse_function("module os\nos.stat as os_stat_fn") @@ -638,7 +638,7 @@ def test_no_parameters(self): Docstring """) - self.assertEqual("bar($module, /)\n--\n\nDocstring", function.docstring) + self.assertEqual("bar($module)\n--\n\nDocstring", function.docstring) self.assertEqual(1, len(function.parameters)) # self! def test_init_with_no_parameters(self): @@ -747,7 +747,7 @@ def test_function_not_at_column_0(self): Not at column 0! """) self.assertEqual(""" -bar($module, /, x, *, y) +bar($module, x, *, y) -- Not at column 0! diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 1f37b5372a3e7e..ca9868746fae05 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -5493,7 +5493,7 @@ def test_inspect_module(self): c_sig = inspect.signature(c_func) # parameter names: - c_names = list(c_sig.parameters.keys()) + c_names = [x.lstrip('_') for x in c_sig.parameters.keys()] p_names = [x for x in p_sig.parameters.keys() if not x.startswith('_')] @@ -5547,7 +5547,7 @@ def mkargs(module, sig): for name, param in sig.parameters.items(): if name == 'self': continue if param.kind == POS: - args.append(pdict[module][name]) + args.append(pdict[module][name.lstrip('_')]) elif param.kind == POS_KWD: kwargs[name] = pdict[module][name] else: @@ -5576,7 +5576,7 @@ def doit(ty): # parameter names: p_names = list(p_sig.parameters.keys()) - c_names = [tr(x) for x in c_sig.parameters.keys()] + c_names = [tr(x.lstrip('_')) for x in c_sig.parameters.keys()] self.assertEqual(c_names, p_names, msg="parameter name mismatch in %s" % p_func) diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index bc675aa5df21dd..1a183635f64050 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -870,10 +870,10 @@ def test(): pass "Signature information for builtins requires docstrings") def test_getfullargspec_builtin_methods(self): self.assertFullArgSpecEquals(_pickle.Pickler.dump, - args_e=['self', 'obj'], formatted='(self, obj)') + args_e=['self', '__obj'], formatted='(self, __obj)') self.assertFullArgSpecEquals(_pickle.Pickler(io.BytesIO()).dump, - args_e=['self', 'obj'], formatted='(self, obj)') + args_e=['self', '__obj'], formatted='(self, __obj)') self.assertFullArgSpecEquals( os.stat, @@ -2635,7 +2635,7 @@ def foo(a, b, c, d, **kwargs): params['b'] = params['b'].replace(kind=Parameter.POSITIONAL_ONLY) foo.__signature__ = inspect.Signature(params.values()) sig = inspect.signature(foo) - self.assertEqual(str(sig), '(a, b, /, c, d, **kwargs)') + self.assertEqual(str(sig), '(__a, __b, c, d, **kwargs)') self.assertEqual(self.signature(partial(foo, 1)), ((('b', ..., ..., 'positional_only'), @@ -3073,20 +3073,20 @@ def test(a_po, *, b, **kwargs): test.__signature__ = sig.replace(parameters=new_params) self.assertEqual(str(inspect.signature(test)), - '(a_po, /, *, b, **kwargs)') + '(__a_po, *, b, **kwargs)') self.assertEqual(str(S(parameters=[P('foo', P.POSITIONAL_ONLY)])), - '(foo, /)') + '(__foo)') self.assertEqual(str(S(parameters=[ P('foo', P.POSITIONAL_ONLY), P('bar', P.VAR_KEYWORD)])), - '(foo, /, **bar)') + '(__foo, **bar)') self.assertEqual(str(S(parameters=[ P('foo', P.POSITIONAL_ONLY), P('bar', P.VAR_POSITIONAL)])), - '(foo, /, *bar)') + '(__foo, *bar)') def test_signature_replace_anno(self): def test() -> 42: diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index c2bd9f3012c1ae..df37cf877617c8 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -1098,7 +1098,7 @@ def test_unbound_python_method(self): @requires_docstrings def test_unbound_builtin_method(self): self.assertEqual(self._get_summary_line(_pickle.Pickler.dump), - "dump(self, obj, /)") + "dump(__self, __obj)") # these no longer include "self" def test_bound_python_method(self): @@ -1126,7 +1126,7 @@ def test_bound_builtin_method(self): s = StringIO() p = _pickle.Pickler(s) self.assertEqual(self._get_summary_line(p.dump), - "dump(obj, /) method of _pickle.Pickler instance") + "dump(__obj) method of _pickle.Pickler instance") # this should *never* include self! @requires_docstrings diff --git a/Modules/_blake2/clinic/blake2b_impl.c.h b/Modules/_blake2/clinic/blake2b_impl.c.h index 09fe00457f352d..750b621c5c55e0 100644 --- a/Modules/_blake2/clinic/blake2b_impl.c.h +++ b/Modules/_blake2/clinic/blake2b_impl.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(py_blake2b_new__doc__, -"blake2b(data=b\'\', /, *, digest_size=_blake2.blake2b.MAX_DIGEST_SIZE,\n" +"blake2b(__data=b\'\', *, digest_size=_blake2.blake2b.MAX_DIGEST_SIZE,\n" " key=b\'\', salt=b\'\', person=b\'\', fanout=1, depth=1, leaf_size=0,\n" " node_offset=0, node_depth=0, inner_size=0, last_node=False)\n" "--\n" @@ -200,7 +200,7 @@ py_blake2b_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_blake2_blake2b_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -218,7 +218,7 @@ _blake2_blake2b_copy(BLAKE2bObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_blake2_blake2b_update__doc__, -"update($self, data, /)\n" +"update($self, __data)\n" "--\n" "\n" "Update this hash object\'s state with the provided bytes-like object."); @@ -227,7 +227,7 @@ PyDoc_STRVAR(_blake2_blake2b_update__doc__, {"update", (PyCFunction)_blake2_blake2b_update, METH_O, _blake2_blake2b_update__doc__}, PyDoc_STRVAR(_blake2_blake2b_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -245,7 +245,7 @@ _blake2_blake2b_digest(BLAKE2bObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_blake2_blake2b_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -261,4 +261,4 @@ _blake2_blake2b_hexdigest(BLAKE2bObject *self, PyObject *Py_UNUSED(ignored)) { return _blake2_blake2b_hexdigest_impl(self); } -/*[clinic end generated code: output=a91d182ce1109f34 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=57d19947f22a85de input=a9049054013a1b77]*/ diff --git a/Modules/_blake2/clinic/blake2s_impl.c.h b/Modules/_blake2/clinic/blake2s_impl.c.h index 92739a1feb321e..d34d156ea43155 100644 --- a/Modules/_blake2/clinic/blake2s_impl.c.h +++ b/Modules/_blake2/clinic/blake2s_impl.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(py_blake2s_new__doc__, -"blake2s(data=b\'\', /, *, digest_size=_blake2.blake2s.MAX_DIGEST_SIZE,\n" +"blake2s(__data=b\'\', *, digest_size=_blake2.blake2s.MAX_DIGEST_SIZE,\n" " key=b\'\', salt=b\'\', person=b\'\', fanout=1, depth=1, leaf_size=0,\n" " node_offset=0, node_depth=0, inner_size=0, last_node=False)\n" "--\n" @@ -200,7 +200,7 @@ py_blake2s_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_blake2_blake2s_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -218,7 +218,7 @@ _blake2_blake2s_copy(BLAKE2sObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_blake2_blake2s_update__doc__, -"update($self, data, /)\n" +"update($self, __data)\n" "--\n" "\n" "Update this hash object\'s state with the provided bytes-like object."); @@ -227,7 +227,7 @@ PyDoc_STRVAR(_blake2_blake2s_update__doc__, {"update", (PyCFunction)_blake2_blake2s_update, METH_O, _blake2_blake2s_update__doc__}, PyDoc_STRVAR(_blake2_blake2s_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -245,7 +245,7 @@ _blake2_blake2s_digest(BLAKE2sObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_blake2_blake2s_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -261,4 +261,4 @@ _blake2_blake2s_hexdigest(BLAKE2sObject *self, PyObject *Py_UNUSED(ignored)) { return _blake2_blake2s_hexdigest_impl(self); } -/*[clinic end generated code: output=ae8e9b7301d092b4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7d657ed421cec272 input=a9049054013a1b77]*/ diff --git a/Modules/_decimal/docstrings.h b/Modules/_decimal/docstrings.h index f7fd6e79529984..9f225c0dc70b61 100644 --- a/Modules/_decimal/docstrings.h +++ b/Modules/_decimal/docstrings.h @@ -20,17 +20,17 @@ PyDoc_STRVAR(doc__decimal, "C decimal arithmetic module"); PyDoc_STRVAR(doc_getcontext, -"getcontext($module, /)\n--\n\n\ +"getcontext($module)\n--\n\n\ Get the current default context.\n\ \n"); PyDoc_STRVAR(doc_setcontext, -"setcontext($module, context, /)\n--\n\n\ +"setcontext($module, __context)\n--\n\n\ Set a new default context.\n\ \n"); PyDoc_STRVAR(doc_localcontext, -"localcontext($module, /, ctx=None)\n--\n\n\ +"localcontext($module, ctx=None)\n--\n\n\ Return a context manager that will set the default context to a copy of ctx\n\ on entry to the with-statement and restore the previous default context when\n\ exiting the with-statement. If no context is specified, a copy of the current\n\ @@ -39,7 +39,7 @@ default context is used.\n\ #ifdef EXTRA_FUNCTIONALITY PyDoc_STRVAR(doc_ieee_context, -"IEEEContext($module, bits, /)\n--\n\n\ +"IEEEContext($module, __bits)\n--\n\n\ Return a context object initialized to the proper values for one of the\n\ IEEE interchange formats. The argument must be a multiple of 32 and less\n\ than IEEE_CONTEXT_MAX_BITS. For the most common values, the constants\n\ @@ -61,17 +61,17 @@ the InvalidOperation trap is active.\n\ \n"); PyDoc_STRVAR(doc_adjusted, -"adjusted($self, /)\n--\n\n\ +"adjusted($self)\n--\n\n\ Return the adjusted exponent of the number. Defined as exp + digits - 1.\n\ \n"); PyDoc_STRVAR(doc_as_tuple, -"as_tuple($self, /)\n--\n\n\ +"as_tuple($self)\n--\n\n\ Return a tuple representation of the number.\n\ \n"); PyDoc_STRVAR(doc_as_integer_ratio, -"as_integer_ratio($self, /)\n--\n\n\ +"as_integer_ratio($self)\n--\n\n\ Decimal.as_integer_ratio() -> (int, int)\n\ \n\ Return a pair of integers, whose ratio is exactly equal to the original\n\ @@ -80,14 +80,14 @@ Raise OverflowError on infinities and a ValueError on NaNs.\n\ \n"); PyDoc_STRVAR(doc_canonical, -"canonical($self, /)\n--\n\n\ +"canonical($self)\n--\n\n\ Return the canonical encoding of the argument. Currently, the encoding\n\ of a Decimal instance is always canonical, so this operation returns its\n\ argument unchanged.\n\ \n"); PyDoc_STRVAR(doc_compare, -"compare($self, /, other, context=None)\n--\n\n\ +"compare($self, other, context=None)\n--\n\n\ Compare self to other. Return a decimal value:\n\ \n\ a or b is a NaN ==> Decimal('NaN')\n\ @@ -97,12 +97,12 @@ Compare self to other. Return a decimal value:\n\ \n"); PyDoc_STRVAR(doc_compare_signal, -"compare_signal($self, /, other, context=None)\n--\n\n\ +"compare_signal($self, other, context=None)\n--\n\n\ Identical to compare, except that all NaNs signal.\n\ \n"); PyDoc_STRVAR(doc_compare_total, -"compare_total($self, /, other, context=None)\n--\n\n\ +"compare_total($self, other, context=None)\n--\n\n\ Compare two operands using their abstract representation rather than\n\ their numerical value. Similar to the compare() method, but the result\n\ gives a total ordering on Decimal instances. Two Decimal instances with\n\ @@ -124,7 +124,7 @@ InvalidOperation if the second operand cannot be converted exactly.\n\ \n"); PyDoc_STRVAR(doc_compare_total_mag, -"compare_total_mag($self, /, other, context=None)\n--\n\n\ +"compare_total_mag($self, other, context=None)\n--\n\n\ Compare two operands using their abstract representation rather than their\n\ value as in compare_total(), but ignoring the sign of each operand.\n\ \n\ @@ -136,24 +136,24 @@ InvalidOperation if the second operand cannot be converted exactly.\n\ \n"); PyDoc_STRVAR(doc_conjugate, -"conjugate($self, /)\n--\n\n\ +"conjugate($self)\n--\n\n\ Return self.\n\ \n"); PyDoc_STRVAR(doc_copy_abs, -"copy_abs($self, /)\n--\n\n\ +"copy_abs($self)\n--\n\n\ Return the absolute value of the argument. This operation is unaffected by\n\ context and is quiet: no flags are changed and no rounding is performed.\n\ \n"); PyDoc_STRVAR(doc_copy_negate, -"copy_negate($self, /)\n--\n\n\ +"copy_negate($self)\n--\n\n\ Return the negation of the argument. This operation is unaffected by context\n\ and is quiet: no flags are changed and no rounding is performed.\n\ \n"); PyDoc_STRVAR(doc_copy_sign, -"copy_sign($self, /, other, context=None)\n--\n\n\ +"copy_sign($self, other, context=None)\n--\n\n\ Return a copy of the first operand with the sign set to be the same as the\n\ sign of the second operand. For example:\n\ \n\ @@ -166,14 +166,14 @@ InvalidOperation if the second operand cannot be converted exactly.\n\ \n"); PyDoc_STRVAR(doc_exp, -"exp($self, /, context=None)\n--\n\n\ +"exp($self, context=None)\n--\n\n\ Return the value of the (natural) exponential function e**x at the given\n\ number. The function always uses the ROUND_HALF_EVEN mode and the result\n\ is correctly rounded.\n\ \n"); PyDoc_STRVAR(doc_from_float, -"from_float($type, f, /)\n--\n\n\ +"from_float($type, __f)\n--\n\n\ Class method that converts a float to a decimal number, exactly.\n\ Since 0.1 is not exactly representable in binary floating point,\n\ Decimal.from_float(0.1) is not the same as Decimal('0.1').\n\ @@ -190,7 +190,7 @@ Decimal.from_float(0.1) is not the same as Decimal('0.1').\n\ \n"); PyDoc_STRVAR(doc_fma, -"fma($self, /, other, third, context=None)\n--\n\n\ +"fma($self, other, third, context=None)\n--\n\n\ Fused multiply-add. Return self*other+third with no rounding of the\n\ intermediate product self*other.\n\ \n\ @@ -200,80 +200,80 @@ intermediate product self*other.\n\ \n"); PyDoc_STRVAR(doc_is_canonical, -"is_canonical($self, /)\n--\n\n\ +"is_canonical($self)\n--\n\n\ Return True if the argument is canonical and False otherwise. Currently,\n\ a Decimal instance is always canonical, so this operation always returns\n\ True.\n\ \n"); PyDoc_STRVAR(doc_is_finite, -"is_finite($self, /)\n--\n\n\ +"is_finite($self)\n--\n\n\ Return True if the argument is a finite number, and False if the argument\n\ is infinite or a NaN.\n\ \n"); PyDoc_STRVAR(doc_is_infinite, -"is_infinite($self, /)\n--\n\n\ +"is_infinite($self)\n--\n\n\ Return True if the argument is either positive or negative infinity and\n\ False otherwise.\n\ \n"); PyDoc_STRVAR(doc_is_nan, -"is_nan($self, /)\n--\n\n\ +"is_nan($self)\n--\n\n\ Return True if the argument is a (quiet or signaling) NaN and False\n\ otherwise.\n\ \n"); PyDoc_STRVAR(doc_is_normal, -"is_normal($self, /, context=None)\n--\n\n\ +"is_normal($self, context=None)\n--\n\n\ Return True if the argument is a normal finite non-zero number with an\n\ adjusted exponent greater than or equal to Emin. Return False if the\n\ argument is zero, subnormal, infinite or a NaN.\n\ \n"); PyDoc_STRVAR(doc_is_qnan, -"is_qnan($self, /)\n--\n\n\ +"is_qnan($self)\n--\n\n\ Return True if the argument is a quiet NaN, and False otherwise.\n\ \n"); PyDoc_STRVAR(doc_is_signed, -"is_signed($self, /)\n--\n\n\ +"is_signed($self)\n--\n\n\ Return True if the argument has a negative sign and False otherwise.\n\ Note that both zeros and NaNs can carry signs.\n\ \n"); PyDoc_STRVAR(doc_is_snan, -"is_snan($self, /)\n--\n\n\ +"is_snan($self)\n--\n\n\ Return True if the argument is a signaling NaN and False otherwise.\n\ \n"); PyDoc_STRVAR(doc_is_subnormal, -"is_subnormal($self, /, context=None)\n--\n\n\ +"is_subnormal($self, context=None)\n--\n\n\ Return True if the argument is subnormal, and False otherwise. A number is\n\ subnormal if it is non-zero, finite, and has an adjusted exponent less\n\ than Emin.\n\ \n"); PyDoc_STRVAR(doc_is_zero, -"is_zero($self, /)\n--\n\n\ +"is_zero($self)\n--\n\n\ Return True if the argument is a (positive or negative) zero and False\n\ otherwise.\n\ \n"); PyDoc_STRVAR(doc_ln, -"ln($self, /, context=None)\n--\n\n\ +"ln($self, context=None)\n--\n\n\ Return the natural (base e) logarithm of the operand. The function always\n\ uses the ROUND_HALF_EVEN mode and the result is correctly rounded.\n\ \n"); PyDoc_STRVAR(doc_log10, -"log10($self, /, context=None)\n--\n\n\ +"log10($self, context=None)\n--\n\n\ Return the base ten logarithm of the operand. The function always uses the\n\ ROUND_HALF_EVEN mode and the result is correctly rounded.\n\ \n"); PyDoc_STRVAR(doc_logb, -"logb($self, /, context=None)\n--\n\n\ +"logb($self, context=None)\n--\n\n\ For a non-zero number, return the adjusted exponent of the operand as a\n\ Decimal instance. If the operand is a zero, then Decimal('-Infinity') is\n\ returned and the DivisionByZero condition is raised. If the operand is\n\ @@ -281,65 +281,65 @@ an infinity then Decimal('Infinity') is returned.\n\ \n"); PyDoc_STRVAR(doc_logical_and, -"logical_and($self, /, other, context=None)\n--\n\n\ +"logical_and($self, other, context=None)\n--\n\n\ Return the digit-wise 'and' of the two (logical) operands.\n\ \n"); PyDoc_STRVAR(doc_logical_invert, -"logical_invert($self, /, context=None)\n--\n\n\ +"logical_invert($self, context=None)\n--\n\n\ Return the digit-wise inversion of the (logical) operand.\n\ \n"); PyDoc_STRVAR(doc_logical_or, -"logical_or($self, /, other, context=None)\n--\n\n\ +"logical_or($self, other, context=None)\n--\n\n\ Return the digit-wise 'or' of the two (logical) operands.\n\ \n"); PyDoc_STRVAR(doc_logical_xor, -"logical_xor($self, /, other, context=None)\n--\n\n\ +"logical_xor($self, other, context=None)\n--\n\n\ Return the digit-wise 'exclusive or' of the two (logical) operands.\n\ \n"); PyDoc_STRVAR(doc_max, -"max($self, /, other, context=None)\n--\n\n\ +"max($self, other, context=None)\n--\n\n\ Maximum of self and other. If one operand is a quiet NaN and the other is\n\ numeric, the numeric operand is returned.\n\ \n"); PyDoc_STRVAR(doc_max_mag, -"max_mag($self, /, other, context=None)\n--\n\n\ +"max_mag($self, other, context=None)\n--\n\n\ Similar to the max() method, but the comparison is done using the absolute\n\ values of the operands.\n\ \n"); PyDoc_STRVAR(doc_min, -"min($self, /, other, context=None)\n--\n\n\ +"min($self, other, context=None)\n--\n\n\ Minimum of self and other. If one operand is a quiet NaN and the other is\n\ numeric, the numeric operand is returned.\n\ \n"); PyDoc_STRVAR(doc_min_mag, -"min_mag($self, /, other, context=None)\n--\n\n\ +"min_mag($self, other, context=None)\n--\n\n\ Similar to the min() method, but the comparison is done using the absolute\n\ values of the operands.\n\ \n"); PyDoc_STRVAR(doc_next_minus, -"next_minus($self, /, context=None)\n--\n\n\ +"next_minus($self, context=None)\n--\n\n\ Return the largest number representable in the given context (or in the\n\ current default context if no context is given) that is smaller than the\n\ given operand.\n\ \n"); PyDoc_STRVAR(doc_next_plus, -"next_plus($self, /, context=None)\n--\n\n\ +"next_plus($self, context=None)\n--\n\n\ Return the smallest number representable in the given context (or in the\n\ current default context if no context is given) that is larger than the\n\ given operand.\n\ \n"); PyDoc_STRVAR(doc_next_toward, -"next_toward($self, /, other, context=None)\n--\n\n\ +"next_toward($self, other, context=None)\n--\n\n\ If the two operands are unequal, return the number closest to the first\n\ operand in the direction of the second operand. If both operands are\n\ numerically equal, return a copy of the first operand with the sign set\n\ @@ -347,7 +347,7 @@ to be the same as the sign of the second operand.\n\ \n"); PyDoc_STRVAR(doc_normalize, -"normalize($self, /, context=None)\n--\n\n\ +"normalize($self, context=None)\n--\n\n\ Normalize the number by stripping the rightmost trailing zeros and\n\ converting any result equal to Decimal('0') to Decimal('0e0'). Used\n\ for producing canonical values for members of an equivalence class.\n\ @@ -356,7 +356,7 @@ to the equivalent value Decimal('32.1').\n\ \n"); PyDoc_STRVAR(doc_number_class, -"number_class($self, /, context=None)\n--\n\n\ +"number_class($self, context=None)\n--\n\n\ Return a string describing the class of the operand. The returned value\n\ is one of the following ten strings:\n\ \n\ @@ -374,7 +374,7 @@ is one of the following ten strings:\n\ \n"); PyDoc_STRVAR(doc_quantize, -"quantize($self, /, exp, rounding=None, context=None)\n--\n\n\ +"quantize($self, exp, rounding=None, context=None)\n--\n\n\ Return a value equal to the first operand after rounding and having the\n\ exponent of the second operand.\n\ \n\ @@ -396,13 +396,13 @@ argument is given, the rounding mode of the current thread's context is used.\n\ \n"); PyDoc_STRVAR(doc_radix, -"radix($self, /)\n--\n\n\ +"radix($self)\n--\n\n\ Return Decimal(10), the radix (base) in which the Decimal class does\n\ all its arithmetic. Included for compatibility with the specification.\n\ \n"); PyDoc_STRVAR(doc_remainder_near, -"remainder_near($self, /, other, context=None)\n--\n\n\ +"remainder_near($self, other, context=None)\n--\n\n\ Return the remainder from dividing self by other. This differs from\n\ self % other in that the sign of the remainder is chosen so as to minimize\n\ its absolute value. More precisely, the return value is self - n * other\n\ @@ -413,7 +413,7 @@ If the result is zero then its sign will be the sign of self.\n\ \n"); PyDoc_STRVAR(doc_rotate, -"rotate($self, /, other, context=None)\n--\n\n\ +"rotate($self, other, context=None)\n--\n\n\ Return the result of rotating the digits of the first operand by an amount\n\ specified by the second operand. The second operand must be an integer in\n\ the range -precision through precision. The absolute value of the second\n\ @@ -425,7 +425,7 @@ unchanged.\n\ \n"); PyDoc_STRVAR(doc_same_quantum, -"same_quantum($self, /, other, context=None)\n--\n\n\ +"same_quantum($self, other, context=None)\n--\n\n\ Test whether self and other have the same exponent or whether both are NaN.\n\ \n\ This operation is unaffected by context and is quiet: no flags are changed\n\ @@ -434,14 +434,14 @@ InvalidOperation if the second operand cannot be converted exactly.\n\ \n"); PyDoc_STRVAR(doc_scaleb, -"scaleb($self, /, other, context=None)\n--\n\n\ +"scaleb($self, other, context=None)\n--\n\n\ Return the first operand with the exponent adjusted the second. Equivalently,\n\ return the first operand multiplied by 10**other. The second operand must be\n\ an integer.\n\ \n"); PyDoc_STRVAR(doc_shift, -"shift($self, /, other, context=None)\n--\n\n\ +"shift($self, other, context=None)\n--\n\n\ Return the result of shifting the digits of the first operand by an amount\n\ specified by the second operand. The second operand must be an integer in\n\ the range -precision through precision. The absolute value of the second\n\ @@ -452,13 +452,13 @@ of the first operand are unchanged.\n\ \n"); PyDoc_STRVAR(doc_sqrt, -"sqrt($self, /, context=None)\n--\n\n\ +"sqrt($self, context=None)\n--\n\n\ Return the square root of the argument to full precision. The result is\n\ correctly rounded using the ROUND_HALF_EVEN rounding mode.\n\ \n"); PyDoc_STRVAR(doc_to_eng_string, -"to_eng_string($self, /, context=None)\n--\n\n\ +"to_eng_string($self, context=None)\n--\n\n\ Convert to an engineering-type string. Engineering notation has an exponent\n\ which is a multiple of 3, so there are up to 3 digits left of the decimal\n\ place. For example, Decimal('123E+1') is converted to Decimal('1.23E+3').\n\ @@ -468,13 +468,13 @@ or upper case. Otherwise, the context does not affect the operation.\n\ \n"); PyDoc_STRVAR(doc_to_integral, -"to_integral($self, /, rounding=None, context=None)\n--\n\n\ +"to_integral($self, rounding=None, context=None)\n--\n\n\ Identical to the to_integral_value() method. The to_integral() name has been\n\ kept for compatibility with older versions.\n\ \n"); PyDoc_STRVAR(doc_to_integral_exact, -"to_integral_exact($self, /, rounding=None, context=None)\n--\n\n\ +"to_integral_exact($self, rounding=None, context=None)\n--\n\n\ Round to the nearest integer, signaling Inexact or Rounded as appropriate if\n\ rounding occurs. The rounding mode is determined by the rounding parameter\n\ if given, else by the given context. If neither parameter is given, then the\n\ @@ -482,7 +482,7 @@ rounding mode of the current default context is used.\n\ \n"); PyDoc_STRVAR(doc_to_integral_value, -"to_integral_value($self, /, rounding=None, context=None)\n--\n\n\ +"to_integral_value($self, rounding=None, context=None)\n--\n\n\ Round to the nearest integer without signaling Inexact or Rounded. The\n\ rounding mode is determined by the rounding parameter if given, else by\n\ the given context. If neither parameter is given, then the rounding mode\n\ @@ -510,280 +510,280 @@ can be constructed as follows:\n\ #ifdef EXTRA_FUNCTIONALITY PyDoc_STRVAR(doc_ctx_apply, -"apply($self, x, /)\n--\n\n\ +"apply($self, __x)\n--\n\n\ Apply self to Decimal x.\n\ \n"); #endif PyDoc_STRVAR(doc_ctx_clear_flags, -"clear_flags($self, /)\n--\n\n\ +"clear_flags($self)\n--\n\n\ Reset all flags to False.\n\ \n"); PyDoc_STRVAR(doc_ctx_clear_traps, -"clear_traps($self, /)\n--\n\n\ +"clear_traps($self)\n--\n\n\ Set all traps to False.\n\ \n"); PyDoc_STRVAR(doc_ctx_copy, -"copy($self, /)\n--\n\n\ +"copy($self)\n--\n\n\ Return a duplicate of the context with all flags cleared.\n\ \n"); PyDoc_STRVAR(doc_ctx_copy_decimal, -"copy_decimal($self, x, /)\n--\n\n\ +"copy_decimal($self, __x)\n--\n\n\ Return a copy of Decimal x.\n\ \n"); PyDoc_STRVAR(doc_ctx_create_decimal, -"create_decimal($self, num=\"0\", /)\n--\n\n\ +"create_decimal($self, __num=\"0\")\n--\n\n\ Create a new Decimal instance from num, using self as the context. Unlike the\n\ Decimal constructor, this function observes the context limits.\n\ \n"); PyDoc_STRVAR(doc_ctx_create_decimal_from_float, -"create_decimal_from_float($self, f, /)\n--\n\n\ +"create_decimal_from_float($self, __f)\n--\n\n\ Create a new Decimal instance from float f. Unlike the Decimal.from_float()\n\ class method, this function observes the context limits.\n\ \n"); PyDoc_STRVAR(doc_ctx_Etiny, -"Etiny($self, /)\n--\n\n\ +"Etiny($self)\n--\n\n\ Return a value equal to Emin - prec + 1, which is the minimum exponent value\n\ for subnormal results. When underflow occurs, the exponent is set to Etiny.\n\ \n"); PyDoc_STRVAR(doc_ctx_Etop, -"Etop($self, /)\n--\n\n\ +"Etop($self)\n--\n\n\ Return a value equal to Emax - prec + 1. This is the maximum exponent\n\ if the _clamp field of the context is set to 1 (IEEE clamp mode). Etop()\n\ must not be negative.\n\ \n"); PyDoc_STRVAR(doc_ctx_abs, -"abs($self, x, /)\n--\n\n\ +"abs($self, __x)\n--\n\n\ Return the absolute value of x.\n\ \n"); PyDoc_STRVAR(doc_ctx_add, -"add($self, x, y, /)\n--\n\n\ +"add($self, __x, __y)\n--\n\n\ Return the sum of x and y.\n\ \n"); PyDoc_STRVAR(doc_ctx_canonical, -"canonical($self, x, /)\n--\n\n\ +"canonical($self, __x)\n--\n\n\ Return a new instance of x.\n\ \n"); PyDoc_STRVAR(doc_ctx_compare, -"compare($self, x, y, /)\n--\n\n\ +"compare($self, __x, __y)\n--\n\n\ Compare x and y numerically.\n\ \n"); PyDoc_STRVAR(doc_ctx_compare_signal, -"compare_signal($self, x, y, /)\n--\n\n\ +"compare_signal($self, __x, __y)\n--\n\n\ Compare x and y numerically. All NaNs signal.\n\ \n"); PyDoc_STRVAR(doc_ctx_compare_total, -"compare_total($self, x, y, /)\n--\n\n\ +"compare_total($self, __x, __y)\n--\n\n\ Compare x and y using their abstract representation.\n\ \n"); PyDoc_STRVAR(doc_ctx_compare_total_mag, -"compare_total_mag($self, x, y, /)\n--\n\n\ +"compare_total_mag($self, __x, __y)\n--\n\n\ Compare x and y using their abstract representation, ignoring sign.\n\ \n"); PyDoc_STRVAR(doc_ctx_copy_abs, -"copy_abs($self, x, /)\n--\n\n\ +"copy_abs($self, __x)\n--\n\n\ Return a copy of x with the sign set to 0.\n\ \n"); PyDoc_STRVAR(doc_ctx_copy_negate, -"copy_negate($self, x, /)\n--\n\n\ +"copy_negate($self, __x)\n--\n\n\ Return a copy of x with the sign inverted.\n\ \n"); PyDoc_STRVAR(doc_ctx_copy_sign, -"copy_sign($self, x, y, /)\n--\n\n\ +"copy_sign($self, __x, __y)\n--\n\n\ Copy the sign from y to x.\n\ \n"); PyDoc_STRVAR(doc_ctx_divide, -"divide($self, x, y, /)\n--\n\n\ +"divide($self, __x, __y)\n--\n\n\ Return x divided by y.\n\ \n"); PyDoc_STRVAR(doc_ctx_divide_int, -"divide_int($self, x, y, /)\n--\n\n\ +"divide_int($self, __x, __y)\n--\n\n\ Return x divided by y, truncated to an integer.\n\ \n"); PyDoc_STRVAR(doc_ctx_divmod, -"divmod($self, x, y, /)\n--\n\n\ +"divmod($self, __x, __y)\n--\n\n\ Return quotient and remainder of the division x / y.\n\ \n"); PyDoc_STRVAR(doc_ctx_exp, -"exp($self, x, /)\n--\n\n\ +"exp($self, __x)\n--\n\n\ Return e ** x.\n\ \n"); PyDoc_STRVAR(doc_ctx_fma, -"fma($self, x, y, z, /)\n--\n\n\ +"fma($self, __x, __y, __z)\n--\n\n\ Return x multiplied by y, plus z.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_canonical, -"is_canonical($self, x, /)\n--\n\n\ +"is_canonical($self, __x)\n--\n\n\ Return True if x is canonical, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_finite, -"is_finite($self, x, /)\n--\n\n\ +"is_finite($self, __x)\n--\n\n\ Return True if x is finite, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_infinite, -"is_infinite($self, x, /)\n--\n\n\ +"is_infinite($self, __x)\n--\n\n\ Return True if x is infinite, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_nan, -"is_nan($self, x, /)\n--\n\n\ +"is_nan($self, __x)\n--\n\n\ Return True if x is a qNaN or sNaN, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_normal, -"is_normal($self, x, /)\n--\n\n\ +"is_normal($self, __x)\n--\n\n\ Return True if x is a normal number, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_qnan, -"is_qnan($self, x, /)\n--\n\n\ +"is_qnan($self, __x)\n--\n\n\ Return True if x is a quiet NaN, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_signed, -"is_signed($self, x, /)\n--\n\n\ +"is_signed($self, __x)\n--\n\n\ Return True if x is negative, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_snan, -"is_snan($self, x, /)\n--\n\n\ +"is_snan($self, __x)\n--\n\n\ Return True if x is a signaling NaN, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_subnormal, -"is_subnormal($self, x, /)\n--\n\n\ +"is_subnormal($self, __x)\n--\n\n\ Return True if x is subnormal, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_is_zero, -"is_zero($self, x, /)\n--\n\n\ +"is_zero($self, __x)\n--\n\n\ Return True if x is a zero, False otherwise.\n\ \n"); PyDoc_STRVAR(doc_ctx_ln, -"ln($self, x, /)\n--\n\n\ +"ln($self, __x)\n--\n\n\ Return the natural (base e) logarithm of x.\n\ \n"); PyDoc_STRVAR(doc_ctx_log10, -"log10($self, x, /)\n--\n\n\ +"log10($self, __x)\n--\n\n\ Return the base 10 logarithm of x.\n\ \n"); PyDoc_STRVAR(doc_ctx_logb, -"logb($self, x, /)\n--\n\n\ +"logb($self, __x)\n--\n\n\ Return the exponent of the magnitude of the operand's MSD.\n\ \n"); PyDoc_STRVAR(doc_ctx_logical_and, -"logical_and($self, x, y, /)\n--\n\n\ +"logical_and($self, __x, __y)\n--\n\n\ Digit-wise and of x and y.\n\ \n"); PyDoc_STRVAR(doc_ctx_logical_invert, -"logical_invert($self, x, /)\n--\n\n\ +"logical_invert($self, __x)\n--\n\n\ Invert all digits of x.\n\ \n"); PyDoc_STRVAR(doc_ctx_logical_or, -"logical_or($self, x, y, /)\n--\n\n\ +"logical_or($self, __x, __y)\n--\n\n\ Digit-wise or of x and y.\n\ \n"); PyDoc_STRVAR(doc_ctx_logical_xor, -"logical_xor($self, x, y, /)\n--\n\n\ +"logical_xor($self, __x, __y)\n--\n\n\ Digit-wise xor of x and y.\n\ \n"); PyDoc_STRVAR(doc_ctx_max, -"max($self, x, y, /)\n--\n\n\ +"max($self, __x, __y)\n--\n\n\ Compare the values numerically and return the maximum.\n\ \n"); PyDoc_STRVAR(doc_ctx_max_mag, -"max_mag($self, x, y, /)\n--\n\n\ +"max_mag($self, __x, __y)\n--\n\n\ Compare the values numerically with their sign ignored.\n\ \n"); PyDoc_STRVAR(doc_ctx_min, -"min($self, x, y, /)\n--\n\n\ +"min($self, __x, __y)\n--\n\n\ Compare the values numerically and return the minimum.\n\ \n"); PyDoc_STRVAR(doc_ctx_min_mag, -"min_mag($self, x, y, /)\n--\n\n\ +"min_mag($self, __x, __y)\n--\n\n\ Compare the values numerically with their sign ignored.\n\ \n"); PyDoc_STRVAR(doc_ctx_minus, -"minus($self, x, /)\n--\n\n\ +"minus($self, __x)\n--\n\n\ Minus corresponds to the unary prefix minus operator in Python, but applies\n\ the context to the result.\n\ \n"); PyDoc_STRVAR(doc_ctx_multiply, -"multiply($self, x, y, /)\n--\n\n\ +"multiply($self, __x, __y)\n--\n\n\ Return the product of x and y.\n\ \n"); PyDoc_STRVAR(doc_ctx_next_minus, -"next_minus($self, x, /)\n--\n\n\ +"next_minus($self, __x)\n--\n\n\ Return the largest representable number smaller than x.\n\ \n"); PyDoc_STRVAR(doc_ctx_next_plus, -"next_plus($self, x, /)\n--\n\n\ +"next_plus($self, __x)\n--\n\n\ Return the smallest representable number larger than x.\n\ \n"); PyDoc_STRVAR(doc_ctx_next_toward, -"next_toward($self, x, y, /)\n--\n\n\ +"next_toward($self, __x, __y)\n--\n\n\ Return the number closest to x, in the direction towards y.\n\ \n"); PyDoc_STRVAR(doc_ctx_normalize, -"normalize($self, x, /)\n--\n\n\ +"normalize($self, __x)\n--\n\n\ Reduce x to its simplest form. Alias for reduce(x).\n\ \n"); PyDoc_STRVAR(doc_ctx_number_class, -"number_class($self, x, /)\n--\n\n\ +"number_class($self, __x)\n--\n\n\ Return an indication of the class of x.\n\ \n"); PyDoc_STRVAR(doc_ctx_plus, -"plus($self, x, /)\n--\n\n\ +"plus($self, __x)\n--\n\n\ Plus corresponds to the unary prefix plus operator in Python, but applies\n\ the context to the result.\n\ \n"); PyDoc_STRVAR(doc_ctx_power, -"power($self, /, a, b, modulo=None)\n--\n\n\ +"power($self, a, b, modulo=None)\n--\n\n\ Compute a**b. If 'a' is negative, then 'b' must be integral. The result\n\ will be inexact unless 'a' is integral and the result is finite and can\n\ be expressed exactly in 'precision' digits. In the Python version the\n\ @@ -801,79 +801,79 @@ hold:\n\ \n"); PyDoc_STRVAR(doc_ctx_quantize, -"quantize($self, x, y, /)\n--\n\n\ +"quantize($self, __x, __y)\n--\n\n\ Return a value equal to x (rounded), having the exponent of y.\n\ \n"); PyDoc_STRVAR(doc_ctx_radix, -"radix($self, /)\n--\n\n\ +"radix($self)\n--\n\n\ Return 10.\n\ \n"); PyDoc_STRVAR(doc_ctx_remainder, -"remainder($self, x, y, /)\n--\n\n\ +"remainder($self, __x, __y)\n--\n\n\ Return the remainder from integer division. The sign of the result,\n\ if non-zero, is the same as that of the original dividend.\n\ \n"); PyDoc_STRVAR(doc_ctx_remainder_near, -"remainder_near($self, x, y, /)\n--\n\n\ +"remainder_near($self, __x, __y)\n--\n\n\ Return x - y * n, where n is the integer nearest the exact value of x / y\n\ (if the result is 0 then its sign will be the sign of x).\n\ \n"); PyDoc_STRVAR(doc_ctx_rotate, -"rotate($self, x, y, /)\n--\n\n\ +"rotate($self, __x, __y)\n--\n\n\ Return a copy of x, rotated by y places.\n\ \n"); PyDoc_STRVAR(doc_ctx_same_quantum, -"same_quantum($self, x, y, /)\n--\n\n\ +"same_quantum($self, __x, __y)\n--\n\n\ Return True if the two operands have the same exponent.\n\ \n"); PyDoc_STRVAR(doc_ctx_scaleb, -"scaleb($self, x, y, /)\n--\n\n\ +"scaleb($self, __x, __y)\n--\n\n\ Return the first operand after adding the second value to its exp.\n\ \n"); PyDoc_STRVAR(doc_ctx_shift, -"shift($self, x, y, /)\n--\n\n\ +"shift($self, __x, __y)\n--\n\n\ Return a copy of x, shifted by y places.\n\ \n"); PyDoc_STRVAR(doc_ctx_sqrt, -"sqrt($self, x, /)\n--\n\n\ +"sqrt($self, __x)\n--\n\n\ Square root of a non-negative number to context precision.\n\ \n"); PyDoc_STRVAR(doc_ctx_subtract, -"subtract($self, x, y, /)\n--\n\n\ +"subtract($self, __x, __y)\n--\n\n\ Return the difference between x and y.\n\ \n"); PyDoc_STRVAR(doc_ctx_to_eng_string, -"to_eng_string($self, x, /)\n--\n\n\ +"to_eng_string($self, __x)\n--\n\n\ Convert a number to a string, using engineering notation.\n\ \n"); PyDoc_STRVAR(doc_ctx_to_integral, -"to_integral($self, x, /)\n--\n\n\ +"to_integral($self, __x)\n--\n\n\ Identical to to_integral_value(x).\n\ \n"); PyDoc_STRVAR(doc_ctx_to_integral_exact, -"to_integral_exact($self, x, /)\n--\n\n\ +"to_integral_exact($self, __x)\n--\n\n\ Round to an integer. Signal if the result is rounded or inexact.\n\ \n"); PyDoc_STRVAR(doc_ctx_to_integral_value, -"to_integral_value($self, x, /)\n--\n\n\ +"to_integral_value($self, __x)\n--\n\n\ Round to an integer.\n\ \n"); PyDoc_STRVAR(doc_ctx_to_sci_string, -"to_sci_string($self, x, /)\n--\n\n\ +"to_sci_string($self, __x)\n--\n\n\ Convert a number to a string using scientific notation.\n\ \n"); diff --git a/Modules/_io/clinic/_iomodule.c.h b/Modules/_io/clinic/_iomodule.c.h index 990c81c355747a..eac6361ad75b97 100644 --- a/Modules/_io/clinic/_iomodule.c.h +++ b/Modules/_io/clinic/_iomodule.c.h @@ -3,8 +3,8 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_io_open__doc__, -"open($module, /, file, mode=\'r\', buffering=-1, encoding=None,\n" -" errors=None, newline=None, closefd=True, opener=None)\n" +"open($module, file, mode=\'r\', buffering=-1, encoding=None, errors=None,\n" +" newline=None, closefd=True, opener=None)\n" "--\n" "\n" "Open file and return a stream. Raise OSError upon failure.\n" @@ -281,4 +281,4 @@ _io_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw exit: return return_value; } -/*[clinic end generated code: output=19fc9b69a5166f63 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=258e26879c986a4f input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/bufferedio.c.h b/Modules/_io/clinic/bufferedio.c.h index d5e8c8a74813c5..f6489bd3f72281 100644 --- a/Modules/_io/clinic/bufferedio.c.h +++ b/Modules/_io/clinic/bufferedio.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_io__BufferedIOBase_readinto__doc__, -"readinto($self, buffer, /)\n" +"readinto($self, __buffer)\n" "--\n" "\n"); @@ -40,7 +40,7 @@ _io__BufferedIOBase_readinto(PyObject *self, PyObject *arg) } PyDoc_STRVAR(_io__BufferedIOBase_readinto1__doc__, -"readinto1($self, buffer, /)\n" +"readinto1($self, __buffer)\n" "--\n" "\n"); @@ -77,7 +77,7 @@ _io__BufferedIOBase_readinto1(PyObject *self, PyObject *arg) } PyDoc_STRVAR(_io__BufferedIOBase_detach__doc__, -"detach($self, /)\n" +"detach($self)\n" "--\n" "\n" "Disconnect this buffer from its underlying raw stream and return it.\n" @@ -98,7 +98,7 @@ _io__BufferedIOBase_detach(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__Buffered_peek__doc__, -"peek($self, size=0, /)\n" +"peek($self, __size=0)\n" "--\n" "\n"); @@ -145,7 +145,7 @@ _io__Buffered_peek(buffered *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__Buffered_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n"); @@ -178,7 +178,7 @@ _io__Buffered_read(buffered *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__Buffered_read1__doc__, -"read1($self, size=-1, /)\n" +"read1($self, __size=-1)\n" "--\n" "\n"); @@ -225,7 +225,7 @@ _io__Buffered_read1(buffered *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__Buffered_readinto__doc__, -"readinto($self, buffer, /)\n" +"readinto($self, __buffer)\n" "--\n" "\n"); @@ -262,7 +262,7 @@ _io__Buffered_readinto(buffered *self, PyObject *arg) } PyDoc_STRVAR(_io__Buffered_readinto1__doc__, -"readinto1($self, buffer, /)\n" +"readinto1($self, __buffer)\n" "--\n" "\n"); @@ -299,7 +299,7 @@ _io__Buffered_readinto1(buffered *self, PyObject *arg) } PyDoc_STRVAR(_io__Buffered_readline__doc__, -"readline($self, size=-1, /)\n" +"readline($self, __size=-1)\n" "--\n" "\n"); @@ -332,7 +332,7 @@ _io__Buffered_readline(buffered *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__Buffered_seek__doc__, -"seek($self, target, whence=0, /)\n" +"seek($self, __target, __whence=0)\n" "--\n" "\n"); @@ -373,7 +373,7 @@ _io__Buffered_seek(buffered *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__Buffered_truncate__doc__, -"truncate($self, pos=None, /)\n" +"truncate($self, __pos=None)\n" "--\n" "\n"); @@ -518,7 +518,7 @@ _io_BufferedWriter___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_io_BufferedWriter_write__doc__, -"write($self, buffer, /)\n" +"write($self, __buffer)\n" "--\n" "\n"); @@ -553,7 +553,7 @@ _io_BufferedWriter_write(buffered *self, PyObject *arg) } PyDoc_STRVAR(_io_BufferedRWPair___init____doc__, -"BufferedRWPair(reader, writer, buffer_size=DEFAULT_BUFFER_SIZE, /)\n" +"BufferedRWPair(__reader, __writer, __buffer_size=DEFAULT_BUFFER_SIZE)\n" "--\n" "\n" "A buffered reader and writer object together.\n" @@ -672,4 +672,4 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=b22b4aedd53c340a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4caa99759db12ac9 input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/bytesio.c.h b/Modules/_io/clinic/bytesio.c.h index 8dd68f56137f09..48af632c42d350 100644 --- a/Modules/_io/clinic/bytesio.c.h +++ b/Modules/_io/clinic/bytesio.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_io_BytesIO_readable__doc__, -"readable($self, /)\n" +"readable($self)\n" "--\n" "\n" "Returns True if the IO object can be read."); @@ -21,7 +21,7 @@ _io_BytesIO_readable(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_writable__doc__, -"writable($self, /)\n" +"writable($self)\n" "--\n" "\n" "Returns True if the IO object can be written."); @@ -39,7 +39,7 @@ _io_BytesIO_writable(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_seekable__doc__, -"seekable($self, /)\n" +"seekable($self)\n" "--\n" "\n" "Returns True if the IO object can be seeked."); @@ -57,7 +57,7 @@ _io_BytesIO_seekable(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_flush__doc__, -"flush($self, /)\n" +"flush($self)\n" "--\n" "\n" "Does nothing."); @@ -75,7 +75,7 @@ _io_BytesIO_flush(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_getbuffer__doc__, -"getbuffer($self, /)\n" +"getbuffer($self)\n" "--\n" "\n" "Get a read-write view over the contents of the BytesIO object."); @@ -93,7 +93,7 @@ _io_BytesIO_getbuffer(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_getvalue__doc__, -"getvalue($self, /)\n" +"getvalue($self)\n" "--\n" "\n" "Retrieve the entire contents of the BytesIO object."); @@ -111,7 +111,7 @@ _io_BytesIO_getvalue(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_isatty__doc__, -"isatty($self, /)\n" +"isatty($self)\n" "--\n" "\n" "Always returns False.\n" @@ -131,7 +131,7 @@ _io_BytesIO_isatty(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_tell__doc__, -"tell($self, /)\n" +"tell($self)\n" "--\n" "\n" "Current file position, an integer."); @@ -149,7 +149,7 @@ _io_BytesIO_tell(bytesio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_BytesIO_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n" "Read at most size bytes, returned as a bytes object.\n" @@ -186,7 +186,7 @@ _io_BytesIO_read(bytesio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_BytesIO_read1__doc__, -"read1($self, size=-1, /)\n" +"read1($self, __size=-1)\n" "--\n" "\n" "Read at most size bytes, returned as a bytes object.\n" @@ -223,7 +223,7 @@ _io_BytesIO_read1(bytesio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_BytesIO_readline__doc__, -"readline($self, size=-1, /)\n" +"readline($self, __size=-1)\n" "--\n" "\n" "Next line from the file, as a bytes object.\n" @@ -261,7 +261,7 @@ _io_BytesIO_readline(bytesio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_BytesIO_readlines__doc__, -"readlines($self, size=None, /)\n" +"readlines($self, __size=None)\n" "--\n" "\n" "List of bytes objects, each a line from the file.\n" @@ -297,7 +297,7 @@ _io_BytesIO_readlines(bytesio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_BytesIO_readinto__doc__, -"readinto($self, buffer, /)\n" +"readinto($self, __buffer)\n" "--\n" "\n" "Read bytes into buffer.\n" @@ -338,7 +338,7 @@ _io_BytesIO_readinto(bytesio *self, PyObject *arg) } PyDoc_STRVAR(_io_BytesIO_truncate__doc__, -"truncate($self, size=None, /)\n" +"truncate($self, __size=None)\n" "--\n" "\n" "Truncate the file to at most size bytes.\n" @@ -375,7 +375,7 @@ _io_BytesIO_truncate(bytesio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_BytesIO_seek__doc__, -"seek($self, pos, whence=0, /)\n" +"seek($self, __pos, __whence=0)\n" "--\n" "\n" "Change stream position.\n" @@ -439,7 +439,7 @@ _io_BytesIO_seek(bytesio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_BytesIO_write__doc__, -"write($self, b, /)\n" +"write($self, __b)\n" "--\n" "\n" "Write bytes to file.\n" @@ -450,7 +450,7 @@ PyDoc_STRVAR(_io_BytesIO_write__doc__, {"write", (PyCFunction)_io_BytesIO_write, METH_O, _io_BytesIO_write__doc__}, PyDoc_STRVAR(_io_BytesIO_writelines__doc__, -"writelines($self, lines, /)\n" +"writelines($self, __lines)\n" "--\n" "\n" "Write lines to the file.\n" @@ -463,7 +463,7 @@ PyDoc_STRVAR(_io_BytesIO_writelines__doc__, {"writelines", (PyCFunction)_io_BytesIO_writelines, METH_O, _io_BytesIO_writelines__doc__}, PyDoc_STRVAR(_io_BytesIO_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Disable all I/O operations."); @@ -515,4 +515,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=22e8fb54874b6ee5 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1210ae4435823c33 input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/fileio.c.h b/Modules/_io/clinic/fileio.c.h index 8016e988862464..729e0b449edeee 100644 --- a/Modules/_io/clinic/fileio.c.h +++ b/Modules/_io/clinic/fileio.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_io_FileIO_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the file.\n" @@ -109,7 +109,7 @@ _io_FileIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_io_FileIO_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n" "Return the underlying file descriptor (an integer)."); @@ -127,7 +127,7 @@ _io_FileIO_fileno(fileio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_FileIO_readable__doc__, -"readable($self, /)\n" +"readable($self)\n" "--\n" "\n" "True if file was opened in a read mode."); @@ -145,7 +145,7 @@ _io_FileIO_readable(fileio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_FileIO_writable__doc__, -"writable($self, /)\n" +"writable($self)\n" "--\n" "\n" "True if file was opened in a write mode."); @@ -163,7 +163,7 @@ _io_FileIO_writable(fileio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_FileIO_seekable__doc__, -"seekable($self, /)\n" +"seekable($self)\n" "--\n" "\n" "True if file supports random-access."); @@ -181,7 +181,7 @@ _io_FileIO_seekable(fileio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_FileIO_readinto__doc__, -"readinto($self, buffer, /)\n" +"readinto($self, __buffer)\n" "--\n" "\n" "Same as RawIOBase.readinto()."); @@ -219,7 +219,7 @@ _io_FileIO_readinto(fileio *self, PyObject *arg) } PyDoc_STRVAR(_io_FileIO_readall__doc__, -"readall($self, /)\n" +"readall($self)\n" "--\n" "\n" "Read all data from the file, returned as bytes.\n" @@ -240,7 +240,7 @@ _io_FileIO_readall(fileio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_FileIO_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n" "Read at most size bytes, returned as bytes.\n" @@ -278,7 +278,7 @@ _io_FileIO_read(fileio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_FileIO_write__doc__, -"write($self, b, /)\n" +"write($self, __b)\n" "--\n" "\n" "Write buffer b to file, return number of bytes written.\n" @@ -318,7 +318,7 @@ _io_FileIO_write(fileio *self, PyObject *arg) } PyDoc_STRVAR(_io_FileIO_seek__doc__, -"seek($self, pos, whence=0, /)\n" +"seek($self, __pos, __whence=0)\n" "--\n" "\n" "Move to new file position and return the file position.\n" @@ -368,7 +368,7 @@ _io_FileIO_seek(fileio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_FileIO_tell__doc__, -"tell($self, /)\n" +"tell($self)\n" "--\n" "\n" "Current file position.\n" @@ -390,7 +390,7 @@ _io_FileIO_tell(fileio *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_FTRUNCATE) PyDoc_STRVAR(_io_FileIO_truncate__doc__, -"truncate($self, size=None, /)\n" +"truncate($self, __size=None)\n" "--\n" "\n" "Truncate the file to at most size bytes and return the truncated size.\n" @@ -427,7 +427,7 @@ _io_FileIO_truncate(fileio *self, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(HAVE_FTRUNCATE) */ PyDoc_STRVAR(_io_FileIO_isatty__doc__, -"isatty($self, /)\n" +"isatty($self)\n" "--\n" "\n" "True if the file is connected to a TTY device."); @@ -447,4 +447,4 @@ _io_FileIO_isatty(fileio *self, PyObject *Py_UNUSED(ignored)) #ifndef _IO_FILEIO_TRUNCATE_METHODDEF #define _IO_FILEIO_TRUNCATE_METHODDEF #endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */ -/*[clinic end generated code: output=7ee4f3ae584fc6d2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=64a6502e922a30e3 input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/iobase.c.h b/Modules/_io/clinic/iobase.c.h index a5c8eea3ec3aed..d08935016b8b68 100644 --- a/Modules/_io/clinic/iobase.c.h +++ b/Modules/_io/clinic/iobase.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_io__IOBase_tell__doc__, -"tell($self, /)\n" +"tell($self)\n" "--\n" "\n" "Return current stream position."); @@ -21,7 +21,7 @@ _io__IOBase_tell(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_flush__doc__, -"flush($self, /)\n" +"flush($self)\n" "--\n" "\n" "Flush write buffers, if applicable.\n" @@ -41,7 +41,7 @@ _io__IOBase_flush(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Flush and close the IO object.\n" @@ -61,7 +61,7 @@ _io__IOBase_close(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_seekable__doc__, -"seekable($self, /)\n" +"seekable($self)\n" "--\n" "\n" "Return whether object supports random access.\n" @@ -82,7 +82,7 @@ _io__IOBase_seekable(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_readable__doc__, -"readable($self, /)\n" +"readable($self)\n" "--\n" "\n" "Return whether object was opened for reading.\n" @@ -102,7 +102,7 @@ _io__IOBase_readable(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_writable__doc__, -"writable($self, /)\n" +"writable($self)\n" "--\n" "\n" "Return whether object was opened for writing.\n" @@ -122,7 +122,7 @@ _io__IOBase_writable(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n" "Returns underlying file descriptor if one exists.\n" @@ -142,7 +142,7 @@ _io__IOBase_fileno(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_isatty__doc__, -"isatty($self, /)\n" +"isatty($self)\n" "--\n" "\n" "Return whether this is an \'interactive\' stream.\n" @@ -162,7 +162,7 @@ _io__IOBase_isatty(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io__IOBase_readline__doc__, -"readline($self, size=-1, /)\n" +"readline($self, __size=-1)\n" "--\n" "\n" "Read and return a line from the stream.\n" @@ -202,7 +202,7 @@ _io__IOBase_readline(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__IOBase_readlines__doc__, -"readlines($self, hint=-1, /)\n" +"readlines($self, __hint=-1)\n" "--\n" "\n" "Return a list of lines from the stream.\n" @@ -240,7 +240,7 @@ _io__IOBase_readlines(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__IOBase_writelines__doc__, -"writelines($self, lines, /)\n" +"writelines($self, __lines)\n" "--\n" "\n"); @@ -248,7 +248,7 @@ PyDoc_STRVAR(_io__IOBase_writelines__doc__, {"writelines", (PyCFunction)_io__IOBase_writelines, METH_O, _io__IOBase_writelines__doc__}, PyDoc_STRVAR(_io__RawIOBase_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n"); @@ -295,7 +295,7 @@ _io__RawIOBase_read(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io__RawIOBase_readall__doc__, -"readall($self, /)\n" +"readall($self)\n" "--\n" "\n" "Read until EOF, using multiple read() call."); @@ -311,4 +311,4 @@ _io__RawIOBase_readall(PyObject *self, PyObject *Py_UNUSED(ignored)) { return _io__RawIOBase_readall_impl(self); } -/*[clinic end generated code: output=60e43a7cbd9f314e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c940f9b16ecff796 input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/stringio.c.h b/Modules/_io/clinic/stringio.c.h index 77a720c2a6ff10..1f3a1604346e88 100644 --- a/Modules/_io/clinic/stringio.c.h +++ b/Modules/_io/clinic/stringio.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_io_StringIO_getvalue__doc__, -"getvalue($self, /)\n" +"getvalue($self)\n" "--\n" "\n" "Retrieve the entire contents of the object."); @@ -21,7 +21,7 @@ _io_StringIO_getvalue(stringio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_StringIO_tell__doc__, -"tell($self, /)\n" +"tell($self)\n" "--\n" "\n" "Tell the current file position."); @@ -39,7 +39,7 @@ _io_StringIO_tell(stringio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_StringIO_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n" "Read at most size characters, returned as a string.\n" @@ -76,7 +76,7 @@ _io_StringIO_read(stringio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_StringIO_readline__doc__, -"readline($self, size=-1, /)\n" +"readline($self, __size=-1)\n" "--\n" "\n" "Read until newline or EOF.\n" @@ -112,7 +112,7 @@ _io_StringIO_readline(stringio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_StringIO_truncate__doc__, -"truncate($self, pos=None, /)\n" +"truncate($self, __pos=None)\n" "--\n" "\n" "Truncate size to pos.\n" @@ -150,7 +150,7 @@ _io_StringIO_truncate(stringio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_StringIO_seek__doc__, -"seek($self, pos, whence=0, /)\n" +"seek($self, __pos, __whence=0)\n" "--\n" "\n" "Change stream position.\n" @@ -214,7 +214,7 @@ _io_StringIO_seek(stringio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_StringIO_write__doc__, -"write($self, s, /)\n" +"write($self, __s)\n" "--\n" "\n" "Write string to file.\n" @@ -226,7 +226,7 @@ PyDoc_STRVAR(_io_StringIO_write__doc__, {"write", (PyCFunction)_io_StringIO_write, METH_O, _io_StringIO_write__doc__}, PyDoc_STRVAR(_io_StringIO_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the IO object.\n" @@ -296,7 +296,7 @@ _io_StringIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_io_StringIO_readable__doc__, -"readable($self, /)\n" +"readable($self)\n" "--\n" "\n" "Returns True if the IO object can be read."); @@ -314,7 +314,7 @@ _io_StringIO_readable(stringio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_StringIO_writable__doc__, -"writable($self, /)\n" +"writable($self)\n" "--\n" "\n" "Returns True if the IO object can be written."); @@ -332,7 +332,7 @@ _io_StringIO_writable(stringio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_StringIO_seekable__doc__, -"seekable($self, /)\n" +"seekable($self)\n" "--\n" "\n" "Returns True if the IO object can be seeked."); @@ -348,4 +348,4 @@ _io_StringIO_seekable(stringio *self, PyObject *Py_UNUSED(ignored)) { return _io_StringIO_seekable_impl(self); } -/*[clinic end generated code: output=7aad5ab2e64a25b8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=50a4b9d7f5c946c2 input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/textio.c.h b/Modules/_io/clinic/textio.c.h index cec9defea0250e..69265a8e8069fc 100644 --- a/Modules/_io/clinic/textio.c.h +++ b/Modules/_io/clinic/textio.c.h @@ -60,7 +60,7 @@ _io_IncrementalNewlineDecoder___init__(PyObject *self, PyObject *args, PyObject } PyDoc_STRVAR(_io_IncrementalNewlineDecoder_decode__doc__, -"decode($self, /, input, final=False)\n" +"decode($self, input, final=False)\n" "--\n" "\n"); @@ -107,7 +107,7 @@ _io_IncrementalNewlineDecoder_decode(nldecoder_object *self, PyObject *const *ar } PyDoc_STRVAR(_io_IncrementalNewlineDecoder_getstate__doc__, -"getstate($self, /)\n" +"getstate($self)\n" "--\n" "\n"); @@ -124,7 +124,7 @@ _io_IncrementalNewlineDecoder_getstate(nldecoder_object *self, PyObject *Py_UNUS } PyDoc_STRVAR(_io_IncrementalNewlineDecoder_setstate__doc__, -"setstate($self, state, /)\n" +"setstate($self, __state)\n" "--\n" "\n"); @@ -132,7 +132,7 @@ PyDoc_STRVAR(_io_IncrementalNewlineDecoder_setstate__doc__, {"setstate", (PyCFunction)_io_IncrementalNewlineDecoder_setstate, METH_O, _io_IncrementalNewlineDecoder_setstate__doc__}, PyDoc_STRVAR(_io_IncrementalNewlineDecoder_reset__doc__, -"reset($self, /)\n" +"reset($self)\n" "--\n" "\n"); @@ -296,7 +296,7 @@ _io_TextIOWrapper___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_io_TextIOWrapper_reconfigure__doc__, -"reconfigure($self, /, *, encoding=None, errors=None, newline=None,\n" +"reconfigure($self, *, encoding=None, errors=None, newline=None,\n" " line_buffering=None, write_through=None)\n" "--\n" "\n" @@ -367,7 +367,7 @@ _io_TextIOWrapper_reconfigure(textio *self, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_io_TextIOWrapper_detach__doc__, -"detach($self, /)\n" +"detach($self)\n" "--\n" "\n"); @@ -384,7 +384,7 @@ _io_TextIOWrapper_detach(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_write__doc__, -"write($self, text, /)\n" +"write($self, __text)\n" "--\n" "\n"); @@ -415,7 +415,7 @@ _io_TextIOWrapper_write(textio *self, PyObject *arg) } PyDoc_STRVAR(_io_TextIOWrapper_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n"); @@ -448,7 +448,7 @@ _io_TextIOWrapper_read(textio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_TextIOWrapper_readline__doc__, -"readline($self, size=-1, /)\n" +"readline($self, __size=-1)\n" "--\n" "\n"); @@ -495,7 +495,7 @@ _io_TextIOWrapper_readline(textio *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_io_TextIOWrapper_seek__doc__, -"seek($self, cookie, whence=0, /)\n" +"seek($self, __cookie, __whence=0)\n" "--\n" "\n"); @@ -536,7 +536,7 @@ _io_TextIOWrapper_seek(textio *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_io_TextIOWrapper_tell__doc__, -"tell($self, /)\n" +"tell($self)\n" "--\n" "\n"); @@ -553,7 +553,7 @@ _io_TextIOWrapper_tell(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_truncate__doc__, -"truncate($self, pos=None, /)\n" +"truncate($self, __pos=None)\n" "--\n" "\n"); @@ -584,7 +584,7 @@ _io_TextIOWrapper_truncate(textio *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_io_TextIOWrapper_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n"); @@ -601,7 +601,7 @@ _io_TextIOWrapper_fileno(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_seekable__doc__, -"seekable($self, /)\n" +"seekable($self)\n" "--\n" "\n"); @@ -618,7 +618,7 @@ _io_TextIOWrapper_seekable(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_readable__doc__, -"readable($self, /)\n" +"readable($self)\n" "--\n" "\n"); @@ -635,7 +635,7 @@ _io_TextIOWrapper_readable(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_writable__doc__, -"writable($self, /)\n" +"writable($self)\n" "--\n" "\n"); @@ -652,7 +652,7 @@ _io_TextIOWrapper_writable(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_isatty__doc__, -"isatty($self, /)\n" +"isatty($self)\n" "--\n" "\n"); @@ -669,7 +669,7 @@ _io_TextIOWrapper_isatty(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_flush__doc__, -"flush($self, /)\n" +"flush($self)\n" "--\n" "\n"); @@ -686,7 +686,7 @@ _io_TextIOWrapper_flush(textio *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_io_TextIOWrapper_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n"); @@ -701,4 +701,4 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored)) { return _io_TextIOWrapper_close_impl(self); } -/*[clinic end generated code: output=b651e056e3000f88 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8972c8e8ad4f654e input=a9049054013a1b77]*/ diff --git a/Modules/_io/clinic/winconsoleio.c.h b/Modules/_io/clinic/winconsoleio.c.h index bb0cdc4558dd86..f27a8e6db7fd69 100644 --- a/Modules/_io/clinic/winconsoleio.c.h +++ b/Modules/_io/clinic/winconsoleio.c.h @@ -5,7 +5,7 @@ preserve #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the handle.\n" @@ -112,7 +112,7 @@ _io__WindowsConsoleIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n" "Return the underlying file descriptor (an integer).\n" @@ -137,7 +137,7 @@ _io__WindowsConsoleIO_fileno(winconsoleio *self, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_readable__doc__, -"readable($self, /)\n" +"readable($self)\n" "--\n" "\n" "True if console is an input buffer."); @@ -159,7 +159,7 @@ _io__WindowsConsoleIO_readable(winconsoleio *self, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_writable__doc__, -"writable($self, /)\n" +"writable($self)\n" "--\n" "\n" "True if console is an output buffer."); @@ -181,7 +181,7 @@ _io__WindowsConsoleIO_writable(winconsoleio *self, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_readinto__doc__, -"readinto($self, buffer, /)\n" +"readinto($self, __buffer)\n" "--\n" "\n" "Same as RawIOBase.readinto()."); @@ -223,7 +223,7 @@ _io__WindowsConsoleIO_readinto(winconsoleio *self, PyObject *arg) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_readall__doc__, -"readall($self, /)\n" +"readall($self)\n" "--\n" "\n" "Read all data from the console, returned as bytes.\n" @@ -247,7 +247,7 @@ _io__WindowsConsoleIO_readall(winconsoleio *self, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n" "Read at most size bytes, returned as bytes.\n" @@ -289,7 +289,7 @@ _io__WindowsConsoleIO_read(winconsoleio *self, PyObject *const *args, Py_ssize_t #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_write__doc__, -"write($self, b, /)\n" +"write($self, __b)\n" "--\n" "\n" "Write buffer b to file, return number of bytes written.\n" @@ -332,7 +332,7 @@ _io__WindowsConsoleIO_write(winconsoleio *self, PyObject *arg) #if defined(MS_WINDOWS) PyDoc_STRVAR(_io__WindowsConsoleIO_isatty__doc__, -"isatty($self, /)\n" +"isatty($self)\n" "--\n" "\n" "Always True."); @@ -386,4 +386,4 @@ _io__WindowsConsoleIO_isatty(winconsoleio *self, PyObject *Py_UNUSED(ignored)) #ifndef _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF #define _IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF #endif /* !defined(_IO__WINDOWSCONSOLEIO_ISATTY_METHODDEF) */ -/*[clinic end generated code: output=57bf2c09a42bd330 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5be5a9d91e465ebf input=a9049054013a1b77]*/ diff --git a/Modules/_multiprocessing/clinic/posixshmem.c.h b/Modules/_multiprocessing/clinic/posixshmem.c.h index 0ebfa2fe3789d1..d2fd3dd139b300 100644 --- a/Modules/_multiprocessing/clinic/posixshmem.c.h +++ b/Modules/_multiprocessing/clinic/posixshmem.c.h @@ -5,7 +5,7 @@ preserve #if defined(HAVE_SHM_OPEN) PyDoc_STRVAR(_posixshmem_shm_open__doc__, -"shm_open($module, /, path, flags, mode=511)\n" +"shm_open($module, path, flags, mode=511)\n" "--\n" "\n" "Open a shared memory object. Returns a file descriptor (integer)."); @@ -79,7 +79,7 @@ _posixshmem_shm_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, #if defined(HAVE_SHM_UNLINK) PyDoc_STRVAR(_posixshmem_shm_unlink__doc__, -"shm_unlink($module, /, path)\n" +"shm_unlink($module, path)\n" "--\n" "\n" "Remove a shared memory object (similar to unlink()).\n" @@ -130,4 +130,4 @@ _posixshmem_shm_unlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs #ifndef _POSIXSHMEM_SHM_UNLINK_METHODDEF #define _POSIXSHMEM_SHM_UNLINK_METHODDEF #endif /* !defined(_POSIXSHMEM_SHM_UNLINK_METHODDEF) */ -/*[clinic end generated code: output=be42e23c18677c0f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=b2a1312c4979f28f input=a9049054013a1b77]*/ diff --git a/Modules/_sha3/clinic/sha3module.c.h b/Modules/_sha3/clinic/sha3module.c.h index 554442df0ec286..7d7b503ce67d8b 100644 --- a/Modules/_sha3/clinic/sha3module.c.h +++ b/Modules/_sha3/clinic/sha3module.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_sha3_sha3_224_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -21,7 +21,7 @@ _sha3_sha3_224_copy(SHA3object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sha3_sha3_224_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -39,7 +39,7 @@ _sha3_sha3_224_digest(SHA3object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sha3_sha3_224_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -57,7 +57,7 @@ _sha3_sha3_224_hexdigest(SHA3object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sha3_sha3_224_update__doc__, -"update($self, data, /)\n" +"update($self, __data)\n" "--\n" "\n" "Update this hash object\'s state with the provided bytes-like object."); @@ -66,7 +66,7 @@ PyDoc_STRVAR(_sha3_sha3_224_update__doc__, {"update", (PyCFunction)_sha3_sha3_224_update, METH_O, _sha3_sha3_224_update__doc__}, PyDoc_STRVAR(_sha3_shake_128_digest__doc__, -"digest($self, length, /)\n" +"digest($self, __length)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -93,7 +93,7 @@ _sha3_shake_128_digest(SHA3object *self, PyObject *arg) } PyDoc_STRVAR(_sha3_shake_128_hexdigest__doc__, -"hexdigest($self, length, /)\n" +"hexdigest($self, __length)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -118,4 +118,4 @@ _sha3_shake_128_hexdigest(SHA3object *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=5b3e99b9a96471e8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=dac786813964de6d input=a9049054013a1b77]*/ diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index c515efe660b5bd..6c1542778b4474 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -3725,13 +3725,13 @@ PyDoc_STRVAR(docstring_no_signature, ); PyDoc_STRVAR(docstring_with_invalid_signature, -"docstring_with_invalid_signature($module, /, boo)\n" +"docstring_with_invalid_signature($module, boo)\n" "\n" "This docstring has an invalid signature." ); PyDoc_STRVAR(docstring_with_invalid_signature2, -"docstring_with_invalid_signature2($module, /, boo)\n" +"docstring_with_invalid_signature2($module, boo)\n" "\n" "--\n" "\n" @@ -3739,20 +3739,20 @@ PyDoc_STRVAR(docstring_with_invalid_signature2, ); PyDoc_STRVAR(docstring_with_signature, -"docstring_with_signature($module, /, sig)\n" +"docstring_with_signature($module, sig)\n" "--\n" "\n" "This docstring has a valid signature." ); PyDoc_STRVAR(docstring_with_signature_but_no_doc, -"docstring_with_signature_but_no_doc($module, /, sig)\n" +"docstring_with_signature_but_no_doc($module, sig)\n" "--\n" "\n" ); PyDoc_STRVAR(docstring_with_signature_and_extra_newlines, -"docstring_with_signature_and_extra_newlines($module, /, parameter)\n" +"docstring_with_signature_and_extra_newlines($module, parameter)\n" "--\n" "\n" "\n" diff --git a/Modules/cjkcodecs/clinic/multibytecodec.c.h b/Modules/cjkcodecs/clinic/multibytecodec.c.h index 84774f007600f1..f261a41ab8ad86 100644 --- a/Modules/cjkcodecs/clinic/multibytecodec.c.h +++ b/Modules/cjkcodecs/clinic/multibytecodec.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_multibytecodec_MultibyteCodec_encode__doc__, -"encode($self, /, input, errors=None)\n" +"encode($self, input, errors=None)\n" "--\n" "\n" "Return an encoded string version of `input\'.\n" @@ -66,7 +66,7 @@ _multibytecodec_MultibyteCodec_encode(MultibyteCodecObject *self, PyObject *cons } PyDoc_STRVAR(_multibytecodec_MultibyteCodec_decode__doc__, -"decode($self, /, input, errors=None)\n" +"decode($self, input, errors=None)\n" "--\n" "\n" "Decodes \'input\'.\n" @@ -140,7 +140,7 @@ _multibytecodec_MultibyteCodec_decode(MultibyteCodecObject *self, PyObject *cons } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_encode__doc__, -"encode($self, /, input, final=False)\n" +"encode($self, input, final=False)\n" "--\n" "\n"); @@ -188,7 +188,7 @@ _multibytecodec_MultibyteIncrementalEncoder_encode(MultibyteIncrementalEncoderOb } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_getstate__doc__, -"getstate($self, /)\n" +"getstate($self)\n" "--\n" "\n"); @@ -205,7 +205,7 @@ _multibytecodec_MultibyteIncrementalEncoder_getstate(MultibyteIncrementalEncoder } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_setstate__doc__, -"setstate($self, state, /)\n" +"setstate($self, __state)\n" "--\n" "\n"); @@ -234,7 +234,7 @@ _multibytecodec_MultibyteIncrementalEncoder_setstate(MultibyteIncrementalEncoder } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_reset__doc__, -"reset($self, /)\n" +"reset($self)\n" "--\n" "\n"); @@ -251,7 +251,7 @@ _multibytecodec_MultibyteIncrementalEncoder_reset(MultibyteIncrementalEncoderObj } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_decode__doc__, -"decode($self, /, input, final=False)\n" +"decode($self, input, final=False)\n" "--\n" "\n"); @@ -310,7 +310,7 @@ _multibytecodec_MultibyteIncrementalDecoder_decode(MultibyteIncrementalDecoderOb } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_getstate__doc__, -"getstate($self, /)\n" +"getstate($self)\n" "--\n" "\n"); @@ -327,7 +327,7 @@ _multibytecodec_MultibyteIncrementalDecoder_getstate(MultibyteIncrementalDecoder } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_setstate__doc__, -"setstate($self, state, /)\n" +"setstate($self, __state)\n" "--\n" "\n"); @@ -356,7 +356,7 @@ _multibytecodec_MultibyteIncrementalDecoder_setstate(MultibyteIncrementalDecoder } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_reset__doc__, -"reset($self, /)\n" +"reset($self)\n" "--\n" "\n"); @@ -373,7 +373,7 @@ _multibytecodec_MultibyteIncrementalDecoder_reset(MultibyteIncrementalDecoderObj } PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_read__doc__, -"read($self, sizeobj=None, /)\n" +"read($self, __sizeobj=None)\n" "--\n" "\n"); @@ -405,7 +405,7 @@ _multibytecodec_MultibyteStreamReader_read(MultibyteStreamReaderObject *self, Py } PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_readline__doc__, -"readline($self, sizeobj=None, /)\n" +"readline($self, __sizeobj=None)\n" "--\n" "\n"); @@ -437,7 +437,7 @@ _multibytecodec_MultibyteStreamReader_readline(MultibyteStreamReaderObject *self } PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_readlines__doc__, -"readlines($self, sizehintobj=None, /)\n" +"readlines($self, __sizehintobj=None)\n" "--\n" "\n"); @@ -469,7 +469,7 @@ _multibytecodec_MultibyteStreamReader_readlines(MultibyteStreamReaderObject *sel } PyDoc_STRVAR(_multibytecodec_MultibyteStreamReader_reset__doc__, -"reset($self, /)\n" +"reset($self)\n" "--\n" "\n"); @@ -486,7 +486,7 @@ _multibytecodec_MultibyteStreamReader_reset(MultibyteStreamReaderObject *self, P } PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_write__doc__, -"write($self, strobj, /)\n" +"write($self, __strobj)\n" "--\n" "\n"); @@ -494,7 +494,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_write__doc__, {"write", (PyCFunction)_multibytecodec_MultibyteStreamWriter_write, METH_O, _multibytecodec_MultibyteStreamWriter_write__doc__}, PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_writelines__doc__, -"writelines($self, lines, /)\n" +"writelines($self, __lines)\n" "--\n" "\n"); @@ -502,7 +502,7 @@ PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_writelines__doc__, {"writelines", (PyCFunction)_multibytecodec_MultibyteStreamWriter_writelines, METH_O, _multibytecodec_MultibyteStreamWriter_writelines__doc__}, PyDoc_STRVAR(_multibytecodec_MultibyteStreamWriter_reset__doc__, -"reset($self, /)\n" +"reset($self)\n" "--\n" "\n"); @@ -519,10 +519,10 @@ _multibytecodec_MultibyteStreamWriter_reset(MultibyteStreamWriterObject *self, P } PyDoc_STRVAR(_multibytecodec___create_codec__doc__, -"__create_codec($module, arg, /)\n" +"__create_codec($module, __arg)\n" "--\n" "\n"); #define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \ {"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__}, -/*[clinic end generated code: output=eb95a408c4ddbfff input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9dc8d3aa0d60a33e input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_abc.c.h b/Modules/clinic/_abc.c.h index 62c6552ba645dd..5cb9a26cef5cd4 100644 --- a/Modules/clinic/_abc.c.h +++ b/Modules/clinic/_abc.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_abc__reset_registry__doc__, -"_reset_registry($module, self, /)\n" +"_reset_registry($module, __self)\n" "--\n" "\n" "Internal ABC helper to reset registry of a given class.\n" @@ -14,7 +14,7 @@ PyDoc_STRVAR(_abc__reset_registry__doc__, {"_reset_registry", (PyCFunction)_abc__reset_registry, METH_O, _abc__reset_registry__doc__}, PyDoc_STRVAR(_abc__reset_caches__doc__, -"_reset_caches($module, self, /)\n" +"_reset_caches($module, __self)\n" "--\n" "\n" "Internal ABC helper to reset both caches of a given class.\n" @@ -25,7 +25,7 @@ PyDoc_STRVAR(_abc__reset_caches__doc__, {"_reset_caches", (PyCFunction)_abc__reset_caches, METH_O, _abc__reset_caches__doc__}, PyDoc_STRVAR(_abc__get_dump__doc__, -"_get_dump($module, self, /)\n" +"_get_dump($module, __self)\n" "--\n" "\n" "Internal ABC helper for cache and registry debugging.\n" @@ -38,7 +38,7 @@ PyDoc_STRVAR(_abc__get_dump__doc__, {"_get_dump", (PyCFunction)_abc__get_dump, METH_O, _abc__get_dump__doc__}, PyDoc_STRVAR(_abc__abc_init__doc__, -"_abc_init($module, self, /)\n" +"_abc_init($module, __self)\n" "--\n" "\n" "Internal ABC helper for class set-up. Should be never used outside abc module."); @@ -47,7 +47,7 @@ PyDoc_STRVAR(_abc__abc_init__doc__, {"_abc_init", (PyCFunction)_abc__abc_init, METH_O, _abc__abc_init__doc__}, PyDoc_STRVAR(_abc__abc_register__doc__, -"_abc_register($module, self, subclass, /)\n" +"_abc_register($module, __self, __subclass)\n" "--\n" "\n" "Internal ABC helper for subclasss registration. Should be never used outside abc module."); @@ -77,7 +77,7 @@ _abc__abc_register(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_abc__abc_instancecheck__doc__, -"_abc_instancecheck($module, self, instance, /)\n" +"_abc_instancecheck($module, __self, __instance)\n" "--\n" "\n" "Internal ABC helper for instance checks. Should be never used outside abc module."); @@ -108,7 +108,7 @@ _abc__abc_instancecheck(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_abc__abc_subclasscheck__doc__, -"_abc_subclasscheck($module, self, subclass, /)\n" +"_abc_subclasscheck($module, __self, __subclass)\n" "--\n" "\n" "Internal ABC helper for subclasss checks. Should be never used outside abc module."); @@ -139,7 +139,7 @@ _abc__abc_subclasscheck(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_abc_get_cache_token__doc__, -"get_cache_token($module, /)\n" +"get_cache_token($module)\n" "--\n" "\n" "Returns the current ABC cache token.\n" @@ -159,4 +159,4 @@ _abc_get_cache_token(PyObject *module, PyObject *Py_UNUSED(ignored)) { return _abc_get_cache_token_impl(module); } -/*[clinic end generated code: output=2544b4b5ae50a089 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=076bde139a8359aa input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_asynciomodule.c.h b/Modules/clinic/_asynciomodule.c.h index 87669f7c9f32eb..dcd353dd2bff2a 100644 --- a/Modules/clinic/_asynciomodule.c.h +++ b/Modules/clinic/_asynciomodule.c.h @@ -50,7 +50,7 @@ _asyncio_Future___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_asyncio_Future_result__doc__, -"result($self, /)\n" +"result($self)\n" "--\n" "\n" "Return the result this future represents.\n" @@ -72,7 +72,7 @@ _asyncio_Future_result(FutureObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Future_exception__doc__, -"exception($self, /)\n" +"exception($self)\n" "--\n" "\n" "Return the exception that was set on this future.\n" @@ -95,7 +95,7 @@ _asyncio_Future_exception(FutureObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Future_set_result__doc__, -"set_result($self, result, /)\n" +"set_result($self, __result)\n" "--\n" "\n" "Mark the future done and set its result.\n" @@ -107,7 +107,7 @@ PyDoc_STRVAR(_asyncio_Future_set_result__doc__, {"set_result", (PyCFunction)_asyncio_Future_set_result, METH_O, _asyncio_Future_set_result__doc__}, PyDoc_STRVAR(_asyncio_Future_set_exception__doc__, -"set_exception($self, exception, /)\n" +"set_exception($self, __exception)\n" "--\n" "\n" "Mark the future done and set an exception.\n" @@ -119,7 +119,7 @@ PyDoc_STRVAR(_asyncio_Future_set_exception__doc__, {"set_exception", (PyCFunction)_asyncio_Future_set_exception, METH_O, _asyncio_Future_set_exception__doc__}, PyDoc_STRVAR(_asyncio_Future_add_done_callback__doc__, -"add_done_callback($self, fn, /, *, context=None)\n" +"add_done_callback($self, __fn, *, context=None)\n" "--\n" "\n" "Add a callback to be run when the future becomes done.\n" @@ -163,7 +163,7 @@ _asyncio_Future_add_done_callback(FutureObj *self, PyObject *const *args, Py_ssi } PyDoc_STRVAR(_asyncio_Future_remove_done_callback__doc__, -"remove_done_callback($self, fn, /)\n" +"remove_done_callback($self, __fn)\n" "--\n" "\n" "Remove all instances of a callback from the \"call when done\" list.\n" @@ -174,7 +174,7 @@ PyDoc_STRVAR(_asyncio_Future_remove_done_callback__doc__, {"remove_done_callback", (PyCFunction)_asyncio_Future_remove_done_callback, METH_O, _asyncio_Future_remove_done_callback__doc__}, PyDoc_STRVAR(_asyncio_Future_cancel__doc__, -"cancel($self, /)\n" +"cancel($self)\n" "--\n" "\n" "Cancel the future and schedule callbacks.\n" @@ -196,7 +196,7 @@ _asyncio_Future_cancel(FutureObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Future_cancelled__doc__, -"cancelled($self, /)\n" +"cancelled($self)\n" "--\n" "\n" "Return True if the future was cancelled."); @@ -214,7 +214,7 @@ _asyncio_Future_cancelled(FutureObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Future_done__doc__, -"done($self, /)\n" +"done($self)\n" "--\n" "\n" "Return True if the future is done.\n" @@ -235,7 +235,7 @@ _asyncio_Future_done(FutureObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Future_get_loop__doc__, -"get_loop($self, /)\n" +"get_loop($self)\n" "--\n" "\n" "Return the event loop the Future is bound to."); @@ -253,7 +253,7 @@ _asyncio_Future_get_loop(FutureObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Future__repr_info__doc__, -"_repr_info($self, /)\n" +"_repr_info($self)\n" "--\n" "\n"); @@ -316,7 +316,7 @@ _asyncio_Task___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_asyncio_Task_current_task__doc__, -"current_task($type, /, loop=None)\n" +"current_task($type, loop=None)\n" "--\n" "\n" "Return the currently running task in an event loop or None.\n" @@ -357,7 +357,7 @@ _asyncio_Task_current_task(PyTypeObject *type, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_asyncio_Task_all_tasks__doc__, -"all_tasks($type, /, loop=None)\n" +"all_tasks($type, loop=None)\n" "--\n" "\n" "Return a set of all tasks for an event loop.\n" @@ -396,7 +396,7 @@ _asyncio_Task_all_tasks(PyTypeObject *type, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_asyncio_Task__repr_info__doc__, -"_repr_info($self, /)\n" +"_repr_info($self)\n" "--\n" "\n"); @@ -413,7 +413,7 @@ _asyncio_Task__repr_info(TaskObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Task_cancel__doc__, -"cancel($self, /)\n" +"cancel($self)\n" "--\n" "\n" "Request that this task cancel itself.\n" @@ -448,7 +448,7 @@ _asyncio_Task_cancel(TaskObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Task_get_stack__doc__, -"get_stack($self, /, *, limit=None)\n" +"get_stack($self, *, limit=None)\n" "--\n" "\n" "Return the list of stack frames for this task\'s coroutine.\n" @@ -503,7 +503,7 @@ _asyncio_Task_get_stack(TaskObj *self, PyObject *const *args, Py_ssize_t nargs, } PyDoc_STRVAR(_asyncio_Task_print_stack__doc__, -"print_stack($self, /, *, limit=None, file=None)\n" +"print_stack($self, *, limit=None, file=None)\n" "--\n" "\n" "Print the stack or traceback for this task\'s coroutine.\n" @@ -554,7 +554,7 @@ _asyncio_Task_print_stack(TaskObj *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_asyncio_Task_set_result__doc__, -"set_result($self, result, /)\n" +"set_result($self, __result)\n" "--\n" "\n"); @@ -562,7 +562,7 @@ PyDoc_STRVAR(_asyncio_Task_set_result__doc__, {"set_result", (PyCFunction)_asyncio_Task_set_result, METH_O, _asyncio_Task_set_result__doc__}, PyDoc_STRVAR(_asyncio_Task_set_exception__doc__, -"set_exception($self, exception, /)\n" +"set_exception($self, __exception)\n" "--\n" "\n"); @@ -570,7 +570,7 @@ PyDoc_STRVAR(_asyncio_Task_set_exception__doc__, {"set_exception", (PyCFunction)_asyncio_Task_set_exception, METH_O, _asyncio_Task_set_exception__doc__}, PyDoc_STRVAR(_asyncio_Task_get_name__doc__, -"get_name($self, /)\n" +"get_name($self)\n" "--\n" "\n"); @@ -587,7 +587,7 @@ _asyncio_Task_get_name(TaskObj *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_Task_set_name__doc__, -"set_name($self, value, /)\n" +"set_name($self, __value)\n" "--\n" "\n"); @@ -595,7 +595,7 @@ PyDoc_STRVAR(_asyncio_Task_set_name__doc__, {"set_name", (PyCFunction)_asyncio_Task_set_name, METH_O, _asyncio_Task_set_name__doc__}, PyDoc_STRVAR(_asyncio__get_running_loop__doc__, -"_get_running_loop($module, /)\n" +"_get_running_loop($module)\n" "--\n" "\n" "Return the running event loop or None.\n" @@ -616,7 +616,7 @@ _asyncio__get_running_loop(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio__set_running_loop__doc__, -"_set_running_loop($module, loop, /)\n" +"_set_running_loop($module, __loop)\n" "--\n" "\n" "Set the running event loop.\n" @@ -628,7 +628,7 @@ PyDoc_STRVAR(_asyncio__set_running_loop__doc__, {"_set_running_loop", (PyCFunction)_asyncio__set_running_loop, METH_O, _asyncio__set_running_loop__doc__}, PyDoc_STRVAR(_asyncio_get_event_loop__doc__, -"get_event_loop($module, /)\n" +"get_event_loop($module)\n" "--\n" "\n" "Return an asyncio event loop.\n" @@ -653,7 +653,7 @@ _asyncio_get_event_loop(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio_get_running_loop__doc__, -"get_running_loop($module, /)\n" +"get_running_loop($module)\n" "--\n" "\n" "Return the running event loop. Raise a RuntimeError if there is none.\n" @@ -673,7 +673,7 @@ _asyncio_get_running_loop(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_asyncio__register_task__doc__, -"_register_task($module, /, task)\n" +"_register_task($module, task)\n" "--\n" "\n" "Register a new task in asyncio as executed by loop.\n" @@ -707,7 +707,7 @@ _asyncio__register_task(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_asyncio__unregister_task__doc__, -"_unregister_task($module, /, task)\n" +"_unregister_task($module, task)\n" "--\n" "\n" "Unregister a task.\n" @@ -741,7 +741,7 @@ _asyncio__unregister_task(PyObject *module, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_asyncio__enter_task__doc__, -"_enter_task($module, /, loop, task)\n" +"_enter_task($module, loop, task)\n" "--\n" "\n" "Enter into task execution or resume suspended task.\n" @@ -779,7 +779,7 @@ _asyncio__enter_task(PyObject *module, PyObject *const *args, Py_ssize_t nargs, } PyDoc_STRVAR(_asyncio__leave_task__doc__, -"_leave_task($module, /, loop, task)\n" +"_leave_task($module, loop, task)\n" "--\n" "\n" "Leave task execution or suspend a task.\n" @@ -815,4 +815,4 @@ _asyncio__leave_task(PyObject *module, PyObject *const *args, Py_ssize_t nargs, exit: return return_value; } -/*[clinic end generated code: output=e3b02d96da56e80c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=dbaa6a5614d7a4af input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_bz2module.c.h b/Modules/clinic/_bz2module.c.h index cc16d8bb228fe5..db0ad4e4b6fd5c 100644 --- a/Modules/clinic/_bz2module.c.h +++ b/Modules/clinic/_bz2module.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_bz2_BZ2Compressor_compress__doc__, -"compress($self, data, /)\n" +"compress($self, __data)\n" "--\n" "\n" "Provide data to the compressor object.\n" @@ -44,7 +44,7 @@ _bz2_BZ2Compressor_compress(BZ2Compressor *self, PyObject *arg) } PyDoc_STRVAR(_bz2_BZ2Compressor_flush__doc__, -"flush($self, /)\n" +"flush($self)\n" "--\n" "\n" "Finish the compression process.\n" @@ -66,7 +66,7 @@ _bz2_BZ2Compressor_flush(BZ2Compressor *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_bz2_BZ2Compressor___init____doc__, -"BZ2Compressor(compresslevel=9, /)\n" +"BZ2Compressor(__compresslevel=9)\n" "--\n" "\n" "Create a compressor object for compressing data incrementally.\n" @@ -112,7 +112,7 @@ _bz2_BZ2Compressor___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_bz2_BZ2Decompressor_decompress__doc__, -"decompress($self, /, data, max_length=-1)\n" +"decompress($self, data, max_length=-1)\n" "--\n" "\n" "Decompress *data*, returning uncompressed data as bytes.\n" @@ -220,4 +220,4 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=8e123f4eec497655 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ada5a9030190ff55 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_codecsmodule.c.h b/Modules/clinic/_codecsmodule.c.h index 65e24832fff6b3..6d1e1f628064ea 100644 --- a/Modules/clinic/_codecsmodule.c.h +++ b/Modules/clinic/_codecsmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_codecs_register__doc__, -"register($module, search_function, /)\n" +"register($module, __search_function)\n" "--\n" "\n" "Register a codec search function.\n" @@ -16,7 +16,7 @@ PyDoc_STRVAR(_codecs_register__doc__, {"register", (PyCFunction)_codecs_register, METH_O, _codecs_register__doc__}, PyDoc_STRVAR(_codecs_lookup__doc__, -"lookup($module, encoding, /)\n" +"lookup($module, __encoding)\n" "--\n" "\n" "Looks up a codec tuple in the Python codec registry and returns a CodecInfo object."); @@ -53,7 +53,7 @@ _codecs_lookup(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_codecs_encode__doc__, -"encode($module, /, obj, encoding=\'utf-8\', errors=\'strict\')\n" +"encode($module, obj, encoding=\'utf-8\', errors=\'strict\')\n" "--\n" "\n" "Encodes obj using the codec registered for encoding.\n" @@ -130,7 +130,7 @@ _codecs_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(_codecs_decode__doc__, -"decode($module, /, obj, encoding=\'utf-8\', errors=\'strict\')\n" +"decode($module, obj, encoding=\'utf-8\', errors=\'strict\')\n" "--\n" "\n" "Decodes obj using the codec registered for encoding.\n" @@ -207,7 +207,7 @@ _codecs_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(_codecs__forget_codec__doc__, -"_forget_codec($module, encoding, /)\n" +"_forget_codec($module, __encoding)\n" "--\n" "\n" "Purge the named codec from the internal codec lookup cache"); @@ -244,7 +244,7 @@ _codecs__forget_codec(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_codecs_escape_decode__doc__, -"escape_decode($module, data, errors=None, /)\n" +"escape_decode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -316,7 +316,7 @@ _codecs_escape_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_escape_encode__doc__, -"escape_encode($module, data, errors=None, /)\n" +"escape_encode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -371,7 +371,7 @@ _codecs_escape_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_7_decode__doc__, -"utf_7_decode($module, data, errors=None, final=False, /)\n" +"utf_7_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -446,7 +446,7 @@ _codecs_utf_7_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_8_decode__doc__, -"utf_8_decode($module, data, errors=None, final=False, /)\n" +"utf_8_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -521,7 +521,7 @@ _codecs_utf_8_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_16_decode__doc__, -"utf_16_decode($module, data, errors=None, final=False, /)\n" +"utf_16_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -596,7 +596,7 @@ _codecs_utf_16_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_16_le_decode__doc__, -"utf_16_le_decode($module, data, errors=None, final=False, /)\n" +"utf_16_le_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -671,7 +671,7 @@ _codecs_utf_16_le_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_16_be_decode__doc__, -"utf_16_be_decode($module, data, errors=None, final=False, /)\n" +"utf_16_be_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -746,8 +746,8 @@ _codecs_utf_16_be_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_16_ex_decode__doc__, -"utf_16_ex_decode($module, data, errors=None, byteorder=0, final=False,\n" -" /)\n" +"utf_16_ex_decode($module, __data, __errors=None, __byteorder=0,\n" +" __final=False)\n" "--\n" "\n"); @@ -835,7 +835,7 @@ _codecs_utf_16_ex_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_32_decode__doc__, -"utf_32_decode($module, data, errors=None, final=False, /)\n" +"utf_32_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -910,7 +910,7 @@ _codecs_utf_32_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_32_le_decode__doc__, -"utf_32_le_decode($module, data, errors=None, final=False, /)\n" +"utf_32_le_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -985,7 +985,7 @@ _codecs_utf_32_le_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_32_be_decode__doc__, -"utf_32_be_decode($module, data, errors=None, final=False, /)\n" +"utf_32_be_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -1060,8 +1060,8 @@ _codecs_utf_32_be_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_32_ex_decode__doc__, -"utf_32_ex_decode($module, data, errors=None, byteorder=0, final=False,\n" -" /)\n" +"utf_32_ex_decode($module, __data, __errors=None, __byteorder=0,\n" +" __final=False)\n" "--\n" "\n"); @@ -1149,7 +1149,7 @@ _codecs_utf_32_ex_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_unicode_escape_decode__doc__, -"unicode_escape_decode($module, data, errors=None, /)\n" +"unicode_escape_decode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -1221,7 +1221,7 @@ _codecs_unicode_escape_decode(PyObject *module, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_codecs_raw_unicode_escape_decode__doc__, -"raw_unicode_escape_decode($module, data, errors=None, /)\n" +"raw_unicode_escape_decode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -1293,7 +1293,7 @@ _codecs_raw_unicode_escape_decode(PyObject *module, PyObject *const *args, Py_ss } PyDoc_STRVAR(_codecs_latin_1_decode__doc__, -"latin_1_decode($module, data, errors=None, /)\n" +"latin_1_decode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -1355,7 +1355,7 @@ _codecs_latin_1_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_codecs_ascii_decode__doc__, -"ascii_decode($module, data, errors=None, /)\n" +"ascii_decode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -1417,7 +1417,7 @@ _codecs_ascii_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_charmap_decode__doc__, -"charmap_decode($module, data, errors=None, mapping=None, /)\n" +"charmap_decode($module, __data, __errors=None, __mapping=None)\n" "--\n" "\n"); @@ -1486,7 +1486,7 @@ _codecs_charmap_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs #if defined(MS_WINDOWS) PyDoc_STRVAR(_codecs_mbcs_decode__doc__, -"mbcs_decode($module, data, errors=None, final=False, /)\n" +"mbcs_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -1565,7 +1565,7 @@ _codecs_mbcs_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(MS_WINDOWS) PyDoc_STRVAR(_codecs_oem_decode__doc__, -"oem_decode($module, data, errors=None, final=False, /)\n" +"oem_decode($module, __data, __errors=None, __final=False)\n" "--\n" "\n"); @@ -1644,7 +1644,8 @@ _codecs_oem_decode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(MS_WINDOWS) PyDoc_STRVAR(_codecs_code_page_decode__doc__, -"code_page_decode($module, codepage, data, errors=None, final=False, /)\n" +"code_page_decode($module, __codepage, __data, __errors=None,\n" +" __final=False)\n" "--\n" "\n"); @@ -1731,7 +1732,7 @@ _codecs_code_page_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar #endif /* defined(MS_WINDOWS) */ PyDoc_STRVAR(_codecs_readbuffer_encode__doc__, -"readbuffer_encode($module, data, errors=None, /)\n" +"readbuffer_encode($module, __data, __errors=None)\n" "--\n" "\n"); @@ -1803,7 +1804,7 @@ _codecs_readbuffer_encode(PyObject *module, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_codecs_utf_7_encode__doc__, -"utf_7_encode($module, str, errors=None, /)\n" +"utf_7_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -1861,7 +1862,7 @@ _codecs_utf_7_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_8_encode__doc__, -"utf_8_encode($module, str, errors=None, /)\n" +"utf_8_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -1919,7 +1920,7 @@ _codecs_utf_8_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_16_encode__doc__, -"utf_16_encode($module, str, errors=None, byteorder=0, /)\n" +"utf_16_encode($module, __str, __errors=None, __byteorder=0)\n" "--\n" "\n"); @@ -1990,7 +1991,7 @@ _codecs_utf_16_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_16_le_encode__doc__, -"utf_16_le_encode($module, str, errors=None, /)\n" +"utf_16_le_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2048,7 +2049,7 @@ _codecs_utf_16_le_encode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_16_be_encode__doc__, -"utf_16_be_encode($module, str, errors=None, /)\n" +"utf_16_be_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2106,7 +2107,7 @@ _codecs_utf_16_be_encode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_32_encode__doc__, -"utf_32_encode($module, str, errors=None, byteorder=0, /)\n" +"utf_32_encode($module, __str, __errors=None, __byteorder=0)\n" "--\n" "\n"); @@ -2177,7 +2178,7 @@ _codecs_utf_32_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_utf_32_le_encode__doc__, -"utf_32_le_encode($module, str, errors=None, /)\n" +"utf_32_le_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2235,7 +2236,7 @@ _codecs_utf_32_le_encode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_utf_32_be_encode__doc__, -"utf_32_be_encode($module, str, errors=None, /)\n" +"utf_32_be_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2293,7 +2294,7 @@ _codecs_utf_32_be_encode(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_codecs_unicode_escape_encode__doc__, -"unicode_escape_encode($module, str, errors=None, /)\n" +"unicode_escape_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2351,7 +2352,7 @@ _codecs_unicode_escape_encode(PyObject *module, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_codecs_raw_unicode_escape_encode__doc__, -"raw_unicode_escape_encode($module, str, errors=None, /)\n" +"raw_unicode_escape_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2409,7 +2410,7 @@ _codecs_raw_unicode_escape_encode(PyObject *module, PyObject *const *args, Py_ss } PyDoc_STRVAR(_codecs_latin_1_encode__doc__, -"latin_1_encode($module, str, errors=None, /)\n" +"latin_1_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2467,7 +2468,7 @@ _codecs_latin_1_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_codecs_ascii_encode__doc__, -"ascii_encode($module, str, errors=None, /)\n" +"ascii_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2525,7 +2526,7 @@ _codecs_ascii_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_codecs_charmap_encode__doc__, -"charmap_encode($module, str, errors=None, mapping=None, /)\n" +"charmap_encode($module, __str, __errors=None, __mapping=None)\n" "--\n" "\n"); @@ -2588,7 +2589,7 @@ _codecs_charmap_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_codecs_charmap_build__doc__, -"charmap_build($module, map, /)\n" +"charmap_build($module, __map)\n" "--\n" "\n"); @@ -2621,7 +2622,7 @@ _codecs_charmap_build(PyObject *module, PyObject *arg) #if defined(MS_WINDOWS) PyDoc_STRVAR(_codecs_mbcs_encode__doc__, -"mbcs_encode($module, str, errors=None, /)\n" +"mbcs_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2682,7 +2683,7 @@ _codecs_mbcs_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(MS_WINDOWS) PyDoc_STRVAR(_codecs_oem_encode__doc__, -"oem_encode($module, str, errors=None, /)\n" +"oem_encode($module, __str, __errors=None)\n" "--\n" "\n"); @@ -2743,7 +2744,7 @@ _codecs_oem_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(MS_WINDOWS) PyDoc_STRVAR(_codecs_code_page_encode__doc__, -"code_page_encode($module, code_page, str, errors=None, /)\n" +"code_page_encode($module, __code_page, __str, __errors=None)\n" "--\n" "\n"); @@ -2813,7 +2814,7 @@ _codecs_code_page_encode(PyObject *module, PyObject *const *args, Py_ssize_t nar #endif /* defined(MS_WINDOWS) */ PyDoc_STRVAR(_codecs_register_error__doc__, -"register_error($module, errors, handler, /)\n" +"register_error($module, __errors, __handler)\n" "--\n" "\n" "Register the specified error handler under the name errors.\n" @@ -2860,7 +2861,7 @@ _codecs_register_error(PyObject *module, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_codecs_lookup_error__doc__, -"lookup_error($module, name, /)\n" +"lookup_error($module, __name)\n" "--\n" "\n" "lookup_error(errors) -> handler\n" @@ -2922,4 +2923,4 @@ _codecs_lookup_error(PyObject *module, PyObject *arg) #ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF #define _CODECS_CODE_PAGE_ENCODE_METHODDEF #endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */ -/*[clinic end generated code: output=da3c47709a55a05e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c06383ab29cd1f48 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_contextvarsmodule.c.h b/Modules/clinic/_contextvarsmodule.c.h index b1885e41c355d2..fb63390766c1da 100644 --- a/Modules/clinic/_contextvarsmodule.c.h +++ b/Modules/clinic/_contextvarsmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_contextvars_copy_context__doc__, -"copy_context($module, /)\n" +"copy_context($module)\n" "--\n" "\n"); @@ -18,4 +18,4 @@ _contextvars_copy_context(PyObject *module, PyObject *Py_UNUSED(ignored)) { return _contextvars_copy_context_impl(module); } -/*[clinic end generated code: output=26e07024451baf52 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=27e8c917c5b2172d input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_cryptmodule.c.h b/Modules/clinic/_cryptmodule.c.h index 2fcb0c1bf12c3a..58a17dd55107c5 100644 --- a/Modules/clinic/_cryptmodule.c.h +++ b/Modules/clinic/_cryptmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(crypt_crypt__doc__, -"crypt($module, word, salt, /)\n" +"crypt($module, __word, __salt)\n" "--\n" "\n" "Hash a *word* with the given *salt* and return the hashed password.\n" @@ -60,4 +60,4 @@ crypt_crypt(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=3f75d4d4be4dddbb input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7b29220bbdb4db94 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_curses_panel.c.h b/Modules/clinic/_curses_panel.c.h index 0df442056ea9f3..50ba0486b698b9 100644 --- a/Modules/clinic/_curses_panel.c.h +++ b/Modules/clinic/_curses_panel.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_curses_panel_panel_bottom__doc__, -"bottom($self, /)\n" +"bottom($self)\n" "--\n" "\n" "Push the panel to the bottom of the stack."); @@ -21,7 +21,7 @@ _curses_panel_panel_bottom(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(_curses_panel_panel_hide__doc__, -"hide($self, /)\n" +"hide($self)\n" "--\n" "\n" "Hide the panel.\n" @@ -41,7 +41,7 @@ _curses_panel_panel_hide(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored) } PyDoc_STRVAR(_curses_panel_panel_show__doc__, -"show($self, /)\n" +"show($self)\n" "--\n" "\n" "Display the panel (which might have been hidden)."); @@ -59,7 +59,7 @@ _curses_panel_panel_show(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored) } PyDoc_STRVAR(_curses_panel_panel_top__doc__, -"top($self, /)\n" +"top($self)\n" "--\n" "\n" "Push panel to the top of the stack."); @@ -77,7 +77,7 @@ _curses_panel_panel_top(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_panel_panel_above__doc__, -"above($self, /)\n" +"above($self)\n" "--\n" "\n" "Return the panel above the current panel."); @@ -95,7 +95,7 @@ _curses_panel_panel_above(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored } PyDoc_STRVAR(_curses_panel_panel_below__doc__, -"below($self, /)\n" +"below($self)\n" "--\n" "\n" "Return the panel below the current panel."); @@ -113,7 +113,7 @@ _curses_panel_panel_below(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored } PyDoc_STRVAR(_curses_panel_panel_hidden__doc__, -"hidden($self, /)\n" +"hidden($self)\n" "--\n" "\n" "Return True if the panel is hidden (not visible), False otherwise."); @@ -131,7 +131,7 @@ _curses_panel_panel_hidden(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(_curses_panel_panel_move__doc__, -"move($self, y, x, /)\n" +"move($self, __y, __x)\n" "--\n" "\n" "Move the panel to the screen coordinates (y, x)."); @@ -177,7 +177,7 @@ _curses_panel_panel_move(PyCursesPanelObject *self, PyObject *const *args, Py_ss } PyDoc_STRVAR(_curses_panel_panel_window__doc__, -"window($self, /)\n" +"window($self)\n" "--\n" "\n" "Return the window object associated with the panel."); @@ -195,7 +195,7 @@ _curses_panel_panel_window(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(_curses_panel_panel_replace__doc__, -"replace($self, win, /)\n" +"replace($self, __win)\n" "--\n" "\n" "Change the window associated with the panel to the window win."); @@ -225,7 +225,7 @@ _curses_panel_panel_replace(PyCursesPanelObject *self, PyObject *arg) } PyDoc_STRVAR(_curses_panel_panel_set_userptr__doc__, -"set_userptr($self, obj, /)\n" +"set_userptr($self, __obj)\n" "--\n" "\n" "Set the panel\'s user pointer to obj."); @@ -234,7 +234,7 @@ PyDoc_STRVAR(_curses_panel_panel_set_userptr__doc__, {"set_userptr", (PyCFunction)_curses_panel_panel_set_userptr, METH_O, _curses_panel_panel_set_userptr__doc__}, PyDoc_STRVAR(_curses_panel_panel_userptr__doc__, -"userptr($self, /)\n" +"userptr($self)\n" "--\n" "\n" "Return the user pointer for the panel."); @@ -252,7 +252,7 @@ _curses_panel_panel_userptr(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignor } PyDoc_STRVAR(_curses_panel_bottom_panel__doc__, -"bottom_panel($module, /)\n" +"bottom_panel($module)\n" "--\n" "\n" "Return the bottom panel in the panel stack."); @@ -270,7 +270,7 @@ _curses_panel_bottom_panel(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_panel_new_panel__doc__, -"new_panel($module, win, /)\n" +"new_panel($module, __win)\n" "--\n" "\n" "Return a panel object, associating it with the given window win."); @@ -299,7 +299,7 @@ _curses_panel_new_panel(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_panel_top_panel__doc__, -"top_panel($module, /)\n" +"top_panel($module)\n" "--\n" "\n" "Return the top panel in the panel stack."); @@ -317,7 +317,7 @@ _curses_panel_top_panel(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_panel_update_panels__doc__, -"update_panels($module, /)\n" +"update_panels($module)\n" "--\n" "\n" "Updates the virtual screen after changes in the panel stack.\n" @@ -335,4 +335,4 @@ _curses_panel_update_panels(PyObject *module, PyObject *Py_UNUSED(ignored)) { return _curses_panel_update_panels_impl(module); } -/*[clinic end generated code: output=3cc16062281b7e07 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=eeedaba7292ce2e8 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_cursesmodule.c.h b/Modules/clinic/_cursesmodule.c.h index 6837eac3909695..6cb2a818d5e371 100644 --- a/Modules/clinic/_cursesmodule.c.h +++ b/Modules/clinic/_cursesmodule.c.h @@ -222,7 +222,7 @@ _curses_window_addnstr(PyCursesWindowObject *self, PyObject *args) } PyDoc_STRVAR(_curses_window_bkgd__doc__, -"bkgd($self, ch, attr=_curses.A_NORMAL, /)\n" +"bkgd($self, __ch, __attr=_curses.A_NORMAL)\n" "--\n" "\n" "Set the background property of the window.\n" @@ -269,7 +269,7 @@ _curses_window_bkgd(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_curses_window_attroff__doc__, -"attroff($self, attr, /)\n" +"attroff($self, __attr)\n" "--\n" "\n" "Remove attribute attr from the \"background\" set."); @@ -302,7 +302,7 @@ _curses_window_attroff(PyCursesWindowObject *self, PyObject *arg) } PyDoc_STRVAR(_curses_window_attron__doc__, -"attron($self, attr, /)\n" +"attron($self, __attr)\n" "--\n" "\n" "Add attribute attr from the \"background\" set."); @@ -335,7 +335,7 @@ _curses_window_attron(PyCursesWindowObject *self, PyObject *arg) } PyDoc_STRVAR(_curses_window_attrset__doc__, -"attrset($self, attr, /)\n" +"attrset($self, __attr)\n" "--\n" "\n" "Set the \"background\" set of attributes."); @@ -368,7 +368,7 @@ _curses_window_attrset(PyCursesWindowObject *self, PyObject *arg) } PyDoc_STRVAR(_curses_window_bkgdset__doc__, -"bkgdset($self, ch, attr=_curses.A_NORMAL, /)\n" +"bkgdset($self, __ch, __attr=_curses.A_NORMAL)\n" "--\n" "\n" "Set the window\'s background.\n" @@ -416,10 +416,10 @@ _curses_window_bkgdset(PyCursesWindowObject *self, PyObject *const *args, Py_ssi } PyDoc_STRVAR(_curses_window_border__doc__, -"border($self, ls=_curses.ACS_VLINE, rs=_curses.ACS_VLINE,\n" -" ts=_curses.ACS_HLINE, bs=_curses.ACS_HLINE,\n" -" tl=_curses.ACS_ULCORNER, tr=_curses.ACS_URCORNER,\n" -" bl=_curses.ACS_LLCORNER, br=_curses.ACS_LRCORNER, /)\n" +"border($self, __ls=_curses.ACS_VLINE, __rs=_curses.ACS_VLINE,\n" +" __ts=_curses.ACS_HLINE, __bs=_curses.ACS_HLINE,\n" +" __tl=_curses.ACS_ULCORNER, __tr=_curses.ACS_URCORNER,\n" +" __bl=_curses.ACS_LLCORNER, __br=_curses.ACS_LRCORNER)\n" "--\n" "\n" "Draw a border around the edges of the window.\n" @@ -656,7 +656,7 @@ _curses_window_derwin(PyCursesWindowObject *self, PyObject *args) } PyDoc_STRVAR(_curses_window_echochar__doc__, -"echochar($self, ch, attr=_curses.A_NORMAL, /)\n" +"echochar($self, __ch, __attr=_curses.A_NORMAL)\n" "--\n" "\n" "Add character ch with attribute attr, and refresh.\n" @@ -706,7 +706,7 @@ _curses_window_echochar(PyCursesWindowObject *self, PyObject *const *args, Py_ss #if defined(NCURSES_MOUSE_VERSION) PyDoc_STRVAR(_curses_window_enclose__doc__, -"enclose($self, y, x, /)\n" +"enclose($self, __y, __x)\n" "--\n" "\n" "Return True if the screen-relative coordinates are enclosed by the window.\n" @@ -764,7 +764,7 @@ _curses_window_enclose(PyCursesWindowObject *self, PyObject *const *args, Py_ssi #endif /* defined(NCURSES_MOUSE_VERSION) */ PyDoc_STRVAR(_curses_window_getbkgd__doc__, -"getbkgd($self, /)\n" +"getbkgd($self)\n" "--\n" "\n" "Return the window\'s current background character/attribute pair."); @@ -1281,7 +1281,7 @@ _curses_window_insnstr(PyCursesWindowObject *self, PyObject *args) } PyDoc_STRVAR(_curses_window_is_linetouched__doc__, -"is_linetouched($self, line, /)\n" +"is_linetouched($self, __line)\n" "--\n" "\n" "Return True if the specified line was modified, otherwise return False.\n" @@ -1373,7 +1373,7 @@ _curses_window_noutrefresh(PyCursesWindowObject *self, PyObject *args) #if !defined(py_is_pad) PyDoc_STRVAR(_curses_window_noutrefresh__doc__, -"noutrefresh($self, /)\n" +"noutrefresh($self)\n" "--\n" "\n" "Mark for refresh but wait.\n" @@ -1513,7 +1513,7 @@ _curses_window_overwrite(PyCursesWindowObject *self, PyObject *args) } PyDoc_STRVAR(_curses_window_putwin__doc__, -"putwin($self, file, /)\n" +"putwin($self, __file)\n" "--\n" "\n" "Write all data associated with the window into the provided file object.\n" @@ -1524,7 +1524,7 @@ PyDoc_STRVAR(_curses_window_putwin__doc__, {"putwin", (PyCFunction)_curses_window_putwin, METH_O, _curses_window_putwin__doc__}, PyDoc_STRVAR(_curses_window_redrawln__doc__, -"redrawln($self, beg, num, /)\n" +"redrawln($self, __beg, __num)\n" "--\n" "\n" "Mark the specified lines corrupted.\n" @@ -1632,7 +1632,7 @@ _curses_window_refresh(PyCursesWindowObject *self, PyObject *args) } PyDoc_STRVAR(_curses_window_setscrreg__doc__, -"setscrreg($self, top, bottom, /)\n" +"setscrreg($self, __top, __bottom)\n" "--\n" "\n" "Define a software scrolling region.\n" @@ -1900,7 +1900,7 @@ _curses_window_vline(PyCursesWindowObject *self, PyObject *args) #if defined(HAVE_CURSES_FILTER) PyDoc_STRVAR(_curses_filter__doc__, -"filter($module, /)\n" +"filter($module)\n" "--\n" "\n"); @@ -1919,7 +1919,7 @@ _curses_filter(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(HAVE_CURSES_FILTER) */ PyDoc_STRVAR(_curses_baudrate__doc__, -"baudrate($module, /)\n" +"baudrate($module)\n" "--\n" "\n" "Return the output speed of the terminal in bits per second."); @@ -1937,7 +1937,7 @@ _curses_baudrate(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_beep__doc__, -"beep($module, /)\n" +"beep($module)\n" "--\n" "\n" "Emit a short attention sound."); @@ -1955,7 +1955,7 @@ _curses_beep(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_can_change_color__doc__, -"can_change_color($module, /)\n" +"can_change_color($module)\n" "--\n" "\n" "Return True if the programmer can change the colors displayed by the terminal."); @@ -1973,7 +1973,7 @@ _curses_can_change_color(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_cbreak__doc__, -"cbreak($module, flag=True, /)\n" +"cbreak($module, __flag=True)\n" "--\n" "\n" "Enter cbreak mode.\n" @@ -2022,7 +2022,7 @@ _curses_cbreak(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_curses_color_content__doc__, -"color_content($module, color_number, /)\n" +"color_content($module, __color_number)\n" "--\n" "\n" "Return the red, green, and blue (RGB) components of the specified color.\n" @@ -2076,7 +2076,7 @@ _curses_color_content(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_color_pair__doc__, -"color_pair($module, color_number, /)\n" +"color_pair($module, __color_number)\n" "--\n" "\n" "Return the attribute value for displaying text in the specified color.\n" @@ -2130,7 +2130,7 @@ _curses_color_pair(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_curs_set__doc__, -"curs_set($module, visibility, /)\n" +"curs_set($module, __visibility)\n" "--\n" "\n" "Set the cursor state.\n" @@ -2171,7 +2171,7 @@ _curses_curs_set(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_def_prog_mode__doc__, -"def_prog_mode($module, /)\n" +"def_prog_mode($module)\n" "--\n" "\n" "Save the current terminal mode as the \"program\" mode.\n" @@ -2193,7 +2193,7 @@ _curses_def_prog_mode(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_def_shell_mode__doc__, -"def_shell_mode($module, /)\n" +"def_shell_mode($module)\n" "--\n" "\n" "Save the current terminal mode as the \"shell\" mode.\n" @@ -2215,7 +2215,7 @@ _curses_def_shell_mode(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_delay_output__doc__, -"delay_output($module, ms, /)\n" +"delay_output($module, __ms)\n" "--\n" "\n" "Insert a pause in output.\n" @@ -2251,7 +2251,7 @@ _curses_delay_output(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_doupdate__doc__, -"doupdate($module, /)\n" +"doupdate($module)\n" "--\n" "\n" "Update the physical screen to match the virtual screen."); @@ -2269,7 +2269,7 @@ _curses_doupdate(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_echo__doc__, -"echo($module, flag=True, /)\n" +"echo($module, __flag=True)\n" "--\n" "\n" "Enter echo mode.\n" @@ -2314,7 +2314,7 @@ _curses_echo(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_curses_endwin__doc__, -"endwin($module, /)\n" +"endwin($module)\n" "--\n" "\n" "De-initialize the library, and return terminal to normal status."); @@ -2332,7 +2332,7 @@ _curses_endwin(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_erasechar__doc__, -"erasechar($module, /)\n" +"erasechar($module)\n" "--\n" "\n" "Return the user\'s current erase character."); @@ -2350,7 +2350,7 @@ _curses_erasechar(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_flash__doc__, -"flash($module, /)\n" +"flash($module)\n" "--\n" "\n" "Flash the screen.\n" @@ -2370,7 +2370,7 @@ _curses_flash(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_flushinp__doc__, -"flushinp($module, /)\n" +"flushinp($module)\n" "--\n" "\n" "Flush all input buffers.\n" @@ -2393,7 +2393,7 @@ _curses_flushinp(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(getsyx) PyDoc_STRVAR(_curses_getsyx__doc__, -"getsyx($module, /)\n" +"getsyx($module)\n" "--\n" "\n" "Return the current coordinates of the virtual screen cursor.\n" @@ -2417,7 +2417,7 @@ _curses_getsyx(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(NCURSES_MOUSE_VERSION) PyDoc_STRVAR(_curses_getmouse__doc__, -"getmouse($module, /)\n" +"getmouse($module)\n" "--\n" "\n" "Retrieve the queued mouse event.\n" @@ -2442,7 +2442,7 @@ _curses_getmouse(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(NCURSES_MOUSE_VERSION) PyDoc_STRVAR(_curses_ungetmouse__doc__, -"ungetmouse($module, id, x, y, z, bstate, /)\n" +"ungetmouse($module, __id, __x, __y, __z, __bstate)\n" "--\n" "\n" "Push a KEY_MOUSE event onto the input queue.\n" @@ -2534,7 +2534,7 @@ _curses_ungetmouse(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(NCURSES_MOUSE_VERSION) */ PyDoc_STRVAR(_curses_getwin__doc__, -"getwin($module, file, /)\n" +"getwin($module, __file)\n" "--\n" "\n" "Read window related data stored in the file by an earlier putwin() call.\n" @@ -2546,7 +2546,7 @@ PyDoc_STRVAR(_curses_getwin__doc__, {"getwin", (PyCFunction)_curses_getwin, METH_O, _curses_getwin__doc__}, PyDoc_STRVAR(_curses_halfdelay__doc__, -"halfdelay($module, tenths, /)\n" +"halfdelay($module, __tenths)\n" "--\n" "\n" "Enter half-delay mode.\n" @@ -2599,7 +2599,7 @@ _curses_halfdelay(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_has_colors__doc__, -"has_colors($module, /)\n" +"has_colors($module)\n" "--\n" "\n" "Return True if the terminal can display colors; otherwise, return False."); @@ -2617,7 +2617,7 @@ _curses_has_colors(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_has_ic__doc__, -"has_ic($module, /)\n" +"has_ic($module)\n" "--\n" "\n" "Return True if the terminal has insert- and delete-character capabilities."); @@ -2635,7 +2635,7 @@ _curses_has_ic(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_has_il__doc__, -"has_il($module, /)\n" +"has_il($module)\n" "--\n" "\n" "Return True if the terminal has insert- and delete-line capabilities."); @@ -2655,7 +2655,7 @@ _curses_has_il(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_CURSES_HAS_KEY) PyDoc_STRVAR(_curses_has_key__doc__, -"has_key($module, key, /)\n" +"has_key($module, __key)\n" "--\n" "\n" "Return True if the current terminal type recognizes a key with that value.\n" @@ -2693,7 +2693,7 @@ _curses_has_key(PyObject *module, PyObject *arg) #endif /* defined(HAVE_CURSES_HAS_KEY) */ PyDoc_STRVAR(_curses_init_color__doc__, -"init_color($module, color_number, r, g, b, /)\n" +"init_color($module, __color_number, __r, __g, __b)\n" "--\n" "\n" "Change the definition of a color.\n" @@ -2833,7 +2833,7 @@ _curses_init_color(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_curses_init_pair__doc__, -"init_pair($module, pair_number, fg, bg, /)\n" +"init_pair($module, __pair_number, __fg, __bg)\n" "--\n" "\n" "Change the definition of a color-pair.\n" @@ -2945,7 +2945,7 @@ _curses_init_pair(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_curses_initscr__doc__, -"initscr($module, /)\n" +"initscr($module)\n" "--\n" "\n" "Initialize the library.\n" @@ -2965,7 +2965,7 @@ _curses_initscr(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_setupterm__doc__, -"setupterm($module, /, term=None, fd=-1)\n" +"setupterm($module, term=None, fd=-1)\n" "--\n" "\n" "Initialize the terminal.\n" @@ -3041,7 +3041,7 @@ _curses_setupterm(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyO } PyDoc_STRVAR(_curses_intrflush__doc__, -"intrflush($module, flag, /)\n" +"intrflush($module, __flag)\n" "--\n" "\n"); @@ -3073,7 +3073,7 @@ _curses_intrflush(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_isendwin__doc__, -"isendwin($module, /)\n" +"isendwin($module)\n" "--\n" "\n" "Return True if endwin() has been called."); @@ -3093,7 +3093,7 @@ _curses_isendwin(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_CURSES_IS_TERM_RESIZED) PyDoc_STRVAR(_curses_is_term_resized__doc__, -"is_term_resized($module, nlines, ncols, /)\n" +"is_term_resized($module, __nlines, __ncols)\n" "--\n" "\n" "Return True if resize_term() would modify the window structure, False otherwise.\n" @@ -3146,7 +3146,7 @@ _curses_is_term_resized(PyObject *module, PyObject *const *args, Py_ssize_t narg #endif /* defined(HAVE_CURSES_IS_TERM_RESIZED) */ PyDoc_STRVAR(_curses_keyname__doc__, -"keyname($module, key, /)\n" +"keyname($module, __key)\n" "--\n" "\n" "Return the name of specified key.\n" @@ -3182,7 +3182,7 @@ _curses_keyname(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_killchar__doc__, -"killchar($module, /)\n" +"killchar($module)\n" "--\n" "\n" "Return the user\'s current line kill character."); @@ -3200,7 +3200,7 @@ _curses_killchar(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_longname__doc__, -"longname($module, /)\n" +"longname($module)\n" "--\n" "\n" "Return the terminfo long name field describing the current terminal.\n" @@ -3221,7 +3221,7 @@ _curses_longname(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_meta__doc__, -"meta($module, yes, /)\n" +"meta($module, __yes)\n" "--\n" "\n" "Enable/disable meta keys.\n" @@ -3259,7 +3259,7 @@ _curses_meta(PyObject *module, PyObject *arg) #if defined(NCURSES_MOUSE_VERSION) PyDoc_STRVAR(_curses_mouseinterval__doc__, -"mouseinterval($module, interval, /)\n" +"mouseinterval($module, __interval)\n" "--\n" "\n" "Set and retrieve the maximum time between press and release in a click.\n" @@ -3303,7 +3303,7 @@ _curses_mouseinterval(PyObject *module, PyObject *arg) #if defined(NCURSES_MOUSE_VERSION) PyDoc_STRVAR(_curses_mousemask__doc__, -"mousemask($module, newmask, /)\n" +"mousemask($module, __newmask)\n" "--\n" "\n" "Set the mouse events to be reported, and return a tuple (availmask, oldmask).\n" @@ -3339,7 +3339,7 @@ _curses_mousemask(PyObject *module, PyObject *arg) #endif /* defined(NCURSES_MOUSE_VERSION) */ PyDoc_STRVAR(_curses_napms__doc__, -"napms($module, ms, /)\n" +"napms($module, __ms)\n" "--\n" "\n" "Sleep for specified time.\n" @@ -3375,7 +3375,7 @@ _curses_napms(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_newpad__doc__, -"newpad($module, nlines, ncols, /)\n" +"newpad($module, __nlines, __ncols)\n" "--\n" "\n" "Create and return a pointer to a new pad data structure.\n" @@ -3481,7 +3481,7 @@ _curses_newwin(PyObject *module, PyObject *args) } PyDoc_STRVAR(_curses_nl__doc__, -"nl($module, flag=True, /)\n" +"nl($module, __flag=True)\n" "--\n" "\n" "Enter newline mode.\n" @@ -3527,7 +3527,7 @@ _curses_nl(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_curses_nocbreak__doc__, -"nocbreak($module, /)\n" +"nocbreak($module)\n" "--\n" "\n" "Leave cbreak mode.\n" @@ -3547,7 +3547,7 @@ _curses_nocbreak(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_noecho__doc__, -"noecho($module, /)\n" +"noecho($module)\n" "--\n" "\n" "Leave echo mode.\n" @@ -3567,7 +3567,7 @@ _curses_noecho(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_nonl__doc__, -"nonl($module, /)\n" +"nonl($module)\n" "--\n" "\n" "Leave newline mode.\n" @@ -3588,7 +3588,7 @@ _curses_nonl(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_noqiflush__doc__, -"noqiflush($module, /)\n" +"noqiflush($module)\n" "--\n" "\n" "Disable queue flushing.\n" @@ -3609,7 +3609,7 @@ _curses_noqiflush(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_noraw__doc__, -"noraw($module, /)\n" +"noraw($module)\n" "--\n" "\n" "Leave raw mode.\n" @@ -3629,7 +3629,7 @@ _curses_noraw(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_pair_content__doc__, -"pair_content($module, pair_number, /)\n" +"pair_content($module, __pair_number)\n" "--\n" "\n" "Return a tuple (fg, bg) containing the colors for the requested color pair.\n" @@ -3680,7 +3680,7 @@ _curses_pair_content(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_pair_number__doc__, -"pair_number($module, attr, /)\n" +"pair_number($module, __attr)\n" "--\n" "\n" "Return the number of the color-pair set by the specified attribute value.\n" @@ -3715,7 +3715,7 @@ _curses_pair_number(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_putp__doc__, -"putp($module, string, /)\n" +"putp($module, __string)\n" "--\n" "\n" "Emit the value of a specified terminfo capability for the current terminal.\n" @@ -3744,7 +3744,7 @@ _curses_putp(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_qiflush__doc__, -"qiflush($module, flag=True, /)\n" +"qiflush($module, __flag=True)\n" "--\n" "\n" "Enable queue flushing.\n" @@ -3792,7 +3792,7 @@ _curses_qiflush(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_CURSES_RESIZETERM) || defined(HAVE_CURSES_RESIZE_TERM)) PyDoc_STRVAR(_curses_update_lines_cols__doc__, -"update_lines_cols($module, /)\n" +"update_lines_cols($module)\n" "--\n" "\n"); @@ -3821,7 +3821,7 @@ _curses_update_lines_cols(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* (defined(HAVE_CURSES_RESIZETERM) || defined(HAVE_CURSES_RESIZE_TERM)) */ PyDoc_STRVAR(_curses_raw__doc__, -"raw($module, flag=True, /)\n" +"raw($module, __flag=True)\n" "--\n" "\n" "Enter raw mode.\n" @@ -3868,7 +3868,7 @@ _curses_raw(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_curses_reset_prog_mode__doc__, -"reset_prog_mode($module, /)\n" +"reset_prog_mode($module)\n" "--\n" "\n" "Restore the terminal to \"program\" mode, as previously saved by def_prog_mode()."); @@ -3886,7 +3886,7 @@ _curses_reset_prog_mode(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_reset_shell_mode__doc__, -"reset_shell_mode($module, /)\n" +"reset_shell_mode($module)\n" "--\n" "\n" "Restore the terminal to \"shell\" mode, as previously saved by def_shell_mode()."); @@ -3904,7 +3904,7 @@ _curses_reset_shell_mode(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_resetty__doc__, -"resetty($module, /)\n" +"resetty($module)\n" "--\n" "\n" "Restore terminal mode."); @@ -3924,7 +3924,7 @@ _curses_resetty(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_CURSES_RESIZETERM) PyDoc_STRVAR(_curses_resizeterm__doc__, -"resizeterm($module, nlines, ncols, /)\n" +"resizeterm($module, __nlines, __ncols)\n" "--\n" "\n" "Resize the standard and current windows to the specified dimensions.\n" @@ -3982,7 +3982,7 @@ _curses_resizeterm(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_CURSES_RESIZE_TERM) PyDoc_STRVAR(_curses_resize_term__doc__, -"resize_term($module, nlines, ncols, /)\n" +"resize_term($module, __nlines, __ncols)\n" "--\n" "\n" "Backend function used by resizeterm(), performing most of the work.\n" @@ -4041,7 +4041,7 @@ _curses_resize_term(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(HAVE_CURSES_RESIZE_TERM) */ PyDoc_STRVAR(_curses_savetty__doc__, -"savetty($module, /)\n" +"savetty($module)\n" "--\n" "\n" "Save terminal mode."); @@ -4061,7 +4061,7 @@ _curses_savetty(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(getsyx) PyDoc_STRVAR(_curses_setsyx__doc__, -"setsyx($module, y, x, /)\n" +"setsyx($module, __y, __x)\n" "--\n" "\n" "Set the virtual screen cursor.\n" @@ -4116,7 +4116,7 @@ _curses_setsyx(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(getsyx) */ PyDoc_STRVAR(_curses_start_color__doc__, -"start_color($module, /)\n" +"start_color($module)\n" "--\n" "\n" "Initializes eight basic colors and global variables COLORS and COLOR_PAIRS.\n" @@ -4141,7 +4141,7 @@ _curses_start_color(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_termattrs__doc__, -"termattrs($module, /)\n" +"termattrs($module)\n" "--\n" "\n" "Return a logical OR of all video attributes supported by the terminal."); @@ -4159,7 +4159,7 @@ _curses_termattrs(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_termname__doc__, -"termname($module, /)\n" +"termname($module)\n" "--\n" "\n" "Return the value of the environment variable TERM, truncated to 14 characters."); @@ -4177,7 +4177,7 @@ _curses_termname(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_curses_tigetflag__doc__, -"tigetflag($module, capname, /)\n" +"tigetflag($module, __capname)\n" "--\n" "\n" "Return the value of the Boolean capability.\n" @@ -4220,7 +4220,7 @@ _curses_tigetflag(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_tigetnum__doc__, -"tigetnum($module, capname, /)\n" +"tigetnum($module, __capname)\n" "--\n" "\n" "Return the value of the numeric capability.\n" @@ -4263,7 +4263,7 @@ _curses_tigetnum(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_tigetstr__doc__, -"tigetstr($module, capname, /)\n" +"tigetstr($module, __capname)\n" "--\n" "\n" "Return the value of the string capability.\n" @@ -4306,8 +4306,8 @@ _curses_tigetstr(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_curses_tparm__doc__, -"tparm($module, str, i1=0, i2=0, i3=0, i4=0, i5=0, i6=0, i7=0, i8=0,\n" -" i9=0, /)\n" +"tparm($module, __str, __i1=0, __i2=0, __i3=0, __i4=0, __i5=0, __i6=0,\n" +" __i7=0, __i8=0, __i9=0)\n" "--\n" "\n" "Instantiate the specified byte string with the supplied parameters.\n" @@ -4350,7 +4350,7 @@ _curses_tparm(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_CURSES_TYPEAHEAD) PyDoc_STRVAR(_curses_typeahead__doc__, -"typeahead($module, fd, /)\n" +"typeahead($module, __fd)\n" "--\n" "\n" "Specify that the file descriptor fd be used for typeahead checking.\n" @@ -4390,7 +4390,7 @@ _curses_typeahead(PyObject *module, PyObject *arg) #endif /* defined(HAVE_CURSES_TYPEAHEAD) */ PyDoc_STRVAR(_curses_unctrl__doc__, -"unctrl($module, ch, /)\n" +"unctrl($module, __ch)\n" "--\n" "\n" "Return a string which is a printable representation of the character ch.\n" @@ -4402,7 +4402,7 @@ PyDoc_STRVAR(_curses_unctrl__doc__, {"unctrl", (PyCFunction)_curses_unctrl, METH_O, _curses_unctrl__doc__}, PyDoc_STRVAR(_curses_ungetch__doc__, -"ungetch($module, ch, /)\n" +"ungetch($module, __ch)\n" "--\n" "\n" "Push ch so the next getch() will return it."); @@ -4413,7 +4413,7 @@ PyDoc_STRVAR(_curses_ungetch__doc__, #if defined(HAVE_NCURSESW) PyDoc_STRVAR(_curses_unget_wch__doc__, -"unget_wch($module, ch, /)\n" +"unget_wch($module, __ch)\n" "--\n" "\n" "Push ch so the next get_wch() will return it."); @@ -4426,7 +4426,7 @@ PyDoc_STRVAR(_curses_unget_wch__doc__, #if defined(HAVE_CURSES_USE_ENV) PyDoc_STRVAR(_curses_use_env__doc__, -"use_env($module, flag, /)\n" +"use_env($module, __flag)\n" "--\n" "\n" "Use environment variables LINES and COLUMNS.\n" @@ -4472,7 +4472,7 @@ _curses_use_env(PyObject *module, PyObject *arg) #if !defined(STRICT_SYSV_CURSES) PyDoc_STRVAR(_curses_use_default_colors__doc__, -"use_default_colors($module, /)\n" +"use_default_colors($module)\n" "--\n" "\n" "Allow use of default values for colors on terminals supporting this feature.\n" @@ -4569,4 +4569,4 @@ _curses_use_default_colors(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef _CURSES_USE_DEFAULT_COLORS_METHODDEF #define _CURSES_USE_DEFAULT_COLORS_METHODDEF #endif /* !defined(_CURSES_USE_DEFAULT_COLORS_METHODDEF) */ -/*[clinic end generated code: output=1350eeb0c1e06af6 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5283c9389027e0fa input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_datetimemodule.c.h b/Modules/clinic/_datetimemodule.c.h index 447036ca03814c..a284771fa9bbc4 100644 --- a/Modules/clinic/_datetimemodule.c.h +++ b/Modules/clinic/_datetimemodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(datetime_date_fromtimestamp__doc__, -"fromtimestamp($type, timestamp, /)\n" +"fromtimestamp($type, __timestamp)\n" "--\n" "\n" "Create a date from a POSIX timestamp.\n" @@ -15,7 +15,7 @@ PyDoc_STRVAR(datetime_date_fromtimestamp__doc__, {"fromtimestamp", (PyCFunction)datetime_date_fromtimestamp, METH_O|METH_CLASS, datetime_date_fromtimestamp__doc__}, PyDoc_STRVAR(datetime_datetime_now__doc__, -"now($type, /, tz=None)\n" +"now($type, tz=None)\n" "--\n" "\n" "Returns new datetime object representing current time local to tz.\n" @@ -55,4 +55,4 @@ datetime_datetime_now(PyTypeObject *type, PyObject *const *args, Py_ssize_t narg exit: return return_value; } -/*[clinic end generated code: output=aae916ab728ca85b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=90709debd07e4f3e input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_dbmmodule.c.h b/Modules/clinic/_dbmmodule.c.h index e54c69cf708294..189b99f2e219f0 100644 --- a/Modules/clinic/_dbmmodule.c.h +++ b/Modules/clinic/_dbmmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_dbm_dbm_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the database."); @@ -21,7 +21,7 @@ _dbm_dbm_close(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_dbm_dbm_keys__doc__, -"keys($self, /)\n" +"keys($self)\n" "--\n" "\n" "Return a list of all keys in the database."); @@ -39,7 +39,7 @@ _dbm_dbm_keys(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_dbm_dbm_get__doc__, -"get($self, key, default=None, /)\n" +"get($self, __key, __default=None)\n" "--\n" "\n" "Return the value for key if present, otherwise default."); @@ -70,7 +70,7 @@ _dbm_dbm_get(dbmobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_dbm_dbm_setdefault__doc__, -"setdefault($self, key, default=b\'\', /)\n" +"setdefault($self, __key, __default=b\'\')\n" "--\n" "\n" "Return the value for key if present, otherwise default.\n" @@ -104,7 +104,7 @@ _dbm_dbm_setdefault(dbmobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(dbmopen__doc__, -"open($module, filename, flags=\'r\', mode=0o666, /)\n" +"open($module, __filename, __flags=\'r\', __mode=0o666)\n" "--\n" "\n" "Return a database object.\n" @@ -177,4 +177,4 @@ dbmopen(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=7f5d30ef5d820b8a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6fb0f7f58c6c1977 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_elementtree.c.h b/Modules/clinic/_elementtree.c.h index d239c802583c6c..dc9aa853b951c0 100644 --- a/Modules/clinic/_elementtree.c.h +++ b/Modules/clinic/_elementtree.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_elementtree_Element_append__doc__, -"append($self, subelement, /)\n" +"append($self, __subelement)\n" "--\n" "\n"); @@ -31,7 +31,7 @@ _elementtree_Element_append(ElementObject *self, PyObject *arg) } PyDoc_STRVAR(_elementtree_Element_clear__doc__, -"clear($self, /)\n" +"clear($self)\n" "--\n" "\n"); @@ -48,7 +48,7 @@ _elementtree_Element_clear(ElementObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_elementtree_Element___copy____doc__, -"__copy__($self, /)\n" +"__copy__($self)\n" "--\n" "\n"); @@ -65,7 +65,7 @@ _elementtree_Element___copy__(ElementObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_elementtree_Element___deepcopy____doc__, -"__deepcopy__($self, memo, /)\n" +"__deepcopy__($self, __memo)\n" "--\n" "\n"); @@ -93,7 +93,7 @@ _elementtree_Element___deepcopy__(ElementObject *self, PyObject *arg) } PyDoc_STRVAR(_elementtree_Element___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n"); @@ -120,7 +120,7 @@ _elementtree_Element___sizeof__(ElementObject *self, PyObject *Py_UNUSED(ignored } PyDoc_STRVAR(_elementtree_Element___getstate____doc__, -"__getstate__($self, /)\n" +"__getstate__($self)\n" "--\n" "\n"); @@ -137,7 +137,7 @@ _elementtree_Element___getstate__(ElementObject *self, PyObject *Py_UNUSED(ignor } PyDoc_STRVAR(_elementtree_Element___setstate____doc__, -"__setstate__($self, state, /)\n" +"__setstate__($self, __state)\n" "--\n" "\n"); @@ -145,7 +145,7 @@ PyDoc_STRVAR(_elementtree_Element___setstate____doc__, {"__setstate__", (PyCFunction)_elementtree_Element___setstate__, METH_O, _elementtree_Element___setstate____doc__}, PyDoc_STRVAR(_elementtree_Element_extend__doc__, -"extend($self, elements, /)\n" +"extend($self, __elements)\n" "--\n" "\n"); @@ -153,7 +153,7 @@ PyDoc_STRVAR(_elementtree_Element_extend__doc__, {"extend", (PyCFunction)_elementtree_Element_extend, METH_O, _elementtree_Element_extend__doc__}, PyDoc_STRVAR(_elementtree_Element_find__doc__, -"find($self, /, path, namespaces=None)\n" +"find($self, path, namespaces=None)\n" "--\n" "\n"); @@ -192,7 +192,7 @@ _elementtree_Element_find(ElementObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_elementtree_Element_findtext__doc__, -"findtext($self, /, path, default=None, namespaces=None)\n" +"findtext($self, path, default=None, namespaces=None)\n" "--\n" "\n"); @@ -239,7 +239,7 @@ _elementtree_Element_findtext(ElementObject *self, PyObject *const *args, Py_ssi } PyDoc_STRVAR(_elementtree_Element_findall__doc__, -"findall($self, /, path, namespaces=None)\n" +"findall($self, path, namespaces=None)\n" "--\n" "\n"); @@ -278,7 +278,7 @@ _elementtree_Element_findall(ElementObject *self, PyObject *const *args, Py_ssiz } PyDoc_STRVAR(_elementtree_Element_iterfind__doc__, -"iterfind($self, /, path, namespaces=None)\n" +"iterfind($self, path, namespaces=None)\n" "--\n" "\n"); @@ -317,7 +317,7 @@ _elementtree_Element_iterfind(ElementObject *self, PyObject *const *args, Py_ssi } PyDoc_STRVAR(_elementtree_Element_get__doc__, -"get($self, /, key, default=None)\n" +"get($self, key, default=None)\n" "--\n" "\n"); @@ -356,7 +356,7 @@ _elementtree_Element_get(ElementObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_elementtree_Element_getchildren__doc__, -"getchildren($self, /)\n" +"getchildren($self)\n" "--\n" "\n"); @@ -373,7 +373,7 @@ _elementtree_Element_getchildren(ElementObject *self, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(_elementtree_Element_iter__doc__, -"iter($self, /, tag=None)\n" +"iter($self, tag=None)\n" "--\n" "\n"); @@ -409,7 +409,7 @@ _elementtree_Element_iter(ElementObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_elementtree_Element_getiterator__doc__, -"getiterator($self, /, tag=None)\n" +"getiterator($self, tag=None)\n" "--\n" "\n"); @@ -445,7 +445,7 @@ _elementtree_Element_getiterator(ElementObject *self, PyObject *const *args, Py_ } PyDoc_STRVAR(_elementtree_Element_itertext__doc__, -"itertext($self, /)\n" +"itertext($self)\n" "--\n" "\n"); @@ -462,7 +462,7 @@ _elementtree_Element_itertext(ElementObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_elementtree_Element_insert__doc__, -"insert($self, index, subelement, /)\n" +"insert($self, __index, __subelement)\n" "--\n" "\n"); @@ -512,7 +512,7 @@ _elementtree_Element_insert(ElementObject *self, PyObject *const *args, Py_ssize } PyDoc_STRVAR(_elementtree_Element_items__doc__, -"items($self, /)\n" +"items($self)\n" "--\n" "\n"); @@ -529,7 +529,7 @@ _elementtree_Element_items(ElementObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_elementtree_Element_keys__doc__, -"keys($self, /)\n" +"keys($self)\n" "--\n" "\n"); @@ -546,7 +546,7 @@ _elementtree_Element_keys(ElementObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_elementtree_Element_makeelement__doc__, -"makeelement($self, tag, attrib, /)\n" +"makeelement($self, __tag, __attrib)\n" "--\n" "\n"); @@ -576,7 +576,7 @@ _elementtree_Element_makeelement(ElementObject *self, PyObject *const *args, Py_ } PyDoc_STRVAR(_elementtree_Element_remove__doc__, -"remove($self, subelement, /)\n" +"remove($self, __subelement)\n" "--\n" "\n"); @@ -604,7 +604,7 @@ _elementtree_Element_remove(ElementObject *self, PyObject *arg) } PyDoc_STRVAR(_elementtree_Element_set__doc__, -"set($self, key, value, /)\n" +"set($self, __key, __value)\n" "--\n" "\n"); @@ -665,7 +665,7 @@ _elementtree_TreeBuilder___init__(PyObject *self, PyObject *args, PyObject *kwar } PyDoc_STRVAR(_elementtree_TreeBuilder_data__doc__, -"data($self, data, /)\n" +"data($self, __data)\n" "--\n" "\n"); @@ -673,7 +673,7 @@ PyDoc_STRVAR(_elementtree_TreeBuilder_data__doc__, {"data", (PyCFunction)_elementtree_TreeBuilder_data, METH_O, _elementtree_TreeBuilder_data__doc__}, PyDoc_STRVAR(_elementtree_TreeBuilder_end__doc__, -"end($self, tag, /)\n" +"end($self, __tag)\n" "--\n" "\n"); @@ -681,7 +681,7 @@ PyDoc_STRVAR(_elementtree_TreeBuilder_end__doc__, {"end", (PyCFunction)_elementtree_TreeBuilder_end, METH_O, _elementtree_TreeBuilder_end__doc__}, PyDoc_STRVAR(_elementtree_TreeBuilder_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n"); @@ -698,7 +698,7 @@ _elementtree_TreeBuilder_close(TreeBuilderObject *self, PyObject *Py_UNUSED(igno } PyDoc_STRVAR(_elementtree_TreeBuilder_start__doc__, -"start($self, tag, attrs=None, /)\n" +"start($self, __tag, __attrs=None)\n" "--\n" "\n"); @@ -787,7 +787,7 @@ _elementtree_XMLParser___init__(PyObject *self, PyObject *args, PyObject *kwargs } PyDoc_STRVAR(_elementtree_XMLParser_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n"); @@ -804,7 +804,7 @@ _elementtree_XMLParser_close(XMLParserObject *self, PyObject *Py_UNUSED(ignored) } PyDoc_STRVAR(_elementtree_XMLParser_feed__doc__, -"feed($self, data, /)\n" +"feed($self, __data)\n" "--\n" "\n"); @@ -812,7 +812,7 @@ PyDoc_STRVAR(_elementtree_XMLParser_feed__doc__, {"feed", (PyCFunction)_elementtree_XMLParser_feed, METH_O, _elementtree_XMLParser_feed__doc__}, PyDoc_STRVAR(_elementtree_XMLParser__parse_whole__doc__, -"_parse_whole($self, file, /)\n" +"_parse_whole($self, __file)\n" "--\n" "\n"); @@ -820,7 +820,7 @@ PyDoc_STRVAR(_elementtree_XMLParser__parse_whole__doc__, {"_parse_whole", (PyCFunction)_elementtree_XMLParser__parse_whole, METH_O, _elementtree_XMLParser__parse_whole__doc__}, PyDoc_STRVAR(_elementtree_XMLParser__setevents__doc__, -"_setevents($self, events_queue, events_to_report=None, /)\n" +"_setevents($self, __events_queue, __events_to_report=None)\n" "--\n" "\n"); @@ -853,4 +853,4 @@ _elementtree_XMLParser__setevents(XMLParserObject *self, PyObject *const *args, exit: return return_value; } -/*[clinic end generated code: output=440b5d90a4b86590 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=70482e6c5dda0623 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_gdbmmodule.c.h b/Modules/clinic/_gdbmmodule.c.h index 15f47dc70dc65a..d99bab71742af9 100644 --- a/Modules/clinic/_gdbmmodule.c.h +++ b/Modules/clinic/_gdbmmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_gdbm_gdbm_get__doc__, -"get($self, key, default=None, /)\n" +"get($self, __key, __default=None)\n" "--\n" "\n" "Get the value for key, or default if not present."); @@ -37,7 +37,7 @@ _gdbm_gdbm_get(dbmobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_gdbm_gdbm_setdefault__doc__, -"setdefault($self, key, default=None, /)\n" +"setdefault($self, __key, __default=None)\n" "--\n" "\n" "Get value for key, or set it to default and return default if not present."); @@ -72,7 +72,7 @@ _gdbm_gdbm_setdefault(dbmobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_gdbm_gdbm_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the database."); @@ -90,7 +90,7 @@ _gdbm_gdbm_close(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_gdbm_gdbm_keys__doc__, -"keys($self, /)\n" +"keys($self)\n" "--\n" "\n" "Get a list of all keys in the database."); @@ -108,7 +108,7 @@ _gdbm_gdbm_keys(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_gdbm_gdbm_firstkey__doc__, -"firstkey($self, /)\n" +"firstkey($self)\n" "--\n" "\n" "Return the starting key for the traversal.\n" @@ -130,7 +130,7 @@ _gdbm_gdbm_firstkey(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_gdbm_gdbm_nextkey__doc__, -"nextkey($self, key, /)\n" +"nextkey($self, __key)\n" "--\n" "\n" "Returns the key that follows key in the traversal.\n" @@ -167,7 +167,7 @@ _gdbm_gdbm_nextkey(dbmobject *self, PyObject *arg) } PyDoc_STRVAR(_gdbm_gdbm_reorganize__doc__, -"reorganize($self, /)\n" +"reorganize($self)\n" "--\n" "\n" "Reorganize the database.\n" @@ -191,7 +191,7 @@ _gdbm_gdbm_reorganize(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_gdbm_gdbm_sync__doc__, -"sync($self, /)\n" +"sync($self)\n" "--\n" "\n" "Flush the database to the disk file.\n" @@ -212,7 +212,7 @@ _gdbm_gdbm_sync(dbmobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(dbmopen__doc__, -"open($module, filename, flags=\'r\', mode=0o666, /)\n" +"open($module, __filename, __flags=\'r\', __mode=0o666)\n" "--\n" "\n" "Open a dbm database and return a dbm object.\n" @@ -298,4 +298,4 @@ dbmopen(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=0a72598e5a3acd60 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1da7a1411a7e814d input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_hashopenssl.c.h b/Modules/clinic/_hashopenssl.c.h index 5596f13e508f7d..67d4f2a05c55ac 100644 --- a/Modules/clinic/_hashopenssl.c.h +++ b/Modules/clinic/_hashopenssl.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(EVP_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -21,7 +21,7 @@ EVP_copy(EVPobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(EVP_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -39,7 +39,7 @@ EVP_digest(EVPobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(EVP_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -57,7 +57,7 @@ EVP_hexdigest(EVPobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(EVP_update__doc__, -"update($self, obj, /)\n" +"update($self, __obj)\n" "--\n" "\n" "Update this hash object\'s state with the provided string."); @@ -66,7 +66,7 @@ PyDoc_STRVAR(EVP_update__doc__, {"update", (PyCFunction)EVP_update, METH_O, EVP_update__doc__}, PyDoc_STRVAR(EVP_new__doc__, -"new($module, /, name, string=b\'\')\n" +"new($module, name, string=b\'\')\n" "--\n" "\n" "Return a new hash object using the named algorithm.\n" @@ -112,8 +112,7 @@ EVP_new(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn #if ((OPENSSL_VERSION_NUMBER >= 0x10000000 && !defined(OPENSSL_NO_HMAC) && !defined(OPENSSL_NO_SHA))) PyDoc_STRVAR(pbkdf2_hmac__doc__, -"pbkdf2_hmac($module, /, hash_name, password, salt, iterations,\n" -" dklen=None)\n" +"pbkdf2_hmac($module, hash_name, password, salt, iterations, dklen=None)\n" "--\n" "\n" "Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as pseudorandom function."); @@ -205,7 +204,7 @@ pbkdf2_hmac(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if (OPENSSL_VERSION_NUMBER > 0x10100000L && !defined(OPENSSL_NO_SCRYPT) && !defined(LIBRESSL_VERSION_NUMBER)) PyDoc_STRVAR(_hashlib_scrypt__doc__, -"scrypt($module, /, password, *, salt=None, n=None, r=None, p=None,\n" +"scrypt($module, password, *, salt=None, n=None, r=None, p=None,\n" " maxmem=0, dklen=64)\n" "--\n" "\n" @@ -333,7 +332,7 @@ _hashlib_scrypt(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj #endif /* (OPENSSL_VERSION_NUMBER > 0x10100000L && !defined(OPENSSL_NO_SCRYPT) && !defined(LIBRESSL_VERSION_NUMBER)) */ PyDoc_STRVAR(_hashlib_hmac_digest__doc__, -"hmac_digest($module, /, key, msg, digest)\n" +"hmac_digest($module, key, msg, digest)\n" "--\n" "\n" "Single-shot HMAC."); @@ -409,4 +408,4 @@ _hashlib_hmac_digest(PyObject *module, PyObject *const *args, Py_ssize_t nargs, #ifndef _HASHLIB_SCRYPT_METHODDEF #define _HASHLIB_SCRYPT_METHODDEF #endif /* !defined(_HASHLIB_SCRYPT_METHODDEF) */ -/*[clinic end generated code: output=5955ec791260045a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4ce7f4ba435663a2 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_heapqmodule.c.h b/Modules/clinic/_heapqmodule.c.h index 55403706ba05cc..f653efb7daa31d 100644 --- a/Modules/clinic/_heapqmodule.c.h +++ b/Modules/clinic/_heapqmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_heapq_heappush__doc__, -"heappush($module, heap, item, /)\n" +"heappush($module, __heap, __item)\n" "--\n" "\n" "Push item onto heap, maintaining the heap invariant."); @@ -33,7 +33,7 @@ _heapq_heappush(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_heapq_heappop__doc__, -"heappop($module, heap, /)\n" +"heappop($module, __heap)\n" "--\n" "\n" "Pop the smallest item off the heap, maintaining the heap invariant."); @@ -42,7 +42,7 @@ PyDoc_STRVAR(_heapq_heappop__doc__, {"heappop", (PyCFunction)_heapq_heappop, METH_O, _heapq_heappop__doc__}, PyDoc_STRVAR(_heapq_heapreplace__doc__, -"heapreplace($module, heap, item, /)\n" +"heapreplace($module, __heap, __item)\n" "--\n" "\n" "Pop and return the current smallest value, and add the new item.\n" @@ -80,7 +80,7 @@ _heapq_heapreplace(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_heapq_heappushpop__doc__, -"heappushpop($module, heap, item, /)\n" +"heappushpop($module, __heap, __item)\n" "--\n" "\n" "Push item on the heap, then pop and return the smallest item from the heap.\n" @@ -113,7 +113,7 @@ _heapq_heappushpop(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_heapq_heapify__doc__, -"heapify($module, heap, /)\n" +"heapify($module, __heap)\n" "--\n" "\n" "Transform list into a heap, in-place, in O(len(heap)) time."); @@ -122,7 +122,7 @@ PyDoc_STRVAR(_heapq_heapify__doc__, {"heapify", (PyCFunction)_heapq_heapify, METH_O, _heapq_heapify__doc__}, PyDoc_STRVAR(_heapq__heappop_max__doc__, -"_heappop_max($module, heap, /)\n" +"_heappop_max($module, __heap)\n" "--\n" "\n" "Maxheap variant of heappop."); @@ -131,7 +131,7 @@ PyDoc_STRVAR(_heapq__heappop_max__doc__, {"_heappop_max", (PyCFunction)_heapq__heappop_max, METH_O, _heapq__heappop_max__doc__}, PyDoc_STRVAR(_heapq__heapreplace_max__doc__, -"_heapreplace_max($module, heap, item, /)\n" +"_heapreplace_max($module, __heap, __item)\n" "--\n" "\n" "Maxheap variant of heapreplace."); @@ -162,11 +162,11 @@ _heapq__heapreplace_max(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_heapq__heapify_max__doc__, -"_heapify_max($module, heap, /)\n" +"_heapify_max($module, __heap)\n" "--\n" "\n" "Maxheap variant of heapify."); #define _HEAPQ__HEAPIFY_MAX_METHODDEF \ {"_heapify_max", (PyCFunction)_heapq__heapify_max, METH_O, _heapq__heapify_max__doc__}, -/*[clinic end generated code: output=37ef2a3319971c8d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d13716e3828f6088 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_lzmamodule.c.h b/Modules/clinic/_lzmamodule.c.h index 68aa770d41f8a9..6015fa5361f825 100644 --- a/Modules/clinic/_lzmamodule.c.h +++ b/Modules/clinic/_lzmamodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_lzma_LZMACompressor_compress__doc__, -"compress($self, data, /)\n" +"compress($self, __data)\n" "--\n" "\n" "Provide data to the compressor object.\n" @@ -44,7 +44,7 @@ _lzma_LZMACompressor_compress(Compressor *self, PyObject *arg) } PyDoc_STRVAR(_lzma_LZMACompressor_flush__doc__, -"flush($self, /)\n" +"flush($self)\n" "--\n" "\n" "Finish the compression process.\n" @@ -66,7 +66,7 @@ _lzma_LZMACompressor_flush(Compressor *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_lzma_LZMADecompressor_decompress__doc__, -"decompress($self, /, data, max_length=-1)\n" +"decompress($self, data, max_length=-1)\n" "--\n" "\n" "Decompress *data*, returning uncompressed data as bytes.\n" @@ -222,7 +222,7 @@ _lzma_LZMADecompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs } PyDoc_STRVAR(_lzma_is_check_supported__doc__, -"is_check_supported($module, check_id, /)\n" +"is_check_supported($module, __check_id)\n" "--\n" "\n" "Test whether the given integrity check is supported.\n" @@ -257,7 +257,7 @@ _lzma_is_check_supported(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_lzma__encode_filter_properties__doc__, -"_encode_filter_properties($module, filter, /)\n" +"_encode_filter_properties($module, __filter)\n" "--\n" "\n" "Return a bytes object encoding the options (properties) of the filter specified by *filter* (a dict).\n" @@ -290,7 +290,7 @@ _lzma__encode_filter_properties(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_lzma__decode_filter_properties__doc__, -"_decode_filter_properties($module, filter_id, encoded_props, /)\n" +"_decode_filter_properties($module, __filter_id, __encoded_props)\n" "--\n" "\n" "Return a bytes object encoding the options (properties) of the filter specified by *filter* (a dict).\n" @@ -334,4 +334,4 @@ _lzma__decode_filter_properties(PyObject *module, PyObject *const *args, Py_ssiz return return_value; } -/*[clinic end generated code: output=1a290aa478603107 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ddb80bad824dd66b input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_opcode.c.h b/Modules/clinic/_opcode.c.h index 777701ff140954..ca970c3ef74c0c 100644 --- a/Modules/clinic/_opcode.c.h +++ b/Modules/clinic/_opcode.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_opcode_stack_effect__doc__, -"stack_effect($module, opcode, oparg=None, /, *, jump=None)\n" +"stack_effect($module, __opcode, __oparg=None, *, jump=None)\n" "--\n" "\n" "Compute the stack effect of the opcode."); @@ -61,4 +61,4 @@ _opcode_stack_effect(PyObject *module, PyObject *const *args, Py_ssize_t nargs, exit: return return_value; } -/*[clinic end generated code: output=7bc08f2835b2cf89 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bc35eb4837d421d0 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_operator.c.h b/Modules/clinic/_operator.c.h index f9e353d86b4961..31dae1ceea983b 100644 --- a/Modules/clinic/_operator.c.h +++ b/Modules/clinic/_operator.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_operator_truth__doc__, -"truth($module, a, /)\n" +"truth($module, __a)\n" "--\n" "\n" "Return True if a is true, False otherwise."); @@ -31,7 +31,7 @@ _operator_truth(PyObject *module, PyObject *a) } PyDoc_STRVAR(_operator_add__doc__, -"add($module, a, b, /)\n" +"add($module, __a, __b)\n" "--\n" "\n" "Same as a + b."); @@ -61,7 +61,7 @@ _operator_add(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_sub__doc__, -"sub($module, a, b, /)\n" +"sub($module, __a, __b)\n" "--\n" "\n" "Same as a - b."); @@ -91,7 +91,7 @@ _operator_sub(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_mul__doc__, -"mul($module, a, b, /)\n" +"mul($module, __a, __b)\n" "--\n" "\n" "Same as a * b."); @@ -121,7 +121,7 @@ _operator_mul(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_matmul__doc__, -"matmul($module, a, b, /)\n" +"matmul($module, __a, __b)\n" "--\n" "\n" "Same as a @ b."); @@ -151,7 +151,7 @@ _operator_matmul(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_floordiv__doc__, -"floordiv($module, a, b, /)\n" +"floordiv($module, __a, __b)\n" "--\n" "\n" "Same as a // b."); @@ -181,7 +181,7 @@ _operator_floordiv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_truediv__doc__, -"truediv($module, a, b, /)\n" +"truediv($module, __a, __b)\n" "--\n" "\n" "Same as a / b."); @@ -211,7 +211,7 @@ _operator_truediv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_mod__doc__, -"mod($module, a, b, /)\n" +"mod($module, __a, __b)\n" "--\n" "\n" "Same as a % b."); @@ -241,7 +241,7 @@ _operator_mod(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_neg__doc__, -"neg($module, a, /)\n" +"neg($module, __a)\n" "--\n" "\n" "Same as -a."); @@ -250,7 +250,7 @@ PyDoc_STRVAR(_operator_neg__doc__, {"neg", (PyCFunction)_operator_neg, METH_O, _operator_neg__doc__}, PyDoc_STRVAR(_operator_pos__doc__, -"pos($module, a, /)\n" +"pos($module, __a)\n" "--\n" "\n" "Same as +a."); @@ -259,7 +259,7 @@ PyDoc_STRVAR(_operator_pos__doc__, {"pos", (PyCFunction)_operator_pos, METH_O, _operator_pos__doc__}, PyDoc_STRVAR(_operator_abs__doc__, -"abs($module, a, /)\n" +"abs($module, __a)\n" "--\n" "\n" "Same as abs(a)."); @@ -268,7 +268,7 @@ PyDoc_STRVAR(_operator_abs__doc__, {"abs", (PyCFunction)_operator_abs, METH_O, _operator_abs__doc__}, PyDoc_STRVAR(_operator_inv__doc__, -"inv($module, a, /)\n" +"inv($module, __a)\n" "--\n" "\n" "Same as ~a."); @@ -277,7 +277,7 @@ PyDoc_STRVAR(_operator_inv__doc__, {"inv", (PyCFunction)_operator_inv, METH_O, _operator_inv__doc__}, PyDoc_STRVAR(_operator_invert__doc__, -"invert($module, a, /)\n" +"invert($module, __a)\n" "--\n" "\n" "Same as ~a."); @@ -286,7 +286,7 @@ PyDoc_STRVAR(_operator_invert__doc__, {"invert", (PyCFunction)_operator_invert, METH_O, _operator_invert__doc__}, PyDoc_STRVAR(_operator_lshift__doc__, -"lshift($module, a, b, /)\n" +"lshift($module, __a, __b)\n" "--\n" "\n" "Same as a << b."); @@ -316,7 +316,7 @@ _operator_lshift(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_rshift__doc__, -"rshift($module, a, b, /)\n" +"rshift($module, __a, __b)\n" "--\n" "\n" "Same as a >> b."); @@ -346,7 +346,7 @@ _operator_rshift(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_not___doc__, -"not_($module, a, /)\n" +"not_($module, __a)\n" "--\n" "\n" "Same as not a."); @@ -374,7 +374,7 @@ _operator_not_(PyObject *module, PyObject *a) } PyDoc_STRVAR(_operator_and___doc__, -"and_($module, a, b, /)\n" +"and_($module, __a, __b)\n" "--\n" "\n" "Same as a & b."); @@ -404,7 +404,7 @@ _operator_and_(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_xor__doc__, -"xor($module, a, b, /)\n" +"xor($module, __a, __b)\n" "--\n" "\n" "Same as a ^ b."); @@ -434,7 +434,7 @@ _operator_xor(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_or___doc__, -"or_($module, a, b, /)\n" +"or_($module, __a, __b)\n" "--\n" "\n" "Same as a | b."); @@ -464,7 +464,7 @@ _operator_or_(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_iadd__doc__, -"iadd($module, a, b, /)\n" +"iadd($module, __a, __b)\n" "--\n" "\n" "Same as a += b."); @@ -494,7 +494,7 @@ _operator_iadd(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_isub__doc__, -"isub($module, a, b, /)\n" +"isub($module, __a, __b)\n" "--\n" "\n" "Same as a -= b."); @@ -524,7 +524,7 @@ _operator_isub(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_imul__doc__, -"imul($module, a, b, /)\n" +"imul($module, __a, __b)\n" "--\n" "\n" "Same as a *= b."); @@ -554,7 +554,7 @@ _operator_imul(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_imatmul__doc__, -"imatmul($module, a, b, /)\n" +"imatmul($module, __a, __b)\n" "--\n" "\n" "Same as a @= b."); @@ -584,7 +584,7 @@ _operator_imatmul(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ifloordiv__doc__, -"ifloordiv($module, a, b, /)\n" +"ifloordiv($module, __a, __b)\n" "--\n" "\n" "Same as a //= b."); @@ -614,7 +614,7 @@ _operator_ifloordiv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_itruediv__doc__, -"itruediv($module, a, b, /)\n" +"itruediv($module, __a, __b)\n" "--\n" "\n" "Same as a /= b."); @@ -644,7 +644,7 @@ _operator_itruediv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_imod__doc__, -"imod($module, a, b, /)\n" +"imod($module, __a, __b)\n" "--\n" "\n" "Same as a %= b."); @@ -674,7 +674,7 @@ _operator_imod(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ilshift__doc__, -"ilshift($module, a, b, /)\n" +"ilshift($module, __a, __b)\n" "--\n" "\n" "Same as a <<= b."); @@ -704,7 +704,7 @@ _operator_ilshift(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_irshift__doc__, -"irshift($module, a, b, /)\n" +"irshift($module, __a, __b)\n" "--\n" "\n" "Same as a >>= b."); @@ -734,7 +734,7 @@ _operator_irshift(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_iand__doc__, -"iand($module, a, b, /)\n" +"iand($module, __a, __b)\n" "--\n" "\n" "Same as a &= b."); @@ -764,7 +764,7 @@ _operator_iand(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ixor__doc__, -"ixor($module, a, b, /)\n" +"ixor($module, __a, __b)\n" "--\n" "\n" "Same as a ^= b."); @@ -794,7 +794,7 @@ _operator_ixor(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ior__doc__, -"ior($module, a, b, /)\n" +"ior($module, __a, __b)\n" "--\n" "\n" "Same as a |= b."); @@ -824,7 +824,7 @@ _operator_ior(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_concat__doc__, -"concat($module, a, b, /)\n" +"concat($module, __a, __b)\n" "--\n" "\n" "Same as a + b, for a and b sequences."); @@ -854,7 +854,7 @@ _operator_concat(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_iconcat__doc__, -"iconcat($module, a, b, /)\n" +"iconcat($module, __a, __b)\n" "--\n" "\n" "Same as a += b, for a and b sequences."); @@ -884,7 +884,7 @@ _operator_iconcat(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_contains__doc__, -"contains($module, a, b, /)\n" +"contains($module, __a, __b)\n" "--\n" "\n" "Same as b in a (note reversed operands)."); @@ -919,7 +919,7 @@ _operator_contains(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_indexOf__doc__, -"indexOf($module, a, b, /)\n" +"indexOf($module, __a, __b)\n" "--\n" "\n" "Return the first index of b in a."); @@ -954,7 +954,7 @@ _operator_indexOf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_countOf__doc__, -"countOf($module, a, b, /)\n" +"countOf($module, __a, __b)\n" "--\n" "\n" "Return the number of times b occurs in a."); @@ -989,7 +989,7 @@ _operator_countOf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_getitem__doc__, -"getitem($module, a, b, /)\n" +"getitem($module, __a, __b)\n" "--\n" "\n" "Same as a[b]."); @@ -1019,7 +1019,7 @@ _operator_getitem(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_setitem__doc__, -"setitem($module, a, b, c, /)\n" +"setitem($module, __a, __b, __c)\n" "--\n" "\n" "Same as a[b] = c."); @@ -1052,7 +1052,7 @@ _operator_setitem(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_delitem__doc__, -"delitem($module, a, b, /)\n" +"delitem($module, __a, __b)\n" "--\n" "\n" "Same as del a[b]."); @@ -1082,7 +1082,7 @@ _operator_delitem(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_eq__doc__, -"eq($module, a, b, /)\n" +"eq($module, __a, __b)\n" "--\n" "\n" "Same as a == b."); @@ -1112,7 +1112,7 @@ _operator_eq(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ne__doc__, -"ne($module, a, b, /)\n" +"ne($module, __a, __b)\n" "--\n" "\n" "Same as a != b."); @@ -1142,7 +1142,7 @@ _operator_ne(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_lt__doc__, -"lt($module, a, b, /)\n" +"lt($module, __a, __b)\n" "--\n" "\n" "Same as a < b."); @@ -1172,7 +1172,7 @@ _operator_lt(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_le__doc__, -"le($module, a, b, /)\n" +"le($module, __a, __b)\n" "--\n" "\n" "Same as a <= b."); @@ -1202,7 +1202,7 @@ _operator_le(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_gt__doc__, -"gt($module, a, b, /)\n" +"gt($module, __a, __b)\n" "--\n" "\n" "Same as a > b."); @@ -1232,7 +1232,7 @@ _operator_gt(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ge__doc__, -"ge($module, a, b, /)\n" +"ge($module, __a, __b)\n" "--\n" "\n" "Same as a >= b."); @@ -1262,7 +1262,7 @@ _operator_ge(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_pow__doc__, -"pow($module, a, b, /)\n" +"pow($module, __a, __b)\n" "--\n" "\n" "Same as a ** b."); @@ -1292,7 +1292,7 @@ _operator_pow(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_ipow__doc__, -"ipow($module, a, b, /)\n" +"ipow($module, __a, __b)\n" "--\n" "\n" "Same as a **= b."); @@ -1322,7 +1322,7 @@ _operator_ipow(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_index__doc__, -"index($module, a, /)\n" +"index($module, __a)\n" "--\n" "\n" "Same as a.__index__()"); @@ -1331,7 +1331,7 @@ PyDoc_STRVAR(_operator_index__doc__, {"index", (PyCFunction)_operator_index, METH_O, _operator_index__doc__}, PyDoc_STRVAR(_operator_is___doc__, -"is_($module, a, b, /)\n" +"is_($module, __a, __b)\n" "--\n" "\n" "Same as a is b."); @@ -1361,7 +1361,7 @@ _operator_is_(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_is_not__doc__, -"is_not($module, a, b, /)\n" +"is_not($module, __a, __b)\n" "--\n" "\n" "Same as a is not b."); @@ -1391,7 +1391,7 @@ _operator_is_not(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator_length_hint__doc__, -"length_hint($module, obj, default=0, /)\n" +"length_hint($module, __obj, __default=0)\n" "--\n" "\n" "Return an estimate of the number of items in obj.\n" @@ -1453,7 +1453,7 @@ _operator_length_hint(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_operator__compare_digest__doc__, -"_compare_digest($module, a, b, /)\n" +"_compare_digest($module, __a, __b)\n" "--\n" "\n" "Return \'a == b\'.\n" @@ -1491,4 +1491,4 @@ _operator__compare_digest(PyObject *module, PyObject *const *args, Py_ssize_t na exit: return return_value; } -/*[clinic end generated code: output=e7ed71a8c475a901 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8b09b6ae95fcb809 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_pickle.c.h b/Modules/clinic/_pickle.c.h index 1da2f936be4399..dcf18e7efe6be6 100644 --- a/Modules/clinic/_pickle.c.h +++ b/Modules/clinic/_pickle.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_pickle_Pickler_clear_memo__doc__, -"clear_memo($self, /)\n" +"clear_memo($self)\n" "--\n" "\n" "Clears the pickler\'s \"memo\".\n" @@ -26,7 +26,7 @@ _pickle_Pickler_clear_memo(PicklerObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_pickle_Pickler_dump__doc__, -"dump($self, obj, /)\n" +"dump($self, __obj)\n" "--\n" "\n" "Write a pickled representation of the given object to the open file."); @@ -35,7 +35,7 @@ PyDoc_STRVAR(_pickle_Pickler_dump__doc__, {"dump", (PyCFunction)_pickle_Pickler_dump, METH_O, _pickle_Pickler_dump__doc__}, PyDoc_STRVAR(_pickle_Pickler___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Returns size in memory, in bytes."); @@ -129,7 +129,7 @@ _pickle_Pickler___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_pickle_PicklerMemoProxy_clear__doc__, -"clear($self, /)\n" +"clear($self)\n" "--\n" "\n" "Remove all items from memo."); @@ -147,7 +147,7 @@ _pickle_PicklerMemoProxy_clear(PicklerMemoProxyObject *self, PyObject *Py_UNUSED } PyDoc_STRVAR(_pickle_PicklerMemoProxy_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Copy the memo to a new object."); @@ -165,7 +165,7 @@ _pickle_PicklerMemoProxy_copy(PicklerMemoProxyObject *self, PyObject *Py_UNUSED( } PyDoc_STRVAR(_pickle_PicklerMemoProxy___reduce____doc__, -"__reduce__($self, /)\n" +"__reduce__($self)\n" "--\n" "\n" "Implement pickle support."); @@ -183,7 +183,7 @@ _pickle_PicklerMemoProxy___reduce__(PicklerMemoProxyObject *self, PyObject *Py_U } PyDoc_STRVAR(_pickle_Unpickler_load__doc__, -"load($self, /)\n" +"load($self)\n" "--\n" "\n" "Load a pickle.\n" @@ -205,7 +205,7 @@ _pickle_Unpickler_load(UnpicklerObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_pickle_Unpickler_find_class__doc__, -"find_class($self, module_name, global_name, /)\n" +"find_class($self, __module_name, __global_name)\n" "--\n" "\n" "Return an object from a specified module.\n" @@ -244,7 +244,7 @@ _pickle_Unpickler_find_class(UnpicklerObject *self, PyObject *const *args, Py_ss } PyDoc_STRVAR(_pickle_Unpickler___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Returns size in memory, in bytes."); @@ -372,7 +372,7 @@ _pickle_Unpickler___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_pickle_UnpicklerMemoProxy_clear__doc__, -"clear($self, /)\n" +"clear($self)\n" "--\n" "\n" "Remove all items from memo."); @@ -390,7 +390,7 @@ _pickle_UnpicklerMemoProxy_clear(UnpicklerMemoProxyObject *self, PyObject *Py_UN } PyDoc_STRVAR(_pickle_UnpicklerMemoProxy_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Copy the memo to a new object."); @@ -408,7 +408,7 @@ _pickle_UnpicklerMemoProxy_copy(UnpicklerMemoProxyObject *self, PyObject *Py_UNU } PyDoc_STRVAR(_pickle_UnpicklerMemoProxy___reduce____doc__, -"__reduce__($self, /)\n" +"__reduce__($self)\n" "--\n" "\n" "Implement pickling support."); @@ -426,7 +426,7 @@ _pickle_UnpicklerMemoProxy___reduce__(UnpicklerMemoProxyObject *self, PyObject * } PyDoc_STRVAR(_pickle_dump__doc__, -"dump($module, /, obj, file, protocol=None, *, fix_imports=True)\n" +"dump($module, obj, file, protocol=None, *, fix_imports=True)\n" "--\n" "\n" "Write a pickled representation of obj to the open file object file.\n" @@ -503,7 +503,7 @@ _pickle_dump(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(_pickle_dumps__doc__, -"dumps($module, /, obj, protocol=None, *, fix_imports=True)\n" +"dumps($module, obj, protocol=None, *, fix_imports=True)\n" "--\n" "\n" "Return the pickled representation of the object as a bytes object.\n" @@ -570,7 +570,7 @@ _pickle_dumps(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec } PyDoc_STRVAR(_pickle_load__doc__, -"load($module, /, file, *, fix_imports=True, encoding=\'ASCII\',\n" +"load($module, file, *, fix_imports=True, encoding=\'ASCII\',\n" " errors=\'strict\')\n" "--\n" "\n" @@ -674,7 +674,7 @@ _pickle_load(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(_pickle_loads__doc__, -"loads($module, /, data, *, fix_imports=True, encoding=\'ASCII\',\n" +"loads($module, data, *, fix_imports=True, encoding=\'ASCII\',\n" " errors=\'strict\')\n" "--\n" "\n" @@ -767,4 +767,4 @@ _pickle_loads(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec exit: return return_value; } -/*[clinic end generated code: output=8f972562c8f71e2b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=316f2b715f534b27 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_queuemodule.c.h b/Modules/clinic/_queuemodule.c.h index c25eacf08bc843..4488006140a575 100644 --- a/Modules/clinic/_queuemodule.c.h +++ b/Modules/clinic/_queuemodule.c.h @@ -31,7 +31,7 @@ simplequeue_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_queue_SimpleQueue_put__doc__, -"put($self, /, item, block=True, timeout=None)\n" +"put($self, item, block=True, timeout=None)\n" "--\n" "\n" "Put the item on the queue.\n" @@ -84,7 +84,7 @@ _queue_SimpleQueue_put(simplequeueobject *self, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_queue_SimpleQueue_put_nowait__doc__, -"put_nowait($self, /, item)\n" +"put_nowait($self, item)\n" "--\n" "\n" "Put an item into the queue without blocking.\n" @@ -119,7 +119,7 @@ _queue_SimpleQueue_put_nowait(simplequeueobject *self, PyObject *const *args, Py } PyDoc_STRVAR(_queue_SimpleQueue_get__doc__, -"get($self, /, block=True, timeout=None)\n" +"get($self, block=True, timeout=None)\n" "--\n" "\n" "Remove and return an item from the queue.\n" @@ -175,7 +175,7 @@ _queue_SimpleQueue_get(simplequeueobject *self, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_queue_SimpleQueue_get_nowait__doc__, -"get_nowait($self, /)\n" +"get_nowait($self)\n" "--\n" "\n" "Remove and return an item from the queue without blocking.\n" @@ -196,7 +196,7 @@ _queue_SimpleQueue_get_nowait(simplequeueobject *self, PyObject *Py_UNUSED(ignor } PyDoc_STRVAR(_queue_SimpleQueue_empty__doc__, -"empty($self, /)\n" +"empty($self)\n" "--\n" "\n" "Return True if the queue is empty, False otherwise (not reliable!)."); @@ -224,7 +224,7 @@ _queue_SimpleQueue_empty(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_queue_SimpleQueue_qsize__doc__, -"qsize($self, /)\n" +"qsize($self)\n" "--\n" "\n" "Return the approximate size of the queue (not reliable!)."); @@ -250,4 +250,4 @@ _queue_SimpleQueue_qsize(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) exit: return return_value; } -/*[clinic end generated code: output=b4717e2974cbc909 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=13f25b030259b79e input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_sre.c.h b/Modules/clinic/_sre.c.h index 9c08dec4541a47..6de8825a3ee923 100644 --- a/Modules/clinic/_sre.c.h +++ b/Modules/clinic/_sre.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_sre_getcodesize__doc__, -"getcodesize($module, /)\n" +"getcodesize($module)\n" "--\n" "\n"); @@ -30,7 +30,7 @@ _sre_getcodesize(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sre_ascii_iscased__doc__, -"ascii_iscased($module, character, /)\n" +"ascii_iscased($module, __character)\n" "--\n" "\n"); @@ -67,7 +67,7 @@ _sre_ascii_iscased(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_sre_unicode_iscased__doc__, -"unicode_iscased($module, character, /)\n" +"unicode_iscased($module, __character)\n" "--\n" "\n"); @@ -104,7 +104,7 @@ _sre_unicode_iscased(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_sre_ascii_tolower__doc__, -"ascii_tolower($module, character, /)\n" +"ascii_tolower($module, __character)\n" "--\n" "\n"); @@ -141,7 +141,7 @@ _sre_ascii_tolower(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_sre_unicode_tolower__doc__, -"unicode_tolower($module, character, /)\n" +"unicode_tolower($module, __character)\n" "--\n" "\n"); @@ -178,7 +178,7 @@ _sre_unicode_tolower(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_sre_SRE_Pattern_match__doc__, -"match($self, /, string, pos=0, endpos=sys.maxsize)\n" +"match($self, string, pos=0, endpos=sys.maxsize)\n" "--\n" "\n" "Matches zero or more characters at the beginning of the string."); @@ -257,7 +257,7 @@ _sre_SRE_Pattern_match(PatternObject *self, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_sre_SRE_Pattern_fullmatch__doc__, -"fullmatch($self, /, string, pos=0, endpos=sys.maxsize)\n" +"fullmatch($self, string, pos=0, endpos=sys.maxsize)\n" "--\n" "\n" "Matches against all of the string."); @@ -336,7 +336,7 @@ _sre_SRE_Pattern_fullmatch(PatternObject *self, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_sre_SRE_Pattern_search__doc__, -"search($self, /, string, pos=0, endpos=sys.maxsize)\n" +"search($self, string, pos=0, endpos=sys.maxsize)\n" "--\n" "\n" "Scan through string looking for a match, and return a corresponding match object instance.\n" @@ -417,7 +417,7 @@ _sre_SRE_Pattern_search(PatternObject *self, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(_sre_SRE_Pattern_findall__doc__, -"findall($self, /, string, pos=0, endpos=sys.maxsize)\n" +"findall($self, string, pos=0, endpos=sys.maxsize)\n" "--\n" "\n" "Return a list of all non-overlapping matches of pattern in string."); @@ -496,7 +496,7 @@ _sre_SRE_Pattern_findall(PatternObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_sre_SRE_Pattern_finditer__doc__, -"finditer($self, /, string, pos=0, endpos=sys.maxsize)\n" +"finditer($self, string, pos=0, endpos=sys.maxsize)\n" "--\n" "\n" "Return an iterator over all non-overlapping matches for the RE pattern in string.\n" @@ -577,7 +577,7 @@ _sre_SRE_Pattern_finditer(PatternObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_sre_SRE_Pattern_scanner__doc__, -"scanner($self, /, string, pos=0, endpos=sys.maxsize)\n" +"scanner($self, string, pos=0, endpos=sys.maxsize)\n" "--\n" "\n"); @@ -655,7 +655,7 @@ _sre_SRE_Pattern_scanner(PatternObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_sre_SRE_Pattern_split__doc__, -"split($self, /, string, maxsplit=0)\n" +"split($self, string, maxsplit=0)\n" "--\n" "\n" "Split string by the occurrences of pattern."); @@ -711,7 +711,7 @@ _sre_SRE_Pattern_split(PatternObject *self, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_sre_SRE_Pattern_sub__doc__, -"sub($self, /, repl, string, count=0)\n" +"sub($self, repl, string, count=0)\n" "--\n" "\n" "Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl."); @@ -769,7 +769,7 @@ _sre_SRE_Pattern_sub(PatternObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_sre_SRE_Pattern_subn__doc__, -"subn($self, /, repl, string, count=0)\n" +"subn($self, repl, string, count=0)\n" "--\n" "\n" "Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl."); @@ -827,7 +827,7 @@ _sre_SRE_Pattern_subn(PatternObject *self, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_sre_SRE_Pattern___copy____doc__, -"__copy__($self, /)\n" +"__copy__($self)\n" "--\n" "\n"); @@ -844,7 +844,7 @@ _sre_SRE_Pattern___copy__(PatternObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sre_SRE_Pattern___deepcopy____doc__, -"__deepcopy__($self, memo, /)\n" +"__deepcopy__($self, __memo)\n" "--\n" "\n"); @@ -852,8 +852,7 @@ PyDoc_STRVAR(_sre_SRE_Pattern___deepcopy____doc__, {"__deepcopy__", (PyCFunction)_sre_SRE_Pattern___deepcopy__, METH_O, _sre_SRE_Pattern___deepcopy____doc__}, PyDoc_STRVAR(_sre_compile__doc__, -"compile($module, /, pattern, flags, code, groups, groupindex,\n" -" indexgroup)\n" +"compile($module, pattern, flags, code, groups, groupindex, indexgroup)\n" "--\n" "\n"); @@ -932,7 +931,7 @@ _sre_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(_sre_SRE_Match_expand__doc__, -"expand($self, /, template)\n" +"expand($self, template)\n" "--\n" "\n" "Return the string obtained by doing backslash substitution on the string template, as done by the sub() method."); @@ -964,7 +963,7 @@ _sre_SRE_Match_expand(MatchObject *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_sre_SRE_Match_groups__doc__, -"groups($self, /, default=None)\n" +"groups($self, default=None)\n" "--\n" "\n" "Return a tuple containing all the subgroups of the match, from 1.\n" @@ -1004,7 +1003,7 @@ _sre_SRE_Match_groups(MatchObject *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_sre_SRE_Match_groupdict__doc__, -"groupdict($self, /, default=None)\n" +"groupdict($self, default=None)\n" "--\n" "\n" "Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name.\n" @@ -1044,7 +1043,7 @@ _sre_SRE_Match_groupdict(MatchObject *self, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_sre_SRE_Match_start__doc__, -"start($self, group=0, /)\n" +"start($self, __group=0)\n" "--\n" "\n" "Return index of the start of the substring matched by group."); @@ -1081,7 +1080,7 @@ _sre_SRE_Match_start(MatchObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_sre_SRE_Match_end__doc__, -"end($self, group=0, /)\n" +"end($self, __group=0)\n" "--\n" "\n" "Return index of the end of the substring matched by group."); @@ -1118,7 +1117,7 @@ _sre_SRE_Match_end(MatchObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_sre_SRE_Match_span__doc__, -"span($self, group=0, /)\n" +"span($self, __group=0)\n" "--\n" "\n" "For match object m, return the 2-tuple (m.start(group), m.end(group))."); @@ -1150,7 +1149,7 @@ _sre_SRE_Match_span(MatchObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_sre_SRE_Match___copy____doc__, -"__copy__($self, /)\n" +"__copy__($self)\n" "--\n" "\n"); @@ -1167,7 +1166,7 @@ _sre_SRE_Match___copy__(MatchObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sre_SRE_Match___deepcopy____doc__, -"__deepcopy__($self, memo, /)\n" +"__deepcopy__($self, __memo)\n" "--\n" "\n"); @@ -1175,7 +1174,7 @@ PyDoc_STRVAR(_sre_SRE_Match___deepcopy____doc__, {"__deepcopy__", (PyCFunction)_sre_SRE_Match___deepcopy__, METH_O, _sre_SRE_Match___deepcopy____doc__}, PyDoc_STRVAR(_sre_SRE_Scanner_match__doc__, -"match($self, /)\n" +"match($self)\n" "--\n" "\n"); @@ -1192,7 +1191,7 @@ _sre_SRE_Scanner_match(ScannerObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_sre_SRE_Scanner_search__doc__, -"search($self, /)\n" +"search($self)\n" "--\n" "\n"); @@ -1207,4 +1206,4 @@ _sre_SRE_Scanner_search(ScannerObject *self, PyObject *Py_UNUSED(ignored)) { return _sre_SRE_Scanner_search_impl(self); } -/*[clinic end generated code: output=67b702da5bdc9cac input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4f308f0f4c0f3758 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_ssl.c.h b/Modules/clinic/_ssl.c.h index b1012f7aee2ea7..7efcabb91ee2d7 100644 --- a/Modules/clinic/_ssl.c.h +++ b/Modules/clinic/_ssl.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_ssl__SSLSocket_do_handshake__doc__, -"do_handshake($self, /)\n" +"do_handshake($self)\n" "--\n" "\n"); @@ -20,7 +20,7 @@ _ssl__SSLSocket_do_handshake(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl__test_decode_cert__doc__, -"_test_decode_cert($module, path, /)\n" +"_test_decode_cert($module, __path)\n" "--\n" "\n"); @@ -46,7 +46,7 @@ _ssl__test_decode_cert(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_ssl__SSLSocket_getpeercert__doc__, -"getpeercert($self, der=False, /)\n" +"getpeercert($self, __der=False)\n" "--\n" "\n" "Returns the certificate for the peer.\n" @@ -89,7 +89,7 @@ _ssl__SSLSocket_getpeercert(PySSLSocket *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_ssl__SSLSocket_shared_ciphers__doc__, -"shared_ciphers($self, /)\n" +"shared_ciphers($self)\n" "--\n" "\n"); @@ -106,7 +106,7 @@ _ssl__SSLSocket_shared_ciphers(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl__SSLSocket_cipher__doc__, -"cipher($self, /)\n" +"cipher($self)\n" "--\n" "\n"); @@ -123,7 +123,7 @@ _ssl__SSLSocket_cipher(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl__SSLSocket_version__doc__, -"version($self, /)\n" +"version($self)\n" "--\n" "\n"); @@ -142,7 +142,7 @@ _ssl__SSLSocket_version(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) #if (HAVE_NPN) PyDoc_STRVAR(_ssl__SSLSocket_selected_npn_protocol__doc__, -"selected_npn_protocol($self, /)\n" +"selected_npn_protocol($self)\n" "--\n" "\n"); @@ -163,7 +163,7 @@ _ssl__SSLSocket_selected_npn_protocol(PySSLSocket *self, PyObject *Py_UNUSED(ign #if (HAVE_ALPN) PyDoc_STRVAR(_ssl__SSLSocket_selected_alpn_protocol__doc__, -"selected_alpn_protocol($self, /)\n" +"selected_alpn_protocol($self)\n" "--\n" "\n"); @@ -182,7 +182,7 @@ _ssl__SSLSocket_selected_alpn_protocol(PySSLSocket *self, PyObject *Py_UNUSED(ig #endif /* (HAVE_ALPN) */ PyDoc_STRVAR(_ssl__SSLSocket_compression__doc__, -"compression($self, /)\n" +"compression($self)\n" "--\n" "\n"); @@ -199,7 +199,7 @@ _ssl__SSLSocket_compression(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl__SSLSocket_write__doc__, -"write($self, b, /)\n" +"write($self, __b)\n" "--\n" "\n" "Writes the bytes-like object b into the SSL object.\n" @@ -237,7 +237,7 @@ _ssl__SSLSocket_write(PySSLSocket *self, PyObject *arg) } PyDoc_STRVAR(_ssl__SSLSocket_pending__doc__, -"pending($self, /)\n" +"pending($self)\n" "--\n" "\n" "Returns the number of already decrypted bytes available for read, pending on the connection."); @@ -301,7 +301,7 @@ _ssl__SSLSocket_read(PySSLSocket *self, PyObject *args) } PyDoc_STRVAR(_ssl__SSLSocket_shutdown__doc__, -"shutdown($self, /)\n" +"shutdown($self)\n" "--\n" "\n" "Does the SSL shutdown handshake with the remote end."); @@ -319,7 +319,7 @@ _ssl__SSLSocket_shutdown(PySSLSocket *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl__SSLSocket_get_channel_binding__doc__, -"get_channel_binding($self, /, cb_type=\'tls-unique\')\n" +"get_channel_binding($self, cb_type=\'tls-unique\')\n" "--\n" "\n" "Get channel binding data for current connection.\n" @@ -373,7 +373,7 @@ _ssl__SSLSocket_get_channel_binding(PySSLSocket *self, PyObject *const *args, Py } PyDoc_STRVAR(_ssl__SSLSocket_verify_client_post_handshake__doc__, -"verify_client_post_handshake($self, /)\n" +"verify_client_post_handshake($self)\n" "--\n" "\n" "Initiate TLS 1.3 post-handshake authentication"); @@ -422,7 +422,7 @@ _ssl__SSLContext(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_ssl__SSLContext_set_ciphers__doc__, -"set_ciphers($self, cipherlist, /)\n" +"set_ciphers($self, __cipherlist)\n" "--\n" "\n"); @@ -460,7 +460,7 @@ _ssl__SSLContext_set_ciphers(PySSLContext *self, PyObject *arg) #if (OPENSSL_VERSION_NUMBER >= 0x10002000UL) PyDoc_STRVAR(_ssl__SSLContext_get_ciphers__doc__, -"get_ciphers($self, /)\n" +"get_ciphers($self)\n" "--\n" "\n"); @@ -479,7 +479,7 @@ _ssl__SSLContext_get_ciphers(PySSLContext *self, PyObject *Py_UNUSED(ignored)) #endif /* (OPENSSL_VERSION_NUMBER >= 0x10002000UL) */ PyDoc_STRVAR(_ssl__SSLContext__set_npn_protocols__doc__, -"_set_npn_protocols($self, protos, /)\n" +"_set_npn_protocols($self, __protos)\n" "--\n" "\n"); @@ -515,7 +515,7 @@ _ssl__SSLContext__set_npn_protocols(PySSLContext *self, PyObject *arg) } PyDoc_STRVAR(_ssl__SSLContext__set_alpn_protocols__doc__, -"_set_alpn_protocols($self, protos, /)\n" +"_set_alpn_protocols($self, __protos)\n" "--\n" "\n"); @@ -551,7 +551,7 @@ _ssl__SSLContext__set_alpn_protocols(PySSLContext *self, PyObject *arg) } PyDoc_STRVAR(_ssl__SSLContext_load_cert_chain__doc__, -"load_cert_chain($self, /, certfile, keyfile=None, password=None)\n" +"load_cert_chain($self, certfile, keyfile=None, password=None)\n" "--\n" "\n"); @@ -597,7 +597,7 @@ _ssl__SSLContext_load_cert_chain(PySSLContext *self, PyObject *const *args, Py_s } PyDoc_STRVAR(_ssl__SSLContext_load_verify_locations__doc__, -"load_verify_locations($self, /, cafile=None, capath=None, cadata=None)\n" +"load_verify_locations($self, cafile=None, capath=None, cadata=None)\n" "--\n" "\n"); @@ -650,7 +650,7 @@ _ssl__SSLContext_load_verify_locations(PySSLContext *self, PyObject *const *args } PyDoc_STRVAR(_ssl__SSLContext_load_dh_params__doc__, -"load_dh_params($self, path, /)\n" +"load_dh_params($self, __path)\n" "--\n" "\n"); @@ -658,7 +658,7 @@ PyDoc_STRVAR(_ssl__SSLContext_load_dh_params__doc__, {"load_dh_params", (PyCFunction)_ssl__SSLContext_load_dh_params, METH_O, _ssl__SSLContext_load_dh_params__doc__}, PyDoc_STRVAR(_ssl__SSLContext__wrap_socket__doc__, -"_wrap_socket($self, /, sock, server_side, server_hostname=None, *,\n" +"_wrap_socket($self, sock, server_side, server_hostname=None, *,\n" " owner=None, session=None)\n" "--\n" "\n"); @@ -731,8 +731,8 @@ _ssl__SSLContext__wrap_socket(PySSLContext *self, PyObject *const *args, Py_ssiz } PyDoc_STRVAR(_ssl__SSLContext__wrap_bio__doc__, -"_wrap_bio($self, /, incoming, outgoing, server_side,\n" -" server_hostname=None, *, owner=None, session=None)\n" +"_wrap_bio($self, incoming, outgoing, server_side, server_hostname=None,\n" +" *, owner=None, session=None)\n" "--\n" "\n"); @@ -811,7 +811,7 @@ _ssl__SSLContext__wrap_bio(PySSLContext *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_ssl__SSLContext_session_stats__doc__, -"session_stats($self, /)\n" +"session_stats($self)\n" "--\n" "\n"); @@ -828,7 +828,7 @@ _ssl__SSLContext_session_stats(PySSLContext *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl__SSLContext_set_default_verify_paths__doc__, -"set_default_verify_paths($self, /)\n" +"set_default_verify_paths($self)\n" "--\n" "\n"); @@ -847,7 +847,7 @@ _ssl__SSLContext_set_default_verify_paths(PySSLContext *self, PyObject *Py_UNUSE #if !defined(OPENSSL_NO_ECDH) PyDoc_STRVAR(_ssl__SSLContext_set_ecdh_curve__doc__, -"set_ecdh_curve($self, name, /)\n" +"set_ecdh_curve($self, __name)\n" "--\n" "\n"); @@ -857,7 +857,7 @@ PyDoc_STRVAR(_ssl__SSLContext_set_ecdh_curve__doc__, #endif /* !defined(OPENSSL_NO_ECDH) */ PyDoc_STRVAR(_ssl__SSLContext_cert_store_stats__doc__, -"cert_store_stats($self, /)\n" +"cert_store_stats($self)\n" "--\n" "\n" "Returns quantities of loaded X.509 certificates.\n" @@ -881,7 +881,7 @@ _ssl__SSLContext_cert_store_stats(PySSLContext *self, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(_ssl__SSLContext_get_ca_certs__doc__, -"get_ca_certs($self, /, binary_form=False)\n" +"get_ca_certs($self, binary_form=False)\n" "--\n" "\n" "Returns a list of dicts with information of loaded CA certs.\n" @@ -949,7 +949,7 @@ _ssl_MemoryBIO(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(_ssl_MemoryBIO_read__doc__, -"read($self, size=-1, /)\n" +"read($self, __size=-1)\n" "--\n" "\n" "Read up to size bytes from the memory BIO.\n" @@ -994,7 +994,7 @@ _ssl_MemoryBIO_read(PySSLMemoryBIO *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_ssl_MemoryBIO_write__doc__, -"write($self, b, /)\n" +"write($self, __b)\n" "--\n" "\n" "Writes the bytes b into the memory BIO.\n" @@ -1032,7 +1032,7 @@ _ssl_MemoryBIO_write(PySSLMemoryBIO *self, PyObject *arg) } PyDoc_STRVAR(_ssl_MemoryBIO_write_eof__doc__, -"write_eof($self, /)\n" +"write_eof($self)\n" "--\n" "\n" "Write an EOF marker to the memory BIO.\n" @@ -1052,7 +1052,7 @@ _ssl_MemoryBIO_write_eof(PySSLMemoryBIO *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl_RAND_add__doc__, -"RAND_add($module, string, entropy, /)\n" +"RAND_add($module, __string, __entropy)\n" "--\n" "\n" "Mix string into the OpenSSL PRNG state.\n" @@ -1109,7 +1109,7 @@ _ssl_RAND_add(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_ssl_RAND_bytes__doc__, -"RAND_bytes($module, n, /)\n" +"RAND_bytes($module, __n)\n" "--\n" "\n" "Generate n cryptographically strong pseudo-random bytes."); @@ -1142,7 +1142,7 @@ _ssl_RAND_bytes(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_ssl_RAND_pseudo_bytes__doc__, -"RAND_pseudo_bytes($module, n, /)\n" +"RAND_pseudo_bytes($module, __n)\n" "--\n" "\n" "Generate n pseudo-random bytes.\n" @@ -1178,7 +1178,7 @@ _ssl_RAND_pseudo_bytes(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_ssl_RAND_status__doc__, -"RAND_status($module, /)\n" +"RAND_status($module)\n" "--\n" "\n" "Returns 1 if the OpenSSL PRNG has been seeded with enough data and 0 if not.\n" @@ -1201,7 +1201,7 @@ _ssl_RAND_status(PyObject *module, PyObject *Py_UNUSED(ignored)) #if !defined(OPENSSL_NO_EGD) PyDoc_STRVAR(_ssl_RAND_egd__doc__, -"RAND_egd($module, path, /)\n" +"RAND_egd($module, __path)\n" "--\n" "\n" "Queries the entropy gather daemon (EGD) on the socket named by \'path\'.\n" @@ -1233,7 +1233,7 @@ _ssl_RAND_egd(PyObject *module, PyObject *arg) #endif /* !defined(OPENSSL_NO_EGD) */ PyDoc_STRVAR(_ssl_get_default_verify_paths__doc__, -"get_default_verify_paths($module, /)\n" +"get_default_verify_paths($module)\n" "--\n" "\n" "Return search paths and environment vars that are used by SSLContext\'s set_default_verify_paths() to load default CAs.\n" @@ -1253,7 +1253,7 @@ _ssl_get_default_verify_paths(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_ssl_txt2obj__doc__, -"txt2obj($module, /, txt, name=False)\n" +"txt2obj($module, txt, name=False)\n" "--\n" "\n" "Lookup NID, short name, long name and OID of an ASN1_OBJECT.\n" @@ -1310,7 +1310,7 @@ _ssl_txt2obj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(_ssl_nid2obj__doc__, -"nid2obj($module, nid, /)\n" +"nid2obj($module, __nid)\n" "--\n" "\n" "Lookup NID, short name, long name and OID of an ASN1_OBJECT by NID."); @@ -1345,7 +1345,7 @@ _ssl_nid2obj(PyObject *module, PyObject *arg) #if defined(_MSC_VER) PyDoc_STRVAR(_ssl_enum_certificates__doc__, -"enum_certificates($module, /, store_name)\n" +"enum_certificates($module, store_name)\n" "--\n" "\n" "Retrieve certificates from Windows\' cert store.\n" @@ -1399,7 +1399,7 @@ _ssl_enum_certificates(PyObject *module, PyObject *const *args, Py_ssize_t nargs #if defined(_MSC_VER) PyDoc_STRVAR(_ssl_enum_crls__doc__, -"enum_crls($module, /, store_name)\n" +"enum_crls($module, store_name)\n" "--\n" "\n" "Retrieve CRLs from Windows\' cert store.\n" @@ -1476,4 +1476,4 @@ _ssl_enum_crls(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #ifndef _SSL_ENUM_CRLS_METHODDEF #define _SSL_ENUM_CRLS_METHODDEF #endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */ -/*[clinic end generated code: output=a399d0eb393b6fab input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6fc8362a4c45d3d7 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_struct.c.h b/Modules/clinic/_struct.c.h index 908c44266c4ec6..f9c85590b5be3c 100644 --- a/Modules/clinic/_struct.c.h +++ b/Modules/clinic/_struct.c.h @@ -39,7 +39,7 @@ Struct___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(Struct_unpack__doc__, -"unpack($self, buffer, /)\n" +"unpack($self, __buffer)\n" "--\n" "\n" "Return a tuple containing unpacked values.\n" @@ -80,7 +80,7 @@ Struct_unpack(PyStructObject *self, PyObject *arg) } PyDoc_STRVAR(Struct_unpack_from__doc__, -"unpack_from($self, /, buffer, offset=0)\n" +"unpack_from($self, buffer, offset=0)\n" "--\n" "\n" "Return a tuple containing unpacked values.\n" @@ -154,7 +154,7 @@ Struct_unpack_from(PyStructObject *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(Struct_iter_unpack__doc__, -"iter_unpack($self, buffer, /)\n" +"iter_unpack($self, __buffer)\n" "--\n" "\n" "Return an iterator yielding tuples.\n" @@ -168,7 +168,7 @@ PyDoc_STRVAR(Struct_iter_unpack__doc__, {"iter_unpack", (PyCFunction)Struct_iter_unpack, METH_O, Struct_iter_unpack__doc__}, PyDoc_STRVAR(_clearcache__doc__, -"_clearcache($module, /)\n" +"_clearcache($module)\n" "--\n" "\n" "Clear the internal cache."); @@ -186,7 +186,7 @@ _clearcache(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(calcsize__doc__, -"calcsize($module, format, /)\n" +"calcsize($module, __format)\n" "--\n" "\n" "Return size in bytes of the struct described by the format string."); @@ -221,7 +221,7 @@ calcsize(PyObject *module, PyObject *arg) } PyDoc_STRVAR(unpack__doc__, -"unpack($module, format, buffer, /)\n" +"unpack($module, __format, __buffer)\n" "--\n" "\n" "Return a tuple containing values unpacked according to the format string.\n" @@ -270,7 +270,7 @@ unpack(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unpack_from__doc__, -"unpack_from($module, format, /, buffer, offset=0)\n" +"unpack_from($module, __format, buffer, offset=0)\n" "--\n" "\n" "Return a tuple containing values unpacked according to the format string.\n" @@ -347,7 +347,7 @@ unpack_from(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(iter_unpack__doc__, -"iter_unpack($module, format, buffer, /)\n" +"iter_unpack($module, __format, __buffer)\n" "--\n" "\n" "Return an iterator yielding tuples unpacked from the given bytes.\n" @@ -386,4 +386,4 @@ iter_unpack(PyObject *module, PyObject *const *args, Py_ssize_t nargs) return return_value; } -/*[clinic end generated code: output=b642e1002d25ebdd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=58da67661e171045 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_tkinter.c.h b/Modules/clinic/_tkinter.c.h index 0a3e7ff5fc9686..585829835276c2 100644 --- a/Modules/clinic/_tkinter.c.h +++ b/Modules/clinic/_tkinter.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_tkinter_tkapp_eval__doc__, -"eval($self, script, /)\n" +"eval($self, __script)\n" "--\n" "\n"); @@ -39,7 +39,7 @@ _tkinter_tkapp_eval(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_evalfile__doc__, -"evalfile($self, fileName, /)\n" +"evalfile($self, __fileName)\n" "--\n" "\n"); @@ -75,7 +75,7 @@ _tkinter_tkapp_evalfile(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_record__doc__, -"record($self, script, /)\n" +"record($self, __script)\n" "--\n" "\n"); @@ -111,7 +111,7 @@ _tkinter_tkapp_record(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_adderrorinfo__doc__, -"adderrorinfo($self, msg, /)\n" +"adderrorinfo($self, __msg)\n" "--\n" "\n"); @@ -147,7 +147,7 @@ _tkinter_tkapp_adderrorinfo(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_getint__doc__, -"getint($self, arg, /)\n" +"getint($self, __arg)\n" "--\n" "\n"); @@ -155,7 +155,7 @@ PyDoc_STRVAR(_tkinter_tkapp_getint__doc__, {"getint", (PyCFunction)_tkinter_tkapp_getint, METH_O, _tkinter_tkapp_getint__doc__}, PyDoc_STRVAR(_tkinter_tkapp_getdouble__doc__, -"getdouble($self, arg, /)\n" +"getdouble($self, __arg)\n" "--\n" "\n"); @@ -163,7 +163,7 @@ PyDoc_STRVAR(_tkinter_tkapp_getdouble__doc__, {"getdouble", (PyCFunction)_tkinter_tkapp_getdouble, METH_O, _tkinter_tkapp_getdouble__doc__}, PyDoc_STRVAR(_tkinter_tkapp_getboolean__doc__, -"getboolean($self, arg, /)\n" +"getboolean($self, __arg)\n" "--\n" "\n"); @@ -171,7 +171,7 @@ PyDoc_STRVAR(_tkinter_tkapp_getboolean__doc__, {"getboolean", (PyCFunction)_tkinter_tkapp_getboolean, METH_O, _tkinter_tkapp_getboolean__doc__}, PyDoc_STRVAR(_tkinter_tkapp_exprstring__doc__, -"exprstring($self, s, /)\n" +"exprstring($self, __s)\n" "--\n" "\n"); @@ -207,7 +207,7 @@ _tkinter_tkapp_exprstring(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_exprlong__doc__, -"exprlong($self, s, /)\n" +"exprlong($self, __s)\n" "--\n" "\n"); @@ -243,7 +243,7 @@ _tkinter_tkapp_exprlong(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_exprdouble__doc__, -"exprdouble($self, s, /)\n" +"exprdouble($self, __s)\n" "--\n" "\n"); @@ -279,7 +279,7 @@ _tkinter_tkapp_exprdouble(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_exprboolean__doc__, -"exprboolean($self, s, /)\n" +"exprboolean($self, __s)\n" "--\n" "\n"); @@ -315,7 +315,7 @@ _tkinter_tkapp_exprboolean(TkappObject *self, PyObject *arg) } PyDoc_STRVAR(_tkinter_tkapp_splitlist__doc__, -"splitlist($self, arg, /)\n" +"splitlist($self, __arg)\n" "--\n" "\n"); @@ -323,7 +323,7 @@ PyDoc_STRVAR(_tkinter_tkapp_splitlist__doc__, {"splitlist", (PyCFunction)_tkinter_tkapp_splitlist, METH_O, _tkinter_tkapp_splitlist__doc__}, PyDoc_STRVAR(_tkinter_tkapp_split__doc__, -"split($self, arg, /)\n" +"split($self, __arg)\n" "--\n" "\n"); @@ -331,7 +331,7 @@ PyDoc_STRVAR(_tkinter_tkapp_split__doc__, {"split", (PyCFunction)_tkinter_tkapp_split, METH_O, _tkinter_tkapp_split__doc__}, PyDoc_STRVAR(_tkinter_tkapp_createcommand__doc__, -"createcommand($self, name, func, /)\n" +"createcommand($self, __name, __func)\n" "--\n" "\n"); @@ -373,7 +373,7 @@ _tkinter_tkapp_createcommand(TkappObject *self, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_tkinter_tkapp_deletecommand__doc__, -"deletecommand($self, name, /)\n" +"deletecommand($self, __name)\n" "--\n" "\n"); @@ -411,7 +411,7 @@ _tkinter_tkapp_deletecommand(TkappObject *self, PyObject *arg) #if defined(HAVE_CREATEFILEHANDLER) PyDoc_STRVAR(_tkinter_tkapp_createfilehandler__doc__, -"createfilehandler($self, file, mask, func, /)\n" +"createfilehandler($self, __file, __mask, __func)\n" "--\n" "\n"); @@ -455,7 +455,7 @@ _tkinter_tkapp_createfilehandler(TkappObject *self, PyObject *const *args, Py_ss #if defined(HAVE_CREATEFILEHANDLER) PyDoc_STRVAR(_tkinter_tkapp_deletefilehandler__doc__, -"deletefilehandler($self, file, /)\n" +"deletefilehandler($self, __file)\n" "--\n" "\n"); @@ -465,7 +465,7 @@ PyDoc_STRVAR(_tkinter_tkapp_deletefilehandler__doc__, #endif /* defined(HAVE_CREATEFILEHANDLER) */ PyDoc_STRVAR(_tkinter_tktimertoken_deletetimerhandler__doc__, -"deletetimerhandler($self, /)\n" +"deletetimerhandler($self)\n" "--\n" "\n"); @@ -482,7 +482,7 @@ _tkinter_tktimertoken_deletetimerhandler(TkttObject *self, PyObject *Py_UNUSED(i } PyDoc_STRVAR(_tkinter_tkapp_createtimerhandler__doc__, -"createtimerhandler($self, milliseconds, func, /)\n" +"createtimerhandler($self, __milliseconds, __func)\n" "--\n" "\n"); @@ -520,7 +520,7 @@ _tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject *const *args, Py_s } PyDoc_STRVAR(_tkinter_tkapp_mainloop__doc__, -"mainloop($self, threshold=0, /)\n" +"mainloop($self, __threshold=0)\n" "--\n" "\n"); @@ -559,7 +559,7 @@ _tkinter_tkapp_mainloop(TkappObject *self, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_tkinter_tkapp_dooneevent__doc__, -"dooneevent($self, flags=0, /)\n" +"dooneevent($self, __flags=0)\n" "--\n" "\n"); @@ -598,7 +598,7 @@ _tkinter_tkapp_dooneevent(TkappObject *self, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(_tkinter_tkapp_quit__doc__, -"quit($self, /)\n" +"quit($self)\n" "--\n" "\n"); @@ -615,7 +615,7 @@ _tkinter_tkapp_quit(TkappObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tkinter_tkapp_interpaddr__doc__, -"interpaddr($self, /)\n" +"interpaddr($self)\n" "--\n" "\n"); @@ -632,7 +632,7 @@ _tkinter_tkapp_interpaddr(TkappObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tkinter_tkapp_loadtk__doc__, -"loadtk($self, /)\n" +"loadtk($self)\n" "--\n" "\n"); @@ -649,7 +649,7 @@ _tkinter_tkapp_loadtk(TkappObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tkinter_tkapp_willdispatch__doc__, -"willdispatch($self, /)\n" +"willdispatch($self)\n" "--\n" "\n"); @@ -666,7 +666,7 @@ _tkinter_tkapp_willdispatch(TkappObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tkinter__flatten__doc__, -"_flatten($module, item, /)\n" +"_flatten($module, __item)\n" "--\n" "\n"); @@ -674,9 +674,9 @@ PyDoc_STRVAR(_tkinter__flatten__doc__, {"_flatten", (PyCFunction)_tkinter__flatten, METH_O, _tkinter__flatten__doc__}, PyDoc_STRVAR(_tkinter_create__doc__, -"create($module, screenName=None, baseName=None, className=\'Tk\',\n" -" interactive=False, wantobjects=False, wantTk=True, sync=False,\n" -" use=None, /)\n" +"create($module, __screenName=None, __baseName=None, __className=\'Tk\',\n" +" __interactive=False, __wantobjects=False, __wantTk=True,\n" +" __sync=False, __use=None)\n" "--\n" "\n" "\n" @@ -843,7 +843,7 @@ _tkinter_create(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_tkinter_setbusywaitinterval__doc__, -"setbusywaitinterval($module, new_val, /)\n" +"setbusywaitinterval($module, __new_val)\n" "--\n" "\n" "Set the busy-wait interval in milliseconds between successive calls to Tcl_DoOneEvent in a threaded Python interpreter.\n" @@ -878,7 +878,7 @@ _tkinter_setbusywaitinterval(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_tkinter_getbusywaitinterval__doc__, -"getbusywaitinterval($module, /)\n" +"getbusywaitinterval($module)\n" "--\n" "\n" "Return the current busy-wait interval between successive calls to Tcl_DoOneEvent in a threaded Python interpreter."); @@ -912,4 +912,4 @@ _tkinter_getbusywaitinterval(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */ -/*[clinic end generated code: output=2cf95f0101f3dbca input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5694085f123573d2 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_tracemalloc.c.h b/Modules/clinic/_tracemalloc.c.h index 68fafdc3833d2e..8181176eba3c0b 100644 --- a/Modules/clinic/_tracemalloc.c.h +++ b/Modules/clinic/_tracemalloc.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_tracemalloc_is_tracing__doc__, -"is_tracing($module, /)\n" +"is_tracing($module)\n" "--\n" "\n" "Return True if the tracemalloc module is tracing Python memory allocations."); @@ -21,7 +21,7 @@ _tracemalloc_is_tracing(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tracemalloc_clear_traces__doc__, -"clear_traces($module, /)\n" +"clear_traces($module)\n" "--\n" "\n" "Clear traces of memory blocks allocated by Python."); @@ -39,7 +39,7 @@ _tracemalloc_clear_traces(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tracemalloc__get_traces__doc__, -"_get_traces($module, /)\n" +"_get_traces($module)\n" "--\n" "\n" "Get traces of all memory blocks allocated by Python.\n" @@ -62,7 +62,7 @@ _tracemalloc__get_traces(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tracemalloc__get_object_traceback__doc__, -"_get_object_traceback($module, obj, /)\n" +"_get_object_traceback($module, __obj)\n" "--\n" "\n" "Get the traceback where the Python object obj was allocated.\n" @@ -75,7 +75,7 @@ PyDoc_STRVAR(_tracemalloc__get_object_traceback__doc__, {"_get_object_traceback", (PyCFunction)_tracemalloc__get_object_traceback, METH_O, _tracemalloc__get_object_traceback__doc__}, PyDoc_STRVAR(_tracemalloc_start__doc__, -"start($module, nframe=1, /)\n" +"start($module, __nframe=1)\n" "--\n" "\n" "Start tracing Python memory allocations.\n" @@ -118,7 +118,7 @@ _tracemalloc_start(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_tracemalloc_stop__doc__, -"stop($module, /)\n" +"stop($module)\n" "--\n" "\n" "Stop tracing Python memory allocations.\n" @@ -138,7 +138,7 @@ _tracemalloc_stop(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tracemalloc_get_traceback_limit__doc__, -"get_traceback_limit($module, /)\n" +"get_traceback_limit($module)\n" "--\n" "\n" "Get the maximum number of frames stored in the traceback of a trace.\n" @@ -159,7 +159,7 @@ _tracemalloc_get_traceback_limit(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_tracemalloc_get_tracemalloc_memory__doc__, -"get_tracemalloc_memory($module, /)\n" +"get_tracemalloc_memory($module)\n" "--\n" "\n" "Get the memory usage in bytes of the tracemalloc module.\n" @@ -179,7 +179,7 @@ _tracemalloc_get_tracemalloc_memory(PyObject *module, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(_tracemalloc_get_traced_memory__doc__, -"get_traced_memory($module, /)\n" +"get_traced_memory($module)\n" "--\n" "\n" "Get the current size and peak size of memory blocks traced by tracemalloc.\n" @@ -197,4 +197,4 @@ _tracemalloc_get_traced_memory(PyObject *module, PyObject *Py_UNUSED(ignored)) { return _tracemalloc_get_traced_memory_impl(module); } -/*[clinic end generated code: output=1bc96dc569706afa input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7526810242591403 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_weakref.c.h b/Modules/clinic/_weakref.c.h index aa0d77f7180e5e..ff84889736ca05 100644 --- a/Modules/clinic/_weakref.c.h +++ b/Modules/clinic/_weakref.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_weakref_getweakrefcount__doc__, -"getweakrefcount($module, object, /)\n" +"getweakrefcount($module, __object)\n" "--\n" "\n" "Return the number of weak references to \'object\'."); @@ -31,7 +31,7 @@ _weakref_getweakrefcount(PyObject *module, PyObject *object) } PyDoc_STRVAR(_weakref__remove_dead_weakref__doc__, -"_remove_dead_weakref($module, dct, key, /)\n" +"_remove_dead_weakref($module, __dct, __key)\n" "--\n" "\n" "Atomically remove key from dict if it points to a dead weakref."); @@ -64,4 +64,4 @@ _weakref__remove_dead_weakref(PyObject *module, PyObject *const *args, Py_ssize_ exit: return return_value; } -/*[clinic end generated code: output=eae22e2d2e43120e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=127a1a8bd0405dc6 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/_winapi.c.h b/Modules/clinic/_winapi.c.h index e21f2bc2b6fd6f..05d65ae774af29 100644 --- a/Modules/clinic/_winapi.c.h +++ b/Modules/clinic/_winapi.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_winapi_Overlapped_GetOverlappedResult__doc__, -"GetOverlappedResult($self, wait, /)\n" +"GetOverlappedResult($self, __wait)\n" "--\n" "\n"); @@ -30,7 +30,7 @@ _winapi_Overlapped_GetOverlappedResult(OverlappedObject *self, PyObject *arg) } PyDoc_STRVAR(_winapi_Overlapped_getbuffer__doc__, -"getbuffer($self, /)\n" +"getbuffer($self)\n" "--\n" "\n"); @@ -47,7 +47,7 @@ _winapi_Overlapped_getbuffer(OverlappedObject *self, PyObject *Py_UNUSED(ignored } PyDoc_STRVAR(_winapi_Overlapped_cancel__doc__, -"cancel($self, /)\n" +"cancel($self)\n" "--\n" "\n"); @@ -64,7 +64,7 @@ _winapi_Overlapped_cancel(OverlappedObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_winapi_CloseHandle__doc__, -"CloseHandle($module, handle, /)\n" +"CloseHandle($module, __handle)\n" "--\n" "\n" "Close handle."); @@ -91,7 +91,7 @@ _winapi_CloseHandle(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_winapi_ConnectNamedPipe__doc__, -"ConnectNamedPipe($module, /, handle, overlapped=False)\n" +"ConnectNamedPipe($module, handle, overlapped=False)\n" "--\n" "\n"); @@ -122,9 +122,9 @@ _winapi_ConnectNamedPipe(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_winapi_CreateFile__doc__, -"CreateFile($module, file_name, desired_access, share_mode,\n" -" security_attributes, creation_disposition,\n" -" flags_and_attributes, template_file, /)\n" +"CreateFile($module, __file_name, __desired_access, __share_mode,\n" +" __security_attributes, __creation_disposition,\n" +" __flags_and_attributes, __template_file)\n" "--\n" "\n"); @@ -169,8 +169,8 @@ _winapi_CreateFile(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_CreateFileMapping__doc__, -"CreateFileMapping($module, file_handle, security_attributes, protect,\n" -" max_size_high, max_size_low, name, /)\n" +"CreateFileMapping($module, __file_handle, __security_attributes,\n" +" __protect, __max_size_high, __max_size_low, __name)\n" "--\n" "\n"); @@ -213,7 +213,7 @@ _winapi_CreateFileMapping(PyObject *module, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(_winapi_CreateJunction__doc__, -"CreateJunction($module, src_path, dst_path, /)\n" +"CreateJunction($module, __src_path, __dst_path)\n" "--\n" "\n"); @@ -242,9 +242,9 @@ _winapi_CreateJunction(PyObject *module, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(_winapi_CreateNamedPipe__doc__, -"CreateNamedPipe($module, name, open_mode, pipe_mode, max_instances,\n" -" out_buffer_size, in_buffer_size, default_timeout,\n" -" security_attributes, /)\n" +"CreateNamedPipe($module, __name, __open_mode, __pipe_mode,\n" +" __max_instances, __out_buffer_size, __in_buffer_size,\n" +" __default_timeout, __security_attributes)\n" "--\n" "\n"); @@ -290,7 +290,7 @@ _winapi_CreateNamedPipe(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_winapi_CreatePipe__doc__, -"CreatePipe($module, pipe_attrs, size, /)\n" +"CreatePipe($module, __pipe_attrs, __size)\n" "--\n" "\n" "Create an anonymous pipe.\n" @@ -324,9 +324,10 @@ _winapi_CreatePipe(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_CreateProcess__doc__, -"CreateProcess($module, application_name, command_line, proc_attrs,\n" -" thread_attrs, inherit_handles, creation_flags,\n" -" env_mapping, current_directory, startup_info, /)\n" +"CreateProcess($module, __application_name, __command_line,\n" +" __proc_attrs, __thread_attrs, __inherit_handles,\n" +" __creation_flags, __env_mapping, __current_directory,\n" +" __startup_info)\n" "--\n" "\n" "Create a new process and its primary thread.\n" @@ -378,9 +379,9 @@ _winapi_CreateProcess(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_DuplicateHandle__doc__, -"DuplicateHandle($module, source_process_handle, source_handle,\n" -" target_process_handle, desired_access, inherit_handle,\n" -" options=0, /)\n" +"DuplicateHandle($module, __source_process_handle, __source_handle,\n" +" __target_process_handle, __desired_access,\n" +" __inherit_handle, __options=0)\n" "--\n" "\n" "Return a duplicate handle object.\n" @@ -429,7 +430,7 @@ _winapi_DuplicateHandle(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_winapi_ExitProcess__doc__, -"ExitProcess($module, ExitCode, /)\n" +"ExitProcess($module, __ExitCode)\n" "--\n" "\n"); @@ -455,7 +456,7 @@ _winapi_ExitProcess(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_winapi_GetCurrentProcess__doc__, -"GetCurrentProcess($module, /)\n" +"GetCurrentProcess($module)\n" "--\n" "\n" "Return a handle object for the current process."); @@ -486,7 +487,7 @@ _winapi_GetCurrentProcess(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_winapi_GetExitCodeProcess__doc__, -"GetExitCodeProcess($module, process, /)\n" +"GetExitCodeProcess($module, __process)\n" "--\n" "\n" "Return the termination status of the specified process."); @@ -518,7 +519,7 @@ _winapi_GetExitCodeProcess(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_winapi_GetLastError__doc__, -"GetLastError($module, /)\n" +"GetLastError($module)\n" "--\n" "\n"); @@ -545,7 +546,7 @@ _winapi_GetLastError(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_winapi_GetModuleFileName__doc__, -"GetModuleFileName($module, module_handle, /)\n" +"GetModuleFileName($module, __module_handle)\n" "--\n" "\n" "Return the fully-qualified path for the file that contains module.\n" @@ -579,7 +580,7 @@ _winapi_GetModuleFileName(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_winapi_GetStdHandle__doc__, -"GetStdHandle($module, std_handle, /)\n" +"GetStdHandle($module, __std_handle)\n" "--\n" "\n" "Return a handle to the specified standard device.\n" @@ -619,7 +620,7 @@ _winapi_GetStdHandle(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_winapi_GetVersion__doc__, -"GetVersion($module, /)\n" +"GetVersion($module)\n" "--\n" "\n" "Return the version number of the current operating system."); @@ -647,8 +648,8 @@ _winapi_GetVersion(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_winapi_MapViewOfFile__doc__, -"MapViewOfFile($module, file_map, desired_access, file_offset_high,\n" -" file_offset_low, number_bytes, /)\n" +"MapViewOfFile($module, __file_map, __desired_access,\n" +" __file_offset_high, __file_offset_low, __number_bytes)\n" "--\n" "\n"); @@ -686,7 +687,7 @@ _winapi_MapViewOfFile(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_OpenFileMapping__doc__, -"OpenFileMapping($module, desired_access, inherit_handle, name, /)\n" +"OpenFileMapping($module, __desired_access, __inherit_handle, __name)\n" "--\n" "\n"); @@ -724,7 +725,7 @@ _winapi_OpenFileMapping(PyObject *module, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_winapi_OpenProcess__doc__, -"OpenProcess($module, desired_access, inherit_handle, process_id, /)\n" +"OpenProcess($module, __desired_access, __inherit_handle, __process_id)\n" "--\n" "\n"); @@ -762,7 +763,7 @@ _winapi_OpenProcess(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_PeekNamedPipe__doc__, -"PeekNamedPipe($module, handle, size=0, /)\n" +"PeekNamedPipe($module, __handle, __size=0)\n" "--\n" "\n"); @@ -790,7 +791,7 @@ _winapi_PeekNamedPipe(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_ReadFile__doc__, -"ReadFile($module, /, handle, size, overlapped=False)\n" +"ReadFile($module, handle, size, overlapped=False)\n" "--\n" "\n"); @@ -822,8 +823,8 @@ _winapi_ReadFile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb } PyDoc_STRVAR(_winapi_SetNamedPipeHandleState__doc__, -"SetNamedPipeHandleState($module, named_pipe, mode,\n" -" max_collection_count, collect_data_timeout, /)\n" +"SetNamedPipeHandleState($module, __named_pipe, __mode,\n" +" __max_collection_count, __collect_data_timeout)\n" "--\n" "\n"); @@ -856,7 +857,7 @@ _winapi_SetNamedPipeHandleState(PyObject *module, PyObject *const *args, Py_ssiz } PyDoc_STRVAR(_winapi_TerminateProcess__doc__, -"TerminateProcess($module, handle, exit_code, /)\n" +"TerminateProcess($module, __handle, __exit_code)\n" "--\n" "\n" "Terminate the specified process and all of its threads."); @@ -886,7 +887,7 @@ _winapi_TerminateProcess(PyObject *module, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(_winapi_VirtualQuerySize__doc__, -"VirtualQuerySize($module, address, /)\n" +"VirtualQuerySize($module, __address)\n" "--\n" "\n"); @@ -917,7 +918,7 @@ _winapi_VirtualQuerySize(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_winapi_WaitNamedPipe__doc__, -"WaitNamedPipe($module, name, timeout, /)\n" +"WaitNamedPipe($module, __name, __timeout)\n" "--\n" "\n"); @@ -945,8 +946,8 @@ _winapi_WaitNamedPipe(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_winapi_WaitForMultipleObjects__doc__, -"WaitForMultipleObjects($module, handle_seq, wait_flag,\n" -" milliseconds=_winapi.INFINITE, /)\n" +"WaitForMultipleObjects($module, __handle_seq, __wait_flag,\n" +" __milliseconds=_winapi.INFINITE)\n" "--\n" "\n"); @@ -976,7 +977,7 @@ _winapi_WaitForMultipleObjects(PyObject *module, PyObject *const *args, Py_ssize } PyDoc_STRVAR(_winapi_WaitForSingleObject__doc__, -"WaitForSingleObject($module, handle, milliseconds, /)\n" +"WaitForSingleObject($module, __handle, __milliseconds)\n" "--\n" "\n" "Wait for a single object.\n" @@ -1015,7 +1016,7 @@ _winapi_WaitForSingleObject(PyObject *module, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(_winapi_WriteFile__doc__, -"WriteFile($module, /, handle, buffer, overlapped=False)\n" +"WriteFile($module, handle, buffer, overlapped=False)\n" "--\n" "\n"); @@ -1047,7 +1048,7 @@ _winapi_WriteFile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyO } PyDoc_STRVAR(_winapi_GetACP__doc__, -"GetACP($module, /)\n" +"GetACP($module)\n" "--\n" "\n" "Get the current Windows ANSI code page identifier."); @@ -1065,7 +1066,7 @@ _winapi_GetACP(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_winapi_GetFileType__doc__, -"GetFileType($module, /, handle)\n" +"GetFileType($module, handle)\n" "--\n" "\n"); @@ -1097,4 +1098,4 @@ _winapi_GetFileType(PyObject *module, PyObject *const *args, Py_ssize_t nargs, P exit: return return_value; } -/*[clinic end generated code: output=f3897898ea1da99d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=925473dd77ad5b68 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/arraymodule.c.h b/Modules/clinic/arraymodule.c.h index 5f45b7cf673473..6e0b425cb8946c 100644 --- a/Modules/clinic/arraymodule.c.h +++ b/Modules/clinic/arraymodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(array_array___copy____doc__, -"__copy__($self, /)\n" +"__copy__($self)\n" "--\n" "\n" "Return a copy of the array."); @@ -21,7 +21,7 @@ array_array___copy__(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array___deepcopy____doc__, -"__deepcopy__($self, unused, /)\n" +"__deepcopy__($self, __unused)\n" "--\n" "\n" "Return a copy of the array."); @@ -30,7 +30,7 @@ PyDoc_STRVAR(array_array___deepcopy____doc__, {"__deepcopy__", (PyCFunction)array_array___deepcopy__, METH_O, array_array___deepcopy____doc__}, PyDoc_STRVAR(array_array_count__doc__, -"count($self, v, /)\n" +"count($self, __v)\n" "--\n" "\n" "Return number of occurrences of v in the array."); @@ -39,7 +39,7 @@ PyDoc_STRVAR(array_array_count__doc__, {"count", (PyCFunction)array_array_count, METH_O, array_array_count__doc__}, PyDoc_STRVAR(array_array_index__doc__, -"index($self, v, /)\n" +"index($self, __v)\n" "--\n" "\n" "Return index of first occurrence of v in the array."); @@ -48,7 +48,7 @@ PyDoc_STRVAR(array_array_index__doc__, {"index", (PyCFunction)array_array_index, METH_O, array_array_index__doc__}, PyDoc_STRVAR(array_array_remove__doc__, -"remove($self, v, /)\n" +"remove($self, __v)\n" "--\n" "\n" "Remove the first occurrence of v in the array."); @@ -57,7 +57,7 @@ PyDoc_STRVAR(array_array_remove__doc__, {"remove", (PyCFunction)array_array_remove, METH_O, array_array_remove__doc__}, PyDoc_STRVAR(array_array_pop__doc__, -"pop($self, i=-1, /)\n" +"pop($self, __i=-1)\n" "--\n" "\n" "Return the i-th element and delete it from the array.\n" @@ -107,7 +107,7 @@ array_array_pop(arrayobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(array_array_extend__doc__, -"extend($self, bb, /)\n" +"extend($self, __bb)\n" "--\n" "\n" "Append items to the end of the array."); @@ -116,7 +116,7 @@ PyDoc_STRVAR(array_array_extend__doc__, {"extend", (PyCFunction)array_array_extend, METH_O, array_array_extend__doc__}, PyDoc_STRVAR(array_array_insert__doc__, -"insert($self, i, v, /)\n" +"insert($self, __i, __v)\n" "--\n" "\n" "Insert a new item v into the array before position i."); @@ -162,7 +162,7 @@ array_array_insert(arrayobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(array_array_buffer_info__doc__, -"buffer_info($self, /)\n" +"buffer_info($self)\n" "--\n" "\n" "Return a tuple (address, length) giving the current memory address and the length in items of the buffer used to hold array\'s contents.\n" @@ -183,7 +183,7 @@ array_array_buffer_info(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array_append__doc__, -"append($self, v, /)\n" +"append($self, __v)\n" "--\n" "\n" "Append new value v to the end of the array."); @@ -192,7 +192,7 @@ PyDoc_STRVAR(array_array_append__doc__, {"append", (PyCFunction)array_array_append, METH_O, array_array_append__doc__}, PyDoc_STRVAR(array_array_byteswap__doc__, -"byteswap($self, /)\n" +"byteswap($self)\n" "--\n" "\n" "Byteswap all items of the array.\n" @@ -213,7 +213,7 @@ array_array_byteswap(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array_reverse__doc__, -"reverse($self, /)\n" +"reverse($self)\n" "--\n" "\n" "Reverse the order of the items in the array."); @@ -231,7 +231,7 @@ array_array_reverse(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array_fromfile__doc__, -"fromfile($self, f, n, /)\n" +"fromfile($self, __f, __n)\n" "--\n" "\n" "Read n objects from the file object f and append them to the end of the array."); @@ -277,7 +277,7 @@ array_array_fromfile(arrayobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(array_array_tofile__doc__, -"tofile($self, f, /)\n" +"tofile($self, __f)\n" "--\n" "\n" "Write all items (as machine values) to the file object f."); @@ -286,7 +286,7 @@ PyDoc_STRVAR(array_array_tofile__doc__, {"tofile", (PyCFunction)array_array_tofile, METH_O, array_array_tofile__doc__}, PyDoc_STRVAR(array_array_fromlist__doc__, -"fromlist($self, list, /)\n" +"fromlist($self, __list)\n" "--\n" "\n" "Append items to array from list."); @@ -295,7 +295,7 @@ PyDoc_STRVAR(array_array_fromlist__doc__, {"fromlist", (PyCFunction)array_array_fromlist, METH_O, array_array_fromlist__doc__}, PyDoc_STRVAR(array_array_tolist__doc__, -"tolist($self, /)\n" +"tolist($self)\n" "--\n" "\n" "Convert array to an ordinary list with the same items."); @@ -313,7 +313,7 @@ array_array_tolist(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array_fromstring__doc__, -"fromstring($self, buffer, /)\n" +"fromstring($self, __buffer)\n" "--\n" "\n" "Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method).\n" @@ -361,7 +361,7 @@ array_array_fromstring(arrayobject *self, PyObject *arg) } PyDoc_STRVAR(array_array_frombytes__doc__, -"frombytes($self, buffer, /)\n" +"frombytes($self, __buffer)\n" "--\n" "\n" "Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method)."); @@ -397,7 +397,7 @@ array_array_frombytes(arrayobject *self, PyObject *arg) } PyDoc_STRVAR(array_array_tobytes__doc__, -"tobytes($self, /)\n" +"tobytes($self)\n" "--\n" "\n" "Convert the array to an array of machine values and return the bytes representation."); @@ -415,7 +415,7 @@ array_array_tobytes(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array_tostring__doc__, -"tostring($self, /)\n" +"tostring($self)\n" "--\n" "\n" "Convert the array to an array of machine values and return the bytes representation.\n" @@ -435,7 +435,7 @@ array_array_tostring(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array_fromunicode__doc__, -"fromunicode($self, ustr, /)\n" +"fromunicode($self, __ustr)\n" "--\n" "\n" "Extends this array with data from the unicode string ustr.\n" @@ -468,7 +468,7 @@ array_array_fromunicode(arrayobject *self, PyObject *arg) } PyDoc_STRVAR(array_array_tounicode__doc__, -"tounicode($self, /)\n" +"tounicode($self)\n" "--\n" "\n" "Extends this array with data from the unicode string ustr.\n" @@ -490,7 +490,7 @@ array_array_tounicode(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array_array___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Size of the array in memory, in bytes."); @@ -508,8 +508,8 @@ array_array___sizeof__(arrayobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(array__array_reconstructor__doc__, -"_array_reconstructor($module, arraytype, typecode, mformat_code, items,\n" -" /)\n" +"_array_reconstructor($module, __arraytype, __typecode, __mformat_code,\n" +" __items)\n" "--\n" "\n" "Internal. Used for pickling support."); @@ -565,7 +565,7 @@ array__array_reconstructor(PyObject *module, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(array_array___reduce_ex____doc__, -"__reduce_ex__($self, value, /)\n" +"__reduce_ex__($self, __value)\n" "--\n" "\n" "Return state information for pickling."); @@ -574,7 +574,7 @@ PyDoc_STRVAR(array_array___reduce_ex____doc__, {"__reduce_ex__", (PyCFunction)array_array___reduce_ex__, METH_O, array_array___reduce_ex____doc__}, PyDoc_STRVAR(array_arrayiterator___reduce____doc__, -"__reduce__($self, /)\n" +"__reduce__($self)\n" "--\n" "\n" "Return state information for pickling."); @@ -592,11 +592,11 @@ array_arrayiterator___reduce__(arrayiterobject *self, PyObject *Py_UNUSED(ignore } PyDoc_STRVAR(array_arrayiterator___setstate____doc__, -"__setstate__($self, state, /)\n" +"__setstate__($self, __state)\n" "--\n" "\n" "Set state information for unpickling."); #define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \ {"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__}, -/*[clinic end generated code: output=c9a40f11f1a866fb input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9187e5f527fc03d5 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/audioop.c.h b/Modules/clinic/audioop.c.h index 4ea7155373be62..f02dbf8d84b11f 100644 --- a/Modules/clinic/audioop.c.h +++ b/Modules/clinic/audioop.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(audioop_getsample__doc__, -"getsample($module, fragment, width, index, /)\n" +"getsample($module, __fragment, __width, __index)\n" "--\n" "\n" "Return the value of sample index from the fragment."); @@ -71,7 +71,7 @@ audioop_getsample(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_max__doc__, -"max($module, fragment, width, /)\n" +"max($module, __fragment, __width)\n" "--\n" "\n" "Return the maximum of the absolute value of all samples in a fragment."); @@ -120,7 +120,7 @@ audioop_max(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_minmax__doc__, -"minmax($module, fragment, width, /)\n" +"minmax($module, __fragment, __width)\n" "--\n" "\n" "Return the minimum and maximum values of all samples in the sound fragment."); @@ -169,7 +169,7 @@ audioop_minmax(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_avg__doc__, -"avg($module, fragment, width, /)\n" +"avg($module, __fragment, __width)\n" "--\n" "\n" "Return the average over all samples in the fragment."); @@ -218,7 +218,7 @@ audioop_avg(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_rms__doc__, -"rms($module, fragment, width, /)\n" +"rms($module, __fragment, __width)\n" "--\n" "\n" "Return the root-mean-square of the fragment, i.e. sqrt(sum(S_i^2)/n)."); @@ -267,7 +267,7 @@ audioop_rms(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_findfit__doc__, -"findfit($module, fragment, reference, /)\n" +"findfit($module, __fragment, __reference)\n" "--\n" "\n" "Try to match reference as well as possible to a portion of fragment."); @@ -319,7 +319,7 @@ audioop_findfit(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_findfactor__doc__, -"findfactor($module, fragment, reference, /)\n" +"findfactor($module, __fragment, __reference)\n" "--\n" "\n" "Return a factor F such that rms(add(fragment, mul(reference, -F))) is minimal."); @@ -371,7 +371,7 @@ audioop_findfactor(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_findmax__doc__, -"findmax($module, fragment, length, /)\n" +"findmax($module, __fragment, __length)\n" "--\n" "\n" "Search fragment for a slice of specified number of samples with maximum energy."); @@ -429,7 +429,7 @@ audioop_findmax(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_avgpp__doc__, -"avgpp($module, fragment, width, /)\n" +"avgpp($module, __fragment, __width)\n" "--\n" "\n" "Return the average peak-peak value over all samples in the fragment."); @@ -478,7 +478,7 @@ audioop_avgpp(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_maxpp__doc__, -"maxpp($module, fragment, width, /)\n" +"maxpp($module, __fragment, __width)\n" "--\n" "\n" "Return the maximum peak-peak value in the sound fragment."); @@ -527,7 +527,7 @@ audioop_maxpp(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_cross__doc__, -"cross($module, fragment, width, /)\n" +"cross($module, __fragment, __width)\n" "--\n" "\n" "Return the number of zero crossings in the fragment passed as an argument."); @@ -576,7 +576,7 @@ audioop_cross(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_mul__doc__, -"mul($module, fragment, width, factor, /)\n" +"mul($module, __fragment, __width, __factor)\n" "--\n" "\n" "Return a fragment that has all samples in the original fragment multiplied by the floating-point value factor."); @@ -631,7 +631,7 @@ audioop_mul(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_tomono__doc__, -"tomono($module, fragment, width, lfactor, rfactor, /)\n" +"tomono($module, __fragment, __width, __lfactor, __rfactor)\n" "--\n" "\n" "Convert a stereo fragment to a mono fragment."); @@ -691,7 +691,7 @@ audioop_tomono(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_tostereo__doc__, -"tostereo($module, fragment, width, lfactor, rfactor, /)\n" +"tostereo($module, __fragment, __width, __lfactor, __rfactor)\n" "--\n" "\n" "Generate a stereo fragment from a mono fragment."); @@ -751,7 +751,7 @@ audioop_tostereo(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_add__doc__, -"add($module, fragment1, fragment2, width, /)\n" +"add($module, __fragment1, __fragment2, __width)\n" "--\n" "\n" "Return a fragment which is the addition of the two samples passed as parameters."); @@ -813,7 +813,7 @@ audioop_add(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_bias__doc__, -"bias($module, fragment, width, bias, /)\n" +"bias($module, __fragment, __width, __bias)\n" "--\n" "\n" "Return a fragment that is the original fragment with a bias added to each sample."); @@ -872,7 +872,7 @@ audioop_bias(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_reverse__doc__, -"reverse($module, fragment, width, /)\n" +"reverse($module, __fragment, __width)\n" "--\n" "\n" "Reverse the samples in a fragment and returns the modified fragment."); @@ -921,7 +921,7 @@ audioop_reverse(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_byteswap__doc__, -"byteswap($module, fragment, width, /)\n" +"byteswap($module, __fragment, __width)\n" "--\n" "\n" "Convert big-endian samples to little-endian and vice versa."); @@ -970,7 +970,7 @@ audioop_byteswap(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_lin2lin__doc__, -"lin2lin($module, fragment, width, newwidth, /)\n" +"lin2lin($module, __fragment, __width, __newwidth)\n" "--\n" "\n" "Convert samples between 1-, 2-, 3- and 4-byte formats."); @@ -1030,8 +1030,8 @@ audioop_lin2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_ratecv__doc__, -"ratecv($module, fragment, width, nchannels, inrate, outrate, state,\n" -" weightA=1, weightB=0, /)\n" +"ratecv($module, __fragment, __width, __nchannels, __inrate, __outrate,\n" +" __state, __weightA=1, __weightB=0)\n" "--\n" "\n" "Convert the frame rate of the input fragment."); @@ -1141,7 +1141,7 @@ audioop_ratecv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_lin2ulaw__doc__, -"lin2ulaw($module, fragment, width, /)\n" +"lin2ulaw($module, __fragment, __width)\n" "--\n" "\n" "Convert samples in the audio fragment to u-LAW encoding."); @@ -1190,7 +1190,7 @@ audioop_lin2ulaw(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_ulaw2lin__doc__, -"ulaw2lin($module, fragment, width, /)\n" +"ulaw2lin($module, __fragment, __width)\n" "--\n" "\n" "Convert sound fragments in u-LAW encoding to linearly encoded sound fragments."); @@ -1239,7 +1239,7 @@ audioop_ulaw2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_lin2alaw__doc__, -"lin2alaw($module, fragment, width, /)\n" +"lin2alaw($module, __fragment, __width)\n" "--\n" "\n" "Convert samples in the audio fragment to a-LAW encoding."); @@ -1288,7 +1288,7 @@ audioop_lin2alaw(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_alaw2lin__doc__, -"alaw2lin($module, fragment, width, /)\n" +"alaw2lin($module, __fragment, __width)\n" "--\n" "\n" "Convert sound fragments in a-LAW encoding to linearly encoded sound fragments."); @@ -1337,7 +1337,7 @@ audioop_alaw2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_lin2adpcm__doc__, -"lin2adpcm($module, fragment, width, state, /)\n" +"lin2adpcm($module, __fragment, __width, __state)\n" "--\n" "\n" "Convert samples to 4 bit Intel/DVI ADPCM encoding."); @@ -1389,7 +1389,7 @@ audioop_lin2adpcm(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(audioop_adpcm2lin__doc__, -"adpcm2lin($module, fragment, width, state, /)\n" +"adpcm2lin($module, __fragment, __width, __state)\n" "--\n" "\n" "Decode an Intel/DVI ADPCM coded fragment to a linear fragment."); @@ -1439,4 +1439,4 @@ audioop_adpcm2lin(PyObject *module, PyObject *const *args, Py_ssize_t nargs) return return_value; } -/*[clinic end generated code: output=2b173a25726252e9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=62f2419979eef69f input=a9049054013a1b77]*/ diff --git a/Modules/clinic/binascii.c.h b/Modules/clinic/binascii.c.h index 4043d89d97db3b..ef5c4e0c07d43d 100644 --- a/Modules/clinic/binascii.c.h +++ b/Modules/clinic/binascii.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(binascii_a2b_uu__doc__, -"a2b_uu($module, data, /)\n" +"a2b_uu($module, __data)\n" "--\n" "\n" "Decode a line of uuencoded data."); @@ -34,7 +34,7 @@ binascii_a2b_uu(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_b2a_uu__doc__, -"b2a_uu($module, data, /, *, backtick=False)\n" +"b2a_uu($module, __data, *, backtick=False)\n" "--\n" "\n" "Uuencode line of data."); @@ -92,7 +92,7 @@ binascii_b2a_uu(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj } PyDoc_STRVAR(binascii_a2b_base64__doc__, -"a2b_base64($module, data, /)\n" +"a2b_base64($module, __data)\n" "--\n" "\n" "Decode a line of base64 data."); @@ -123,7 +123,7 @@ binascii_a2b_base64(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_b2a_base64__doc__, -"b2a_base64($module, data, /, *, newline=True)\n" +"b2a_base64($module, __data, *, newline=True)\n" "--\n" "\n" "Base64-code line of data."); @@ -181,7 +181,7 @@ binascii_b2a_base64(PyObject *module, PyObject *const *args, Py_ssize_t nargs, P } PyDoc_STRVAR(binascii_a2b_hqx__doc__, -"a2b_hqx($module, data, /)\n" +"a2b_hqx($module, __data)\n" "--\n" "\n" "Decode .hqx coding."); @@ -212,7 +212,7 @@ binascii_a2b_hqx(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_rlecode_hqx__doc__, -"rlecode_hqx($module, data, /)\n" +"rlecode_hqx($module, __data)\n" "--\n" "\n" "Binhex RLE-code binary data."); @@ -248,7 +248,7 @@ binascii_rlecode_hqx(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_b2a_hqx__doc__, -"b2a_hqx($module, data, /)\n" +"b2a_hqx($module, __data)\n" "--\n" "\n" "Encode .hqx data."); @@ -284,7 +284,7 @@ binascii_b2a_hqx(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_rledecode_hqx__doc__, -"rledecode_hqx($module, data, /)\n" +"rledecode_hqx($module, __data)\n" "--\n" "\n" "Decode hexbin RLE-coded string."); @@ -320,7 +320,7 @@ binascii_rledecode_hqx(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_crc_hqx__doc__, -"crc_hqx($module, data, crc, /)\n" +"crc_hqx($module, __data, __crc)\n" "--\n" "\n" "Compute CRC-CCITT incrementally."); @@ -374,7 +374,7 @@ binascii_crc_hqx(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(binascii_crc32__doc__, -"crc32($module, data, crc=0, /)\n" +"crc32($module, __data, __crc=0)\n" "--\n" "\n" "Compute CRC-32 incrementally."); @@ -432,7 +432,7 @@ binascii_crc32(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(binascii_b2a_hex__doc__, -"b2a_hex($module, data, /)\n" +"b2a_hex($module, __data)\n" "--\n" "\n" "Hexadecimal representation of binary data.\n" @@ -471,7 +471,7 @@ binascii_b2a_hex(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_hexlify__doc__, -"hexlify($module, data, /)\n" +"hexlify($module, __data)\n" "--\n" "\n" "Hexadecimal representation of binary data.\n" @@ -509,7 +509,7 @@ binascii_hexlify(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_a2b_hex__doc__, -"a2b_hex($module, hexstr, /)\n" +"a2b_hex($module, __hexstr)\n" "--\n" "\n" "Binary data of hexadecimal representation.\n" @@ -543,7 +543,7 @@ binascii_a2b_hex(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_unhexlify__doc__, -"unhexlify($module, hexstr, /)\n" +"unhexlify($module, __hexstr)\n" "--\n" "\n" "Binary data of hexadecimal representation.\n" @@ -576,7 +576,7 @@ binascii_unhexlify(PyObject *module, PyObject *arg) } PyDoc_STRVAR(binascii_a2b_qp__doc__, -"a2b_qp($module, /, data, header=False)\n" +"a2b_qp($module, data, header=False)\n" "--\n" "\n" "Decode a string of qp-encoded data."); @@ -629,7 +629,7 @@ binascii_a2b_qp(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj } PyDoc_STRVAR(binascii_b2a_qp__doc__, -"b2a_qp($module, /, data, quotetabs=False, istext=True, header=False)\n" +"b2a_qp($module, data, quotetabs=False, istext=True, header=False)\n" "--\n" "\n" "Encode a string using quoted-printable encoding.\n" @@ -720,4 +720,4 @@ binascii_b2a_qp(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj return return_value; } -/*[clinic end generated code: output=a4a38e162605aca2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1eb4b5ee1bd1b038 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/cmathmodule.c.h b/Modules/clinic/cmathmodule.c.h index 83c498c2240677..a1a34736c90a53 100644 --- a/Modules/clinic/cmathmodule.c.h +++ b/Modules/clinic/cmathmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(cmath_acos__doc__, -"acos($module, z, /)\n" +"acos($module, __z)\n" "--\n" "\n" "Return the arc cosine of z."); @@ -46,7 +46,7 @@ cmath_acos(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_acosh__doc__, -"acosh($module, z, /)\n" +"acosh($module, __z)\n" "--\n" "\n" "Return the inverse hyperbolic cosine of z."); @@ -89,7 +89,7 @@ cmath_acosh(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_asin__doc__, -"asin($module, z, /)\n" +"asin($module, __z)\n" "--\n" "\n" "Return the arc sine of z."); @@ -132,7 +132,7 @@ cmath_asin(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_asinh__doc__, -"asinh($module, z, /)\n" +"asinh($module, __z)\n" "--\n" "\n" "Return the inverse hyperbolic sine of z."); @@ -175,7 +175,7 @@ cmath_asinh(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_atan__doc__, -"atan($module, z, /)\n" +"atan($module, __z)\n" "--\n" "\n" "Return the arc tangent of z."); @@ -218,7 +218,7 @@ cmath_atan(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_atanh__doc__, -"atanh($module, z, /)\n" +"atanh($module, __z)\n" "--\n" "\n" "Return the inverse hyperbolic tangent of z."); @@ -261,7 +261,7 @@ cmath_atanh(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_cos__doc__, -"cos($module, z, /)\n" +"cos($module, __z)\n" "--\n" "\n" "Return the cosine of z."); @@ -304,7 +304,7 @@ cmath_cos(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_cosh__doc__, -"cosh($module, z, /)\n" +"cosh($module, __z)\n" "--\n" "\n" "Return the hyperbolic cosine of z."); @@ -347,7 +347,7 @@ cmath_cosh(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_exp__doc__, -"exp($module, z, /)\n" +"exp($module, __z)\n" "--\n" "\n" "Return the exponential value e**z."); @@ -390,7 +390,7 @@ cmath_exp(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_log10__doc__, -"log10($module, z, /)\n" +"log10($module, __z)\n" "--\n" "\n" "Return the base-10 logarithm of z."); @@ -433,7 +433,7 @@ cmath_log10(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_sin__doc__, -"sin($module, z, /)\n" +"sin($module, __z)\n" "--\n" "\n" "Return the sine of z."); @@ -476,7 +476,7 @@ cmath_sin(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_sinh__doc__, -"sinh($module, z, /)\n" +"sinh($module, __z)\n" "--\n" "\n" "Return the hyperbolic sine of z."); @@ -519,7 +519,7 @@ cmath_sinh(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_sqrt__doc__, -"sqrt($module, z, /)\n" +"sqrt($module, __z)\n" "--\n" "\n" "Return the square root of z."); @@ -562,7 +562,7 @@ cmath_sqrt(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_tan__doc__, -"tan($module, z, /)\n" +"tan($module, __z)\n" "--\n" "\n" "Return the tangent of z."); @@ -605,7 +605,7 @@ cmath_tan(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_tanh__doc__, -"tanh($module, z, /)\n" +"tanh($module, __z)\n" "--\n" "\n" "Return the hyperbolic tangent of z."); @@ -648,7 +648,7 @@ cmath_tanh(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_log__doc__, -"log($module, x, y_obj=None, /)\n" +"log($module, __x, __y_obj=None)\n" "--\n" "\n" "The logarithm of z to the given base.\n" @@ -687,7 +687,7 @@ cmath_log(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(cmath_phase__doc__, -"phase($module, z, /)\n" +"phase($module, __z)\n" "--\n" "\n" "Return argument, also known as the phase angle, of a complex."); @@ -715,7 +715,7 @@ cmath_phase(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_polar__doc__, -"polar($module, z, /)\n" +"polar($module, __z)\n" "--\n" "\n" "Convert a complex from rectangular coordinates to polar coordinates.\n" @@ -745,7 +745,7 @@ cmath_polar(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_rect__doc__, -"rect($module, r, phi, /)\n" +"rect($module, __r, __phi)\n" "--\n" "\n" "Convert from polar coordinates to rectangular coordinates."); @@ -781,7 +781,7 @@ cmath_rect(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(cmath_isfinite__doc__, -"isfinite($module, z, /)\n" +"isfinite($module, __z)\n" "--\n" "\n" "Return True if both the real and imaginary parts of z are finite, else False."); @@ -809,7 +809,7 @@ cmath_isfinite(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_isnan__doc__, -"isnan($module, z, /)\n" +"isnan($module, __z)\n" "--\n" "\n" "Checks if the real or imaginary part of z not a number (NaN)."); @@ -837,7 +837,7 @@ cmath_isnan(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_isinf__doc__, -"isinf($module, z, /)\n" +"isinf($module, __z)\n" "--\n" "\n" "Checks if the real or imaginary part of z is infinite."); @@ -865,7 +865,7 @@ cmath_isinf(PyObject *module, PyObject *arg) } PyDoc_STRVAR(cmath_isclose__doc__, -"isclose($module, /, a, b, *, rel_tol=1e-09, abs_tol=0.0)\n" +"isclose($module, a, b, *, rel_tol=1e-09, abs_tol=0.0)\n" "--\n" "\n" "Determine whether two complex numbers are close in value.\n" @@ -944,4 +944,4 @@ cmath_isclose(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec exit: return return_value; } -/*[clinic end generated code: output=c7afb866e593fa45 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7897e47e5c06a8b2 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/fcntlmodule.c.h b/Modules/clinic/fcntlmodule.c.h index 024a44cfbf8bc6..b8edb1d32a19f4 100644 --- a/Modules/clinic/fcntlmodule.c.h +++ b/Modules/clinic/fcntlmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(fcntl_fcntl__doc__, -"fcntl($module, fd, cmd, arg=0, /)\n" +"fcntl($module, __fd, __cmd, __arg=0)\n" "--\n" "\n" "Perform the operation `cmd` on file descriptor fd.\n" @@ -59,7 +59,7 @@ fcntl_fcntl(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(fcntl_ioctl__doc__, -"ioctl($module, fd, request, arg=0, mutate_flag=True, /)\n" +"ioctl($module, __fd, __request, __arg=0, __mutate_flag=True)\n" "--\n" "\n" "Perform the operation `request` on file descriptor `fd`.\n" @@ -141,7 +141,7 @@ fcntl_ioctl(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(fcntl_flock__doc__, -"flock($module, fd, operation, /)\n" +"flock($module, __fd, __operation)\n" "--\n" "\n" "Perform the lock operation `operation` on file descriptor `fd`.\n" @@ -184,7 +184,7 @@ fcntl_flock(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(fcntl_lockf__doc__, -"lockf($module, fd, cmd, len=0, start=0, whence=0, /)\n" +"lockf($module, __fd, __cmd, __len=0, __start=0, __whence=0)\n" "--\n" "\n" "A wrapper around the fcntl() locking calls.\n" @@ -268,4 +268,4 @@ fcntl_lockf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=e912d25e28362c52 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5df0adf611679fdf input=a9049054013a1b77]*/ diff --git a/Modules/clinic/gcmodule.c.h b/Modules/clinic/gcmodule.c.h index 22d2aa4a87bcd0..d8348b8a019e5a 100644 --- a/Modules/clinic/gcmodule.c.h +++ b/Modules/clinic/gcmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(gc_enable__doc__, -"enable($module, /)\n" +"enable($module)\n" "--\n" "\n" "Enable automatic garbage collection."); @@ -21,7 +21,7 @@ gc_enable(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_disable__doc__, -"disable($module, /)\n" +"disable($module)\n" "--\n" "\n" "Disable automatic garbage collection."); @@ -39,7 +39,7 @@ gc_disable(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_isenabled__doc__, -"isenabled($module, /)\n" +"isenabled($module)\n" "--\n" "\n" "Returns true if automatic garbage collection is enabled."); @@ -67,7 +67,7 @@ gc_isenabled(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_collect__doc__, -"collect($module, /, generation=2)\n" +"collect($module, generation=2)\n" "--\n" "\n" "Run the garbage collector.\n" @@ -123,7 +123,7 @@ gc_collect(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * } PyDoc_STRVAR(gc_set_debug__doc__, -"set_debug($module, flags, /)\n" +"set_debug($module, __flags)\n" "--\n" "\n" "Set the garbage collection debugging flags.\n" @@ -167,7 +167,7 @@ gc_set_debug(PyObject *module, PyObject *arg) } PyDoc_STRVAR(gc_get_debug__doc__, -"get_debug($module, /)\n" +"get_debug($module)\n" "--\n" "\n" "Get the garbage collection debugging flags."); @@ -195,7 +195,7 @@ gc_get_debug(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_get_threshold__doc__, -"get_threshold($module, /)\n" +"get_threshold($module)\n" "--\n" "\n" "Return the current collection thresholds."); @@ -213,7 +213,7 @@ gc_get_threshold(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_get_count__doc__, -"get_count($module, /)\n" +"get_count($module)\n" "--\n" "\n" "Return a three-tuple of the current collection counts."); @@ -231,7 +231,7 @@ gc_get_count(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_get_objects__doc__, -"get_objects($module, /, generation=None)\n" +"get_objects($module, generation=None)\n" "--\n" "\n" "Return a list of objects tracked by the collector (excluding the list returned).\n" @@ -276,7 +276,7 @@ gc_get_objects(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(gc_get_stats__doc__, -"get_stats($module, /)\n" +"get_stats($module)\n" "--\n" "\n" "Return a list of dictionaries containing per-generation statistics."); @@ -294,7 +294,7 @@ gc_get_stats(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_is_tracked__doc__, -"is_tracked($module, obj, /)\n" +"is_tracked($module, __obj)\n" "--\n" "\n" "Returns true if the object is tracked by the garbage collector.\n" @@ -305,7 +305,7 @@ PyDoc_STRVAR(gc_is_tracked__doc__, {"is_tracked", (PyCFunction)gc_is_tracked, METH_O, gc_is_tracked__doc__}, PyDoc_STRVAR(gc_freeze__doc__, -"freeze($module, /)\n" +"freeze($module)\n" "--\n" "\n" "Freeze all current tracked objects and ignore them for future collections.\n" @@ -327,7 +327,7 @@ gc_freeze(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_unfreeze__doc__, -"unfreeze($module, /)\n" +"unfreeze($module)\n" "--\n" "\n" "Unfreeze all objects in the permanent generation.\n" @@ -347,7 +347,7 @@ gc_unfreeze(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(gc_get_freeze_count__doc__, -"get_freeze_count($module, /)\n" +"get_freeze_count($module)\n" "--\n" "\n" "Return the number of objects in the permanent generation."); @@ -373,4 +373,4 @@ gc_get_freeze_count(PyObject *module, PyObject *Py_UNUSED(ignored)) exit: return return_value; } -/*[clinic end generated code: output=e40d384b1f0d513c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1003f0a0be4b64a0 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/grpmodule.c.h b/Modules/clinic/grpmodule.c.h index ae99c50955f648..f36a34b84ce3e1 100644 --- a/Modules/clinic/grpmodule.c.h +++ b/Modules/clinic/grpmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(grp_getgrgid__doc__, -"getgrgid($module, /, id)\n" +"getgrgid($module, id)\n" "--\n" "\n" "Return the group database entry for the given numeric group ID.\n" @@ -37,7 +37,7 @@ grp_getgrgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(grp_getgrnam__doc__, -"getgrnam($module, /, name)\n" +"getgrnam($module, name)\n" "--\n" "\n" "Return the group database entry for the given group name.\n" @@ -78,7 +78,7 @@ grp_getgrnam(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(grp_getgrall__doc__, -"getgrall($module, /)\n" +"getgrall($module)\n" "--\n" "\n" "Return a list of all available group entries, in arbitrary order.\n" @@ -97,4 +97,4 @@ grp_getgrall(PyObject *module, PyObject *Py_UNUSED(ignored)) { return grp_getgrall_impl(module); } -/*[clinic end generated code: output=2aa6c60873d41ee8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=53a491b0d77399f0 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/itertoolsmodule.c.h b/Modules/clinic/itertoolsmodule.c.h index b43ce64af0dc43..20d4839f3c8a57 100644 --- a/Modules/clinic/itertoolsmodule.c.h +++ b/Modules/clinic/itertoolsmodule.c.h @@ -78,7 +78,7 @@ itertools__grouper(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_teedataobject__doc__, -"teedataobject(iterable, values, next, /)\n" +"teedataobject(__iterable, __values, __next)\n" "--\n" "\n" "Data container common to multiple tee objects."); @@ -116,7 +116,7 @@ itertools_teedataobject(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools__tee__doc__, -"_tee(iterable, /)\n" +"_tee(__iterable)\n" "--\n" "\n" "Iterator wrapped to make it copyable."); @@ -145,7 +145,7 @@ itertools__tee(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_tee__doc__, -"tee($module, iterable, n=2, /)\n" +"tee($module, __iterable, __n=2)\n" "--\n" "\n" "Returns a tuple of n independent iterators."); @@ -195,7 +195,7 @@ itertools_tee(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(itertools_cycle__doc__, -"cycle(iterable, /)\n" +"cycle(__iterable)\n" "--\n" "\n" "Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely."); @@ -224,7 +224,7 @@ itertools_cycle(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_dropwhile__doc__, -"dropwhile(predicate, iterable, /)\n" +"dropwhile(__predicate, __iterable)\n" "--\n" "\n" "Drop items from the iterable while predicate(item) is true.\n" @@ -257,7 +257,7 @@ itertools_dropwhile(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_takewhile__doc__, -"takewhile(predicate, iterable, /)\n" +"takewhile(__predicate, __iterable)\n" "--\n" "\n" "Return successive entries from an iterable as long as the predicate evaluates to true for each entry."); @@ -288,7 +288,7 @@ itertools_takewhile(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_starmap__doc__, -"starmap(function, iterable, /)\n" +"starmap(__function, __iterable)\n" "--\n" "\n" "Return an iterator whose values are returned from the function evaluated with an argument tuple taken from the given sequence."); @@ -319,7 +319,7 @@ itertools_starmap(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_chain_from_iterable__doc__, -"from_iterable($type, iterable, /)\n" +"from_iterable($type, __iterable)\n" "--\n" "\n" "Alternative chain() constructor taking a single iterable argument that evaluates lazily."); @@ -560,7 +560,7 @@ itertools_compress(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(itertools_filterfalse__doc__, -"filterfalse(function, iterable, /)\n" +"filterfalse(__function, __iterable)\n" "--\n" "\n" "Return those items of iterable for which function(item) is false.\n" @@ -642,4 +642,4 @@ itertools_count(PyTypeObject *type, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=04c49debcae96003 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ac1c527c791b4973 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/mathmodule.c.h b/Modules/clinic/mathmodule.c.h index 1806a01588c5ab..09fa02fd0db614 100644 --- a/Modules/clinic/mathmodule.c.h +++ b/Modules/clinic/mathmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(math_gcd__doc__, -"gcd($module, x, y, /)\n" +"gcd($module, __x, __y)\n" "--\n" "\n" "greatest common divisor of x and y"); @@ -33,7 +33,7 @@ math_gcd(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(math_ceil__doc__, -"ceil($module, x, /)\n" +"ceil($module, __x)\n" "--\n" "\n" "Return the ceiling of x as an Integral.\n" @@ -44,7 +44,7 @@ PyDoc_STRVAR(math_ceil__doc__, {"ceil", (PyCFunction)math_ceil, METH_O, math_ceil__doc__}, PyDoc_STRVAR(math_floor__doc__, -"floor($module, x, /)\n" +"floor($module, __x)\n" "--\n" "\n" "Return the floor of x as an Integral.\n" @@ -55,7 +55,7 @@ PyDoc_STRVAR(math_floor__doc__, {"floor", (PyCFunction)math_floor, METH_O, math_floor__doc__}, PyDoc_STRVAR(math_fsum__doc__, -"fsum($module, seq, /)\n" +"fsum($module, __seq)\n" "--\n" "\n" "Return an accurate floating point sum of values in the iterable seq.\n" @@ -66,7 +66,7 @@ PyDoc_STRVAR(math_fsum__doc__, {"fsum", (PyCFunction)math_fsum, METH_O, math_fsum__doc__}, PyDoc_STRVAR(math_factorial__doc__, -"factorial($module, x, /)\n" +"factorial($module, __x)\n" "--\n" "\n" "Find x!.\n" @@ -77,7 +77,7 @@ PyDoc_STRVAR(math_factorial__doc__, {"factorial", (PyCFunction)math_factorial, METH_O, math_factorial__doc__}, PyDoc_STRVAR(math_trunc__doc__, -"trunc($module, x, /)\n" +"trunc($module, __x)\n" "--\n" "\n" "Truncates the Real x to the nearest Integral toward 0.\n" @@ -88,7 +88,7 @@ PyDoc_STRVAR(math_trunc__doc__, {"trunc", (PyCFunction)math_trunc, METH_O, math_trunc__doc__}, PyDoc_STRVAR(math_frexp__doc__, -"frexp($module, x, /)\n" +"frexp($module, __x)\n" "--\n" "\n" "Return the mantissa and exponent of x, as pair (m, e).\n" @@ -119,7 +119,7 @@ math_frexp(PyObject *module, PyObject *arg) } PyDoc_STRVAR(math_ldexp__doc__, -"ldexp($module, x, i, /)\n" +"ldexp($module, __x, __i)\n" "--\n" "\n" "Return x * (2**i).\n" @@ -154,7 +154,7 @@ math_ldexp(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(math_modf__doc__, -"modf($module, x, /)\n" +"modf($module, __x)\n" "--\n" "\n" "Return the fractional and integer parts of x.\n" @@ -227,7 +227,7 @@ math_log(PyObject *module, PyObject *args) } PyDoc_STRVAR(math_log2__doc__, -"log2($module, x, /)\n" +"log2($module, __x)\n" "--\n" "\n" "Return the base 2 logarithm of x."); @@ -236,7 +236,7 @@ PyDoc_STRVAR(math_log2__doc__, {"log2", (PyCFunction)math_log2, METH_O, math_log2__doc__}, PyDoc_STRVAR(math_log10__doc__, -"log10($module, x, /)\n" +"log10($module, __x)\n" "--\n" "\n" "Return the base 10 logarithm of x."); @@ -245,7 +245,7 @@ PyDoc_STRVAR(math_log10__doc__, {"log10", (PyCFunction)math_log10, METH_O, math_log10__doc__}, PyDoc_STRVAR(math_fmod__doc__, -"fmod($module, x, y, /)\n" +"fmod($module, __x, __y)\n" "--\n" "\n" "Return fmod(x, y), according to platform C.\n" @@ -283,7 +283,7 @@ math_fmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(math_dist__doc__, -"dist($module, p, q, /)\n" +"dist($module, __p, __q)\n" "--\n" "\n" "Return the Euclidean distance between two points p and q.\n" @@ -327,7 +327,7 @@ math_dist(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(math_pow__doc__, -"pow($module, x, y, /)\n" +"pow($module, __x, __y)\n" "--\n" "\n" "Return x**y (x to the power of y)."); @@ -363,7 +363,7 @@ math_pow(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(math_degrees__doc__, -"degrees($module, x, /)\n" +"degrees($module, __x)\n" "--\n" "\n" "Convert angle x from radians to degrees."); @@ -391,7 +391,7 @@ math_degrees(PyObject *module, PyObject *arg) } PyDoc_STRVAR(math_radians__doc__, -"radians($module, x, /)\n" +"radians($module, __x)\n" "--\n" "\n" "Convert angle x from degrees to radians."); @@ -419,7 +419,7 @@ math_radians(PyObject *module, PyObject *arg) } PyDoc_STRVAR(math_isfinite__doc__, -"isfinite($module, x, /)\n" +"isfinite($module, __x)\n" "--\n" "\n" "Return True if x is neither an infinity nor a NaN, and False otherwise."); @@ -447,7 +447,7 @@ math_isfinite(PyObject *module, PyObject *arg) } PyDoc_STRVAR(math_isnan__doc__, -"isnan($module, x, /)\n" +"isnan($module, __x)\n" "--\n" "\n" "Return True if x is a NaN (not a number), and False otherwise."); @@ -475,7 +475,7 @@ math_isnan(PyObject *module, PyObject *arg) } PyDoc_STRVAR(math_isinf__doc__, -"isinf($module, x, /)\n" +"isinf($module, __x)\n" "--\n" "\n" "Return True if x is a positive or negative infinity, and False otherwise."); @@ -503,7 +503,7 @@ math_isinf(PyObject *module, PyObject *arg) } PyDoc_STRVAR(math_isclose__doc__, -"isclose($module, /, a, b, *, rel_tol=1e-09, abs_tol=0.0)\n" +"isclose($module, a, b, *, rel_tol=1e-09, abs_tol=0.0)\n" "--\n" "\n" "Determine whether two floating point numbers are close in value.\n" @@ -585,7 +585,7 @@ math_isclose(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(math_prod__doc__, -"prod($module, iterable, /, *, start=1)\n" +"prod($module, __iterable, *, start=1)\n" "--\n" "\n" "Calculate the product of all the elements in the input iterable.\n" @@ -628,4 +628,4 @@ math_prod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k exit: return return_value; } -/*[clinic end generated code: output=96e71135dce41c48 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6e71a2f2e6ae2028 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/md5module.c.h b/Modules/clinic/md5module.c.h index 12484cc0e3dd88..baa6f88797db0a 100644 --- a/Modules/clinic/md5module.c.h +++ b/Modules/clinic/md5module.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(MD5Type_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -21,7 +21,7 @@ MD5Type_copy(MD5object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(MD5Type_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -39,7 +39,7 @@ MD5Type_digest(MD5object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(MD5Type_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -57,7 +57,7 @@ MD5Type_hexdigest(MD5object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(MD5Type_update__doc__, -"update($self, obj, /)\n" +"update($self, __obj)\n" "--\n" "\n" "Update this hash object\'s state with the provided string."); @@ -66,7 +66,7 @@ PyDoc_STRVAR(MD5Type_update__doc__, {"update", (PyCFunction)MD5Type_update, METH_O, MD5Type_update__doc__}, PyDoc_STRVAR(_md5_md5__doc__, -"md5($module, /, string=b\'\')\n" +"md5($module, string=b\'\')\n" "--\n" "\n" "Return a new MD5 hash object; optionally initialized with a string."); @@ -101,4 +101,4 @@ _md5_md5(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw exit: return return_value; } -/*[clinic end generated code: output=53133f08cf9095fc input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4ee6d01523f31cc4 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 43f8ba6b4e6161..48a5f80181ed13 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(os_stat__doc__, -"stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n" +"stat($module, path, *, dir_fd=None, follow_symlinks=True)\n" "--\n" "\n" "Perform a stat system call on the given path.\n" @@ -78,7 +78,7 @@ os_stat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn } PyDoc_STRVAR(os_lstat__doc__, -"lstat($module, /, path, *, dir_fd=None)\n" +"lstat($module, path, *, dir_fd=None)\n" "--\n" "\n" "Perform a stat system call on the given path, without following symbolic links.\n" @@ -127,7 +127,7 @@ os_lstat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw } PyDoc_STRVAR(os_access__doc__, -"access($module, /, path, mode, *, dir_fd=None, effective_ids=False,\n" +"access($module, path, mode, *, dir_fd=None, effective_ids=False,\n" " follow_symlinks=True)\n" "--\n" "\n" @@ -237,7 +237,7 @@ os_access(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_TTYNAME) PyDoc_STRVAR(os_ttyname__doc__, -"ttyname($module, fd, /)\n" +"ttyname($module, __fd)\n" "--\n" "\n" "Return the name of the terminal device connected to \'fd\'.\n" @@ -277,7 +277,7 @@ os_ttyname(PyObject *module, PyObject *arg) #if defined(HAVE_CTERMID) PyDoc_STRVAR(os_ctermid__doc__, -"ctermid($module, /)\n" +"ctermid($module)\n" "--\n" "\n" "Return the name of the controlling terminal for this process."); @@ -297,7 +297,7 @@ os_ctermid(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(HAVE_CTERMID) */ PyDoc_STRVAR(os_chdir__doc__, -"chdir($module, /, path)\n" +"chdir($module, path)\n" "--\n" "\n" "Change the current working directory to the specified path.\n" @@ -340,7 +340,7 @@ os_chdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_FCHDIR) PyDoc_STRVAR(os_fchdir__doc__, -"fchdir($module, /, fd)\n" +"fchdir($module, fd)\n" "--\n" "\n" "Change to the directory of the given file descriptor.\n" @@ -379,7 +379,7 @@ os_fchdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #endif /* defined(HAVE_FCHDIR) */ PyDoc_STRVAR(os_chmod__doc__, -"chmod($module, /, path, mode, *, dir_fd=None, follow_symlinks=True)\n" +"chmod($module, path, mode, *, dir_fd=None, follow_symlinks=True)\n" "--\n" "\n" "Change the access permissions of a file.\n" @@ -468,7 +468,7 @@ os_chmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_FCHMOD) PyDoc_STRVAR(os_fchmod__doc__, -"fchmod($module, /, fd, mode)\n" +"fchmod($module, fd, mode)\n" "--\n" "\n" "Change the access permissions of the file given by file descriptor fd.\n" @@ -524,7 +524,7 @@ os_fchmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_LCHMOD) PyDoc_STRVAR(os_lchmod__doc__, -"lchmod($module, /, path, mode)\n" +"lchmod($module, path, mode)\n" "--\n" "\n" "Change the access permissions of a file, without following symbolic links.\n" @@ -578,7 +578,7 @@ os_lchmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_CHFLAGS) PyDoc_STRVAR(os_chflags__doc__, -"chflags($module, /, path, flags, follow_symlinks=True)\n" +"chflags($module, path, flags, follow_symlinks=True)\n" "--\n" "\n" "Set file flags.\n" @@ -642,7 +642,7 @@ os_chflags(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * #if defined(HAVE_LCHFLAGS) PyDoc_STRVAR(os_lchflags__doc__, -"lchflags($module, /, path, flags)\n" +"lchflags($module, path, flags)\n" "--\n" "\n" "Set file flags.\n" @@ -692,7 +692,7 @@ os_lchflags(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_CHROOT) PyDoc_STRVAR(os_chroot__doc__, -"chroot($module, /, path)\n" +"chroot($module, path)\n" "--\n" "\n" "Change root directory to path."); @@ -733,7 +733,7 @@ os_chroot(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_FSYNC) PyDoc_STRVAR(os_fsync__doc__, -"fsync($module, /, fd)\n" +"fsync($module, fd)\n" "--\n" "\n" "Force write of fd to disk."); @@ -771,7 +771,7 @@ os_fsync(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_SYNC) PyDoc_STRVAR(os_sync__doc__, -"sync($module, /)\n" +"sync($module)\n" "--\n" "\n" "Force write of everything to disk."); @@ -793,7 +793,7 @@ os_sync(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_FDATASYNC) PyDoc_STRVAR(os_fdatasync__doc__, -"fdatasync($module, /, fd)\n" +"fdatasync($module, fd)\n" "--\n" "\n" "Force write of fd to disk without forcing update of metadata."); @@ -831,7 +831,7 @@ os_fdatasync(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_CHOWN) PyDoc_STRVAR(os_chown__doc__, -"chown($module, /, path, uid, gid, *, dir_fd=None, follow_symlinks=True)\n" +"chown($module, path, uid, gid, *, dir_fd=None, follow_symlinks=True)\n" "--\n" "\n" "Change the owner and group id of path to the numeric uid and gid.\\\n" @@ -924,7 +924,7 @@ os_chown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_FCHOWN) PyDoc_STRVAR(os_fchown__doc__, -"fchown($module, /, fd, uid, gid)\n" +"fchown($module, fd, uid, gid)\n" "--\n" "\n" "Change the owner and group id of the file specified by file descriptor.\n" @@ -978,7 +978,7 @@ os_fchown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_LCHOWN) PyDoc_STRVAR(os_lchown__doc__, -"lchown($module, /, path, uid, gid)\n" +"lchown($module, path, uid, gid)\n" "--\n" "\n" "Change the owner and group id of path to the numeric uid and gid.\n" @@ -1028,7 +1028,7 @@ os_lchown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #endif /* defined(HAVE_LCHOWN) */ PyDoc_STRVAR(os_getcwd__doc__, -"getcwd($module, /)\n" +"getcwd($module)\n" "--\n" "\n" "Return a unicode string representing the current working directory."); @@ -1046,7 +1046,7 @@ os_getcwd(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(os_getcwdb__doc__, -"getcwdb($module, /)\n" +"getcwdb($module)\n" "--\n" "\n" "Return a bytes string representing the current working directory."); @@ -1066,7 +1066,7 @@ os_getcwdb(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_LINK) PyDoc_STRVAR(os_link__doc__, -"link($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None,\n" +"link($module, src, dst, *, src_dir_fd=None, dst_dir_fd=None,\n" " follow_symlinks=True)\n" "--\n" "\n" @@ -1151,7 +1151,7 @@ os_link(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn #endif /* defined(HAVE_LINK) */ PyDoc_STRVAR(os_listdir__doc__, -"listdir($module, /, path=None)\n" +"listdir($module, path=None)\n" "--\n" "\n" "Return a list containing the names of the files in the directory.\n" @@ -1206,7 +1206,7 @@ os_listdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * #if defined(MS_WINDOWS) PyDoc_STRVAR(os__getfullpathname__doc__, -"_getfullpathname($module, path, /)\n" +"_getfullpathname($module, __path)\n" "--\n" "\n"); @@ -1239,7 +1239,7 @@ os__getfullpathname(PyObject *module, PyObject *arg) #if defined(MS_WINDOWS) PyDoc_STRVAR(os__getfinalpathname__doc__, -"_getfinalpathname($module, path, /)\n" +"_getfinalpathname($module, __path)\n" "--\n" "\n" "A helper function for samepath on windows."); @@ -1273,7 +1273,7 @@ os__getfinalpathname(PyObject *module, PyObject *arg) #if defined(MS_WINDOWS) PyDoc_STRVAR(os__isdir__doc__, -"_isdir($module, path, /)\n" +"_isdir($module, __path)\n" "--\n" "\n" "Return true if the pathname refers to an existing directory."); @@ -1286,7 +1286,7 @@ PyDoc_STRVAR(os__isdir__doc__, #if defined(MS_WINDOWS) PyDoc_STRVAR(os__getvolumepathname__doc__, -"_getvolumepathname($module, /, path)\n" +"_getvolumepathname($module, path)\n" "--\n" "\n" "A helper function for ismount on Win32."); @@ -1325,7 +1325,7 @@ os__getvolumepathname(PyObject *module, PyObject *const *args, Py_ssize_t nargs, #endif /* defined(MS_WINDOWS) */ PyDoc_STRVAR(os_mkdir__doc__, -"mkdir($module, /, path, mode=511, *, dir_fd=None)\n" +"mkdir($module, path, mode=511, *, dir_fd=None)\n" "--\n" "\n" "Create a directory.\n" @@ -1399,7 +1399,7 @@ os_mkdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_NICE) PyDoc_STRVAR(os_nice__doc__, -"nice($module, increment, /)\n" +"nice($module, __increment)\n" "--\n" "\n" "Add increment to the priority of process and return the new priority."); @@ -1436,7 +1436,7 @@ os_nice(PyObject *module, PyObject *arg) #if defined(HAVE_GETPRIORITY) PyDoc_STRVAR(os_getpriority__doc__, -"getpriority($module, /, which, who)\n" +"getpriority($module, which, who)\n" "--\n" "\n" "Return program scheduling priority."); @@ -1490,7 +1490,7 @@ os_getpriority(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #if defined(HAVE_SETPRIORITY) PyDoc_STRVAR(os_setpriority__doc__, -"setpriority($module, /, which, who, priority)\n" +"setpriority($module, which, who, priority)\n" "--\n" "\n" "Set program scheduling priority."); @@ -1552,7 +1552,7 @@ os_setpriority(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #endif /* defined(HAVE_SETPRIORITY) */ PyDoc_STRVAR(os_rename__doc__, -"rename($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None)\n" +"rename($module, src, dst, *, src_dir_fd=None, dst_dir_fd=None)\n" "--\n" "\n" "Rename a file or directory.\n" @@ -1620,7 +1620,7 @@ os_rename(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k } PyDoc_STRVAR(os_replace__doc__, -"replace($module, /, src, dst, *, src_dir_fd=None, dst_dir_fd=None)\n" +"replace($module, src, dst, *, src_dir_fd=None, dst_dir_fd=None)\n" "--\n" "\n" "Rename a file or directory, overwriting the destination.\n" @@ -1688,7 +1688,7 @@ os_replace(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * } PyDoc_STRVAR(os_rmdir__doc__, -"rmdir($module, /, path, *, dir_fd=None)\n" +"rmdir($module, path, *, dir_fd=None)\n" "--\n" "\n" "Remove a directory.\n" @@ -1741,7 +1741,7 @@ os_rmdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_SYSTEM) && defined(MS_WINDOWS) PyDoc_STRVAR(os_system__doc__, -"system($module, /, command)\n" +"system($module, command)\n" "--\n" "\n" "Execute the command in a subshell."); @@ -1780,7 +1780,7 @@ os_system(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_SYSTEM) && !defined(MS_WINDOWS) PyDoc_STRVAR(os_system__doc__, -"system($module, /, command)\n" +"system($module, command)\n" "--\n" "\n" "Execute the command in a subshell."); @@ -1824,7 +1824,7 @@ os_system(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #endif /* defined(HAVE_SYSTEM) && !defined(MS_WINDOWS) */ PyDoc_STRVAR(os_umask__doc__, -"umask($module, mask, /)\n" +"umask($module, __mask)\n" "--\n" "\n" "Set the current numeric umask and return the previous umask."); @@ -1857,7 +1857,7 @@ os_umask(PyObject *module, PyObject *arg) } PyDoc_STRVAR(os_unlink__doc__, -"unlink($module, /, path, *, dir_fd=None)\n" +"unlink($module, path, *, dir_fd=None)\n" "--\n" "\n" "Remove a file (same as remove()).\n" @@ -1908,7 +1908,7 @@ os_unlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k } PyDoc_STRVAR(os_remove__doc__, -"remove($module, /, path, *, dir_fd=None)\n" +"remove($module, path, *, dir_fd=None)\n" "--\n" "\n" "Remove a file (same as unlink()).\n" @@ -1961,7 +1961,7 @@ os_remove(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_UNAME) PyDoc_STRVAR(os_uname__doc__, -"uname($module, /)\n" +"uname($module)\n" "--\n" "\n" "Return an object identifying the current operating system.\n" @@ -1984,7 +1984,7 @@ os_uname(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(HAVE_UNAME) */ PyDoc_STRVAR(os_utime__doc__, -"utime($module, /, path, times=None, *, ns=None, dir_fd=None,\n" +"utime($module, path, times=None, *, ns=None, dir_fd=None,\n" " follow_symlinks=True)\n" "--\n" "\n" @@ -2082,7 +2082,7 @@ os_utime(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw } PyDoc_STRVAR(os__exit__doc__, -"_exit($module, /, status)\n" +"_exit($module, status)\n" "--\n" "\n" "Exit to the system with specified status, without normal exit processing."); @@ -2124,7 +2124,7 @@ os__exit(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_EXECV) PyDoc_STRVAR(os_execv__doc__, -"execv($module, path, argv, /)\n" +"execv($module, __path, __argv)\n" "--\n" "\n" "Execute an executable path with arguments, replacing current process.\n" @@ -2168,7 +2168,7 @@ os_execv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_EXECV) PyDoc_STRVAR(os_execve__doc__, -"execve($module, /, path, argv, env)\n" +"execve($module, path, argv, env)\n" "--\n" "\n" "Execute an executable path with arguments, replacing current process.\n" @@ -2220,7 +2220,7 @@ os_execve(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_POSIX_SPAWN) PyDoc_STRVAR(os_posix_spawn__doc__, -"posix_spawn($module, path, argv, env, /, *, file_actions=(),\n" +"posix_spawn($module, __path, __argv, __env, *, file_actions=(),\n" " setpgroup=None, resetids=False, setsid=False,\n" " setsigmask=(), setsigdef=(), scheduler=None)\n" "--\n" @@ -2357,7 +2357,7 @@ os_posix_spawn(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #if defined(HAVE_POSIX_SPAWNP) PyDoc_STRVAR(os_posix_spawnp__doc__, -"posix_spawnp($module, path, argv, env, /, *, file_actions=(),\n" +"posix_spawnp($module, __path, __argv, __env, *, file_actions=(),\n" " setpgroup=None, resetids=False, setsid=False,\n" " setsigmask=(), setsigdef=(), scheduler=None)\n" "--\n" @@ -2494,7 +2494,7 @@ os_posix_spawnp(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj #if (defined(HAVE_SPAWNV) || defined(HAVE_WSPAWNV)) PyDoc_STRVAR(os_spawnv__doc__, -"spawnv($module, mode, path, argv, /)\n" +"spawnv($module, __mode, __path, __argv)\n" "--\n" "\n" "Execute the program specified by path in a new process.\n" @@ -2550,7 +2550,7 @@ os_spawnv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_SPAWNV) || defined(HAVE_WSPAWNV)) PyDoc_STRVAR(os_spawnve__doc__, -"spawnve($module, mode, path, argv, env, /)\n" +"spawnve($module, __mode, __path, __argv, __env)\n" "--\n" "\n" "Execute the program specified by path in a new process.\n" @@ -2611,7 +2611,7 @@ os_spawnve(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_FORK) PyDoc_STRVAR(os_register_at_fork__doc__, -"register_at_fork($module, /, *, before=None, after_in_child=None,\n" +"register_at_fork($module, *, before=None, after_in_child=None,\n" " after_in_parent=None)\n" "--\n" "\n" @@ -2678,7 +2678,7 @@ os_register_at_fork(PyObject *module, PyObject *const *args, Py_ssize_t nargs, P #if defined(HAVE_FORK1) PyDoc_STRVAR(os_fork1__doc__, -"fork1($module, /)\n" +"fork1($module)\n" "--\n" "\n" "Fork a child process with a single multiplexed (i.e., not bound) thread.\n" @@ -2702,7 +2702,7 @@ os_fork1(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_FORK) PyDoc_STRVAR(os_fork__doc__, -"fork($module, /)\n" +"fork($module)\n" "--\n" "\n" "Fork a child process.\n" @@ -2726,7 +2726,7 @@ os_fork(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_GET_PRIORITY_MAX) PyDoc_STRVAR(os_sched_get_priority_max__doc__, -"sched_get_priority_max($module, /, policy)\n" +"sched_get_priority_max($module, policy)\n" "--\n" "\n" "Get the maximum scheduling priority for policy."); @@ -2770,7 +2770,7 @@ os_sched_get_priority_max(PyObject *module, PyObject *const *args, Py_ssize_t na #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_GET_PRIORITY_MAX) PyDoc_STRVAR(os_sched_get_priority_min__doc__, -"sched_get_priority_min($module, /, policy)\n" +"sched_get_priority_min($module, policy)\n" "--\n" "\n" "Get the minimum scheduling priority for policy."); @@ -2814,7 +2814,7 @@ os_sched_get_priority_min(PyObject *module, PyObject *const *args, Py_ssize_t na #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_SETSCHEDULER) PyDoc_STRVAR(os_sched_getscheduler__doc__, -"sched_getscheduler($module, pid, /)\n" +"sched_getscheduler($module, __pid)\n" "--\n" "\n" "Get the scheduling policy for the process identifiedy by pid.\n" @@ -2885,7 +2885,7 @@ os_sched_param(PyTypeObject *type, PyObject *args, PyObject *kwargs) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_SETSCHEDULER) PyDoc_STRVAR(os_sched_setscheduler__doc__, -"sched_setscheduler($module, pid, policy, param, /)\n" +"sched_setscheduler($module, __pid, __policy, __param)\n" "--\n" "\n" "Set the scheduling policy for the process identified by pid.\n" @@ -2923,7 +2923,7 @@ os_sched_setscheduler(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_SETPARAM) PyDoc_STRVAR(os_sched_getparam__doc__, -"sched_getparam($module, pid, /)\n" +"sched_getparam($module, __pid)\n" "--\n" "\n" "Returns scheduling parameters for the process identified by pid.\n" @@ -2957,7 +2957,7 @@ os_sched_getparam(PyObject *module, PyObject *arg) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_SETPARAM) PyDoc_STRVAR(os_sched_setparam__doc__, -"sched_setparam($module, pid, param, /)\n" +"sched_setparam($module, __pid, __param)\n" "--\n" "\n" "Set scheduling parameters for the process identified by pid.\n" @@ -2994,7 +2994,7 @@ os_sched_setparam(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_RR_GET_INTERVAL) PyDoc_STRVAR(os_sched_rr_get_interval__doc__, -"sched_rr_get_interval($module, pid, /)\n" +"sched_rr_get_interval($module, __pid)\n" "--\n" "\n" "Return the round-robin quantum for the process identified by pid, in seconds.\n" @@ -3032,7 +3032,7 @@ os_sched_rr_get_interval(PyObject *module, PyObject *arg) #if defined(HAVE_SCHED_H) PyDoc_STRVAR(os_sched_yield__doc__, -"sched_yield($module, /)\n" +"sched_yield($module)\n" "--\n" "\n" "Voluntarily relinquish the CPU."); @@ -3054,7 +3054,7 @@ os_sched_yield(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_SETAFFINITY) PyDoc_STRVAR(os_sched_setaffinity__doc__, -"sched_setaffinity($module, pid, mask, /)\n" +"sched_setaffinity($module, __pid, __mask)\n" "--\n" "\n" "Set the CPU affinity of the process identified by pid to mask.\n" @@ -3089,7 +3089,7 @@ os_sched_setaffinity(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_SETAFFINITY) PyDoc_STRVAR(os_sched_getaffinity__doc__, -"sched_getaffinity($module, pid, /)\n" +"sched_getaffinity($module, __pid)\n" "--\n" "\n" "Return the affinity of the process identified by pid (or the current process if zero).\n" @@ -3122,7 +3122,7 @@ os_sched_getaffinity(PyObject *module, PyObject *arg) #if (defined(HAVE_OPENPTY) || defined(HAVE__GETPTY) || defined(HAVE_DEV_PTMX)) PyDoc_STRVAR(os_openpty__doc__, -"openpty($module, /)\n" +"openpty($module)\n" "--\n" "\n" "Open a pseudo-terminal.\n" @@ -3147,7 +3147,7 @@ os_openpty(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_FORKPTY) PyDoc_STRVAR(os_forkpty__doc__, -"forkpty($module, /)\n" +"forkpty($module)\n" "--\n" "\n" "Fork a new process with a new pseudo-terminal as controlling tty.\n" @@ -3174,7 +3174,7 @@ os_forkpty(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETEGID) PyDoc_STRVAR(os_getegid__doc__, -"getegid($module, /)\n" +"getegid($module)\n" "--\n" "\n" "Return the current process\'s effective group id."); @@ -3196,7 +3196,7 @@ os_getegid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETEUID) PyDoc_STRVAR(os_geteuid__doc__, -"geteuid($module, /)\n" +"geteuid($module)\n" "--\n" "\n" "Return the current process\'s effective user id."); @@ -3218,7 +3218,7 @@ os_geteuid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETGID) PyDoc_STRVAR(os_getgid__doc__, -"getgid($module, /)\n" +"getgid($module)\n" "--\n" "\n" "Return the current process\'s group id."); @@ -3240,7 +3240,7 @@ os_getgid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETPID) PyDoc_STRVAR(os_getpid__doc__, -"getpid($module, /)\n" +"getpid($module)\n" "--\n" "\n" "Return the current process id."); @@ -3262,7 +3262,7 @@ os_getpid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETGROUPS) PyDoc_STRVAR(os_getgroups__doc__, -"getgroups($module, /)\n" +"getgroups($module)\n" "--\n" "\n" "Return list of supplemental group IDs for the process."); @@ -3284,7 +3284,7 @@ os_getgroups(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETPGID) PyDoc_STRVAR(os_getpgid__doc__, -"getpgid($module, /, pid)\n" +"getpgid($module, pid)\n" "--\n" "\n" "Call the system call getpgid(), and return the result."); @@ -3318,7 +3318,7 @@ os_getpgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * #if defined(HAVE_GETPGRP) PyDoc_STRVAR(os_getpgrp__doc__, -"getpgrp($module, /)\n" +"getpgrp($module)\n" "--\n" "\n" "Return the current process group id."); @@ -3340,7 +3340,7 @@ os_getpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_SETPGRP) PyDoc_STRVAR(os_setpgrp__doc__, -"setpgrp($module, /)\n" +"setpgrp($module)\n" "--\n" "\n" "Make the current process the leader of its process group."); @@ -3362,7 +3362,7 @@ os_setpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETPPID) PyDoc_STRVAR(os_getppid__doc__, -"getppid($module, /)\n" +"getppid($module)\n" "--\n" "\n" "Return the parent\'s process id.\n" @@ -3387,7 +3387,7 @@ os_getppid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETLOGIN) PyDoc_STRVAR(os_getlogin__doc__, -"getlogin($module, /)\n" +"getlogin($module)\n" "--\n" "\n" "Return the actual login name."); @@ -3409,7 +3409,7 @@ os_getlogin(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETUID) PyDoc_STRVAR(os_getuid__doc__, -"getuid($module, /)\n" +"getuid($module)\n" "--\n" "\n" "Return the current process\'s user id."); @@ -3431,7 +3431,7 @@ os_getuid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_KILL) PyDoc_STRVAR(os_kill__doc__, -"kill($module, pid, signal, /)\n" +"kill($module, __pid, __signal)\n" "--\n" "\n" "Kill a process with a signal."); @@ -3464,7 +3464,7 @@ os_kill(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_KILLPG) PyDoc_STRVAR(os_killpg__doc__, -"killpg($module, pgid, signal, /)\n" +"killpg($module, __pgid, __signal)\n" "--\n" "\n" "Kill a process group with a signal."); @@ -3497,7 +3497,7 @@ os_killpg(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PLOCK) PyDoc_STRVAR(os_plock__doc__, -"plock($module, op, /)\n" +"plock($module, __op)\n" "--\n" "\n" "Lock program segments into memory.\");"); @@ -3534,7 +3534,7 @@ os_plock(PyObject *module, PyObject *arg) #if defined(HAVE_SETUID) PyDoc_STRVAR(os_setuid__doc__, -"setuid($module, uid, /)\n" +"setuid($module, __uid)\n" "--\n" "\n" "Set the current process\'s user id."); @@ -3565,7 +3565,7 @@ os_setuid(PyObject *module, PyObject *arg) #if defined(HAVE_SETEUID) PyDoc_STRVAR(os_seteuid__doc__, -"seteuid($module, euid, /)\n" +"seteuid($module, __euid)\n" "--\n" "\n" "Set the current process\'s effective user id."); @@ -3596,7 +3596,7 @@ os_seteuid(PyObject *module, PyObject *arg) #if defined(HAVE_SETEGID) PyDoc_STRVAR(os_setegid__doc__, -"setegid($module, egid, /)\n" +"setegid($module, __egid)\n" "--\n" "\n" "Set the current process\'s effective group id."); @@ -3627,7 +3627,7 @@ os_setegid(PyObject *module, PyObject *arg) #if defined(HAVE_SETREUID) PyDoc_STRVAR(os_setreuid__doc__, -"setreuid($module, ruid, euid, /)\n" +"setreuid($module, __ruid, __euid)\n" "--\n" "\n" "Set the current process\'s real and effective user ids."); @@ -3665,7 +3665,7 @@ os_setreuid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SETREGID) PyDoc_STRVAR(os_setregid__doc__, -"setregid($module, rgid, egid, /)\n" +"setregid($module, __rgid, __egid)\n" "--\n" "\n" "Set the current process\'s real and effective group ids."); @@ -3703,7 +3703,7 @@ os_setregid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SETGID) PyDoc_STRVAR(os_setgid__doc__, -"setgid($module, gid, /)\n" +"setgid($module, __gid)\n" "--\n" "\n" "Set the current process\'s group id."); @@ -3734,7 +3734,7 @@ os_setgid(PyObject *module, PyObject *arg) #if defined(HAVE_SETGROUPS) PyDoc_STRVAR(os_setgroups__doc__, -"setgroups($module, groups, /)\n" +"setgroups($module, __groups)\n" "--\n" "\n" "Set the groups of the current process to list."); @@ -3747,7 +3747,7 @@ PyDoc_STRVAR(os_setgroups__doc__, #if defined(HAVE_WAIT3) PyDoc_STRVAR(os_wait3__doc__, -"wait3($module, /, options)\n" +"wait3($module, options)\n" "--\n" "\n" "Wait for completion of a child process.\n" @@ -3794,7 +3794,7 @@ os_wait3(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_WAIT4) PyDoc_STRVAR(os_wait4__doc__, -"wait4($module, /, pid, options)\n" +"wait4($module, pid, options)\n" "--\n" "\n" "Wait for completion of a specific child process.\n" @@ -3832,7 +3832,7 @@ os_wait4(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if (defined(HAVE_WAITID) && !defined(__APPLE__)) PyDoc_STRVAR(os_waitid__doc__, -"waitid($module, idtype, id, options, /)\n" +"waitid($module, __idtype, __id, __options)\n" "--\n" "\n" "Returns the result of waiting for a process or processes.\n" @@ -3877,7 +3877,7 @@ os_waitid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_WAITPID) PyDoc_STRVAR(os_waitpid__doc__, -"waitpid($module, pid, options, /)\n" +"waitpid($module, __pid, __options)\n" "--\n" "\n" "Wait for completion of a given child process.\n" @@ -3915,7 +3915,7 @@ os_waitpid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_CWAIT) PyDoc_STRVAR(os_waitpid__doc__, -"waitpid($module, pid, options, /)\n" +"waitpid($module, __pid, __options)\n" "--\n" "\n" "Wait for completion of a given process.\n" @@ -3953,7 +3953,7 @@ os_waitpid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_WAIT) PyDoc_STRVAR(os_wait__doc__, -"wait($module, /)\n" +"wait($module)\n" "--\n" "\n" "Wait for completion of a child process.\n" @@ -3978,7 +3978,7 @@ os_wait(PyObject *module, PyObject *Py_UNUSED(ignored)) #if (defined(HAVE_READLINK) || defined(MS_WINDOWS)) PyDoc_STRVAR(os_readlink__doc__, -"readlink($module, /, path, *, dir_fd=None)\n" +"readlink($module, path, *, dir_fd=None)\n" "--\n" "\n" "Return a string representing the path to which the symbolic link points.\n" @@ -4034,7 +4034,7 @@ os_readlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_SYMLINK) PyDoc_STRVAR(os_symlink__doc__, -"symlink($module, /, src, dst, target_is_directory=False, *, dir_fd=None)\n" +"symlink($module, src, dst, target_is_directory=False, *, dir_fd=None)\n" "--\n" "\n" "Create a symbolic link pointing to src named dst.\n" @@ -4115,7 +4115,7 @@ os_symlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * #if defined(HAVE_TIMES) PyDoc_STRVAR(os_times__doc__, -"times($module, /)\n" +"times($module)\n" "--\n" "\n" "Return a collection containing process timing information.\n" @@ -4141,7 +4141,7 @@ os_times(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETSID) PyDoc_STRVAR(os_getsid__doc__, -"getsid($module, pid, /)\n" +"getsid($module, __pid)\n" "--\n" "\n" "Call the system call getsid(pid) and return the result."); @@ -4172,7 +4172,7 @@ os_getsid(PyObject *module, PyObject *arg) #if defined(HAVE_SETSID) PyDoc_STRVAR(os_setsid__doc__, -"setsid($module, /)\n" +"setsid($module)\n" "--\n" "\n" "Call the system call setsid()."); @@ -4194,7 +4194,7 @@ os_setsid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_SETPGID) PyDoc_STRVAR(os_setpgid__doc__, -"setpgid($module, pid, pgrp, /)\n" +"setpgid($module, __pid, __pgrp)\n" "--\n" "\n" "Call the system call setpgid(pid, pgrp)."); @@ -4227,7 +4227,7 @@ os_setpgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_TCGETPGRP) PyDoc_STRVAR(os_tcgetpgrp__doc__, -"tcgetpgrp($module, fd, /)\n" +"tcgetpgrp($module, __fd)\n" "--\n" "\n" "Return the process group associated with the terminal specified by fd."); @@ -4264,7 +4264,7 @@ os_tcgetpgrp(PyObject *module, PyObject *arg) #if defined(HAVE_TCSETPGRP) PyDoc_STRVAR(os_tcsetpgrp__doc__, -"tcsetpgrp($module, fd, pgid, /)\n" +"tcsetpgrp($module, __fd, __pgid)\n" "--\n" "\n" "Set the process group associated with the terminal specified by fd."); @@ -4295,7 +4295,7 @@ os_tcsetpgrp(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(HAVE_TCSETPGRP) */ PyDoc_STRVAR(os_open__doc__, -"open($module, /, path, flags, mode=511, *, dir_fd=None)\n" +"open($module, path, flags, mode=511, *, dir_fd=None)\n" "--\n" "\n" "Open a file for low level IO. Returns a file descriptor (integer).\n" @@ -4380,7 +4380,7 @@ os_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn } PyDoc_STRVAR(os_close__doc__, -"close($module, /, fd)\n" +"close($module, fd)\n" "--\n" "\n" "Close a file descriptor."); @@ -4420,7 +4420,7 @@ os_close(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw } PyDoc_STRVAR(os_closerange__doc__, -"closerange($module, fd_low, fd_high, /)\n" +"closerange($module, __fd_low, __fd_high)\n" "--\n" "\n" "Closes all file descriptors in [fd_low, fd_high), ignoring errors."); @@ -4466,7 +4466,7 @@ os_closerange(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(os_dup__doc__, -"dup($module, fd, /)\n" +"dup($module, __fd)\n" "--\n" "\n" "Return a duplicate of a file descriptor."); @@ -4504,7 +4504,7 @@ os_dup(PyObject *module, PyObject *arg) } PyDoc_STRVAR(os_dup2__doc__, -"dup2($module, /, fd, fd2, inheritable=True)\n" +"dup2($module, fd, fd2, inheritable=True)\n" "--\n" "\n" "Duplicate file descriptor."); @@ -4571,7 +4571,7 @@ os_dup2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn #if defined(HAVE_LOCKF) PyDoc_STRVAR(os_lockf__doc__, -"lockf($module, fd, command, length, /)\n" +"lockf($module, __fd, __command, __length)\n" "--\n" "\n" "Apply, test or remove a POSIX lock on an open file descriptor.\n" @@ -4630,7 +4630,7 @@ os_lockf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(HAVE_LOCKF) */ PyDoc_STRVAR(os_lseek__doc__, -"lseek($module, fd, position, how, /)\n" +"lseek($module, __fd, __position, __how)\n" "--\n" "\n" "Set the position of a file descriptor. Return the new position.\n" @@ -4688,7 +4688,7 @@ os_lseek(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(os_read__doc__, -"read($module, fd, length, /)\n" +"read($module, __fd, __length)\n" "--\n" "\n" "Read from a file descriptor. Returns a bytes object."); @@ -4744,7 +4744,7 @@ os_read(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_READV) PyDoc_STRVAR(os_readv__doc__, -"readv($module, fd, buffers, /)\n" +"readv($module, __fd, __buffers)\n" "--\n" "\n" "Read from a file descriptor fd into an iterable of buffers.\n" @@ -4799,7 +4799,7 @@ os_readv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PREAD) PyDoc_STRVAR(os_pread__doc__, -"pread($module, fd, length, offset, /)\n" +"pread($module, __fd, __length, __offset)\n" "--\n" "\n" "Read a number of bytes from a file descriptor starting at a particular offset.\n" @@ -4856,7 +4856,7 @@ os_pread(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_PREADV) || defined (HAVE_PREADV2)) PyDoc_STRVAR(os_preadv__doc__, -"preadv($module, fd, buffers, offset, flags=0, /)\n" +"preadv($module, __fd, __buffers, __offset, __flags=0)\n" "--\n" "\n" "Reads from a file descriptor into a number of mutable bytes-like objects.\n" @@ -4934,7 +4934,7 @@ os_preadv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* (defined(HAVE_PREADV) || defined (HAVE_PREADV2)) */ PyDoc_STRVAR(os_write__doc__, -"write($module, fd, data, /)\n" +"write($module, __fd, __data)\n" "--\n" "\n" "Write a bytes object to a file descriptor."); @@ -4990,7 +4990,7 @@ os_write(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(__APPLE__) PyDoc_STRVAR(os__fcopyfile__doc__, -"_fcopyfile($module, infd, outfd, flags, /)\n" +"_fcopyfile($module, __infd, __outfd, __flags)\n" "--\n" "\n" "Efficiently copy content or metadata of 2 regular file descriptors (macOS)."); @@ -5048,7 +5048,7 @@ os__fcopyfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* defined(__APPLE__) */ PyDoc_STRVAR(os_fstat__doc__, -"fstat($module, /, fd)\n" +"fstat($module, fd)\n" "--\n" "\n" "Perform a stat system call on the given file descriptor.\n" @@ -5091,7 +5091,7 @@ os_fstat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw } PyDoc_STRVAR(os_isatty__doc__, -"isatty($module, fd, /)\n" +"isatty($module, __fd)\n" "--\n" "\n" "Return True if the fd is connected to a terminal.\n" @@ -5134,7 +5134,7 @@ os_isatty(PyObject *module, PyObject *arg) #if defined(HAVE_PIPE) PyDoc_STRVAR(os_pipe__doc__, -"pipe($module, /)\n" +"pipe($module)\n" "--\n" "\n" "Create a pipe.\n" @@ -5159,7 +5159,7 @@ os_pipe(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_PIPE2) PyDoc_STRVAR(os_pipe2__doc__, -"pipe2($module, flags, /)\n" +"pipe2($module, __flags)\n" "--\n" "\n" "Create a pipe with flags set atomically.\n" @@ -5202,7 +5202,7 @@ os_pipe2(PyObject *module, PyObject *arg) #if defined(HAVE_WRITEV) PyDoc_STRVAR(os_writev__doc__, -"writev($module, fd, buffers, /)\n" +"writev($module, __fd, __buffers)\n" "--\n" "\n" "Iterate over buffers, and write the contents of each to a file descriptor.\n" @@ -5252,7 +5252,7 @@ os_writev(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PWRITE) PyDoc_STRVAR(os_pwrite__doc__, -"pwrite($module, fd, buffer, offset, /)\n" +"pwrite($module, __fd, __buffer, __offset)\n" "--\n" "\n" "Write bytes to a file descriptor starting at a particular offset.\n" @@ -5318,7 +5318,7 @@ os_pwrite(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_PWRITEV) || defined (HAVE_PWRITEV2)) PyDoc_STRVAR(os_pwritev__doc__, -"pwritev($module, fd, buffers, offset, flags=0, /)\n" +"pwritev($module, __fd, __buffers, __offset, __flags=0)\n" "--\n" "\n" "Writes the contents of bytes-like objects to a file descriptor at a given offset.\n" @@ -5398,7 +5398,7 @@ os_pwritev(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_MKFIFO) PyDoc_STRVAR(os_mkfifo__doc__, -"mkfifo($module, /, path, mode=438, *, dir_fd=None)\n" +"mkfifo($module, path, mode=438, *, dir_fd=None)\n" "--\n" "\n" "Create a \"fifo\" (a POSIX named pipe).\n" @@ -5472,7 +5472,7 @@ os_mkfifo(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if (defined(HAVE_MKNOD) && defined(HAVE_MAKEDEV)) PyDoc_STRVAR(os_mknod__doc__, -"mknod($module, /, path, mode=384, device=0, *, dir_fd=None)\n" +"mknod($module, path, mode=384, device=0, *, dir_fd=None)\n" "--\n" "\n" "Create a node in the file system.\n" @@ -5563,7 +5563,7 @@ os_mknod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw #if defined(HAVE_DEVICE_MACROS) PyDoc_STRVAR(os_major__doc__, -"major($module, device, /)\n" +"major($module, __device)\n" "--\n" "\n" "Extracts a device major number from a raw device number."); @@ -5599,7 +5599,7 @@ os_major(PyObject *module, PyObject *arg) #if defined(HAVE_DEVICE_MACROS) PyDoc_STRVAR(os_minor__doc__, -"minor($module, device, /)\n" +"minor($module, __device)\n" "--\n" "\n" "Extracts a device minor number from a raw device number."); @@ -5635,7 +5635,7 @@ os_minor(PyObject *module, PyObject *arg) #if defined(HAVE_DEVICE_MACROS) PyDoc_STRVAR(os_makedev__doc__, -"makedev($module, major, minor, /)\n" +"makedev($module, __major, __minor)\n" "--\n" "\n" "Composes a raw device number from the major and minor device numbers."); @@ -5690,7 +5690,7 @@ os_makedev(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined HAVE_FTRUNCATE || defined MS_WINDOWS) PyDoc_STRVAR(os_ftruncate__doc__, -"ftruncate($module, fd, length, /)\n" +"ftruncate($module, __fd, __length)\n" "--\n" "\n" "Truncate a file, specified by file descriptor, to a specific length."); @@ -5734,7 +5734,7 @@ os_ftruncate(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined HAVE_TRUNCATE || defined MS_WINDOWS) PyDoc_STRVAR(os_truncate__doc__, -"truncate($module, /, path, length)\n" +"truncate($module, path, length)\n" "--\n" "\n" "Truncate a file, specified by path, to a specific length.\n" @@ -5782,7 +5782,7 @@ os_truncate(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if (defined(HAVE_POSIX_FALLOCATE) && !defined(POSIX_FADVISE_AIX_BUG)) PyDoc_STRVAR(os_posix_fallocate__doc__, -"posix_fallocate($module, fd, offset, length, /)\n" +"posix_fallocate($module, __fd, __offset, __length)\n" "--\n" "\n" "Ensure a file has allocated at least a particular number of bytes on disk.\n" @@ -5834,7 +5834,7 @@ os_posix_fallocate(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_POSIX_FADVISE) && !defined(POSIX_FADVISE_AIX_BUG)) PyDoc_STRVAR(os_posix_fadvise__doc__, -"posix_fadvise($module, fd, offset, length, advice, /)\n" +"posix_fadvise($module, __fd, __offset, __length, __advice)\n" "--\n" "\n" "Announce an intention to access data in a specific pattern.\n" @@ -5901,7 +5901,7 @@ os_posix_fadvise(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PUTENV) && defined(MS_WINDOWS) PyDoc_STRVAR(os_putenv__doc__, -"putenv($module, name, value, /)\n" +"putenv($module, __name, __value)\n" "--\n" "\n" "Change or add an environment variable."); @@ -5949,7 +5949,7 @@ os_putenv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PUTENV) && !defined(MS_WINDOWS) PyDoc_STRVAR(os_putenv__doc__, -"putenv($module, name, value, /)\n" +"putenv($module, __name, __value)\n" "--\n" "\n" "Change or add an environment variable."); @@ -5992,7 +5992,7 @@ os_putenv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_UNSETENV) PyDoc_STRVAR(os_unsetenv__doc__, -"unsetenv($module, name, /)\n" +"unsetenv($module, __name)\n" "--\n" "\n" "Delete an environment variable."); @@ -6024,7 +6024,7 @@ os_unsetenv(PyObject *module, PyObject *arg) #endif /* defined(HAVE_UNSETENV) */ PyDoc_STRVAR(os_strerror__doc__, -"strerror($module, code, /)\n" +"strerror($module, __code)\n" "--\n" "\n" "Translate an error code to a message string."); @@ -6059,7 +6059,7 @@ os_strerror(PyObject *module, PyObject *arg) #if defined(HAVE_SYS_WAIT_H) && defined(WCOREDUMP) PyDoc_STRVAR(os_WCOREDUMP__doc__, -"WCOREDUMP($module, status, /)\n" +"WCOREDUMP($module, __status)\n" "--\n" "\n" "Return True if the process returning status was dumped to a core file."); @@ -6101,7 +6101,7 @@ os_WCOREDUMP(PyObject *module, PyObject *arg) #if defined(HAVE_SYS_WAIT_H) && defined(WIFCONTINUED) PyDoc_STRVAR(os_WIFCONTINUED__doc__, -"WIFCONTINUED($module, /, status)\n" +"WIFCONTINUED($module, status)\n" "--\n" "\n" "Return True if a particular process was continued from a job control stop.\n" @@ -6153,7 +6153,7 @@ os_WIFCONTINUED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj #if defined(HAVE_SYS_WAIT_H) && defined(WIFSTOPPED) PyDoc_STRVAR(os_WIFSTOPPED__doc__, -"WIFSTOPPED($module, /, status)\n" +"WIFSTOPPED($module, status)\n" "--\n" "\n" "Return True if the process returning status was stopped."); @@ -6202,7 +6202,7 @@ os_WIFSTOPPED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec #if defined(HAVE_SYS_WAIT_H) && defined(WIFSIGNALED) PyDoc_STRVAR(os_WIFSIGNALED__doc__, -"WIFSIGNALED($module, /, status)\n" +"WIFSIGNALED($module, status)\n" "--\n" "\n" "Return True if the process returning status was terminated by a signal."); @@ -6251,7 +6251,7 @@ os_WIFSIGNALED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #if defined(HAVE_SYS_WAIT_H) && defined(WIFEXITED) PyDoc_STRVAR(os_WIFEXITED__doc__, -"WIFEXITED($module, /, status)\n" +"WIFEXITED($module, status)\n" "--\n" "\n" "Return True if the process returning status exited via the exit() system call."); @@ -6300,7 +6300,7 @@ os_WIFEXITED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_SYS_WAIT_H) && defined(WEXITSTATUS) PyDoc_STRVAR(os_WEXITSTATUS__doc__, -"WEXITSTATUS($module, /, status)\n" +"WEXITSTATUS($module, status)\n" "--\n" "\n" "Return the process return code from status."); @@ -6349,7 +6349,7 @@ os_WEXITSTATUS(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #if defined(HAVE_SYS_WAIT_H) && defined(WTERMSIG) PyDoc_STRVAR(os_WTERMSIG__doc__, -"WTERMSIG($module, /, status)\n" +"WTERMSIG($module, status)\n" "--\n" "\n" "Return the signal that terminated the process that provided the status value."); @@ -6398,7 +6398,7 @@ os_WTERMSIG(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_SYS_WAIT_H) && defined(WSTOPSIG) PyDoc_STRVAR(os_WSTOPSIG__doc__, -"WSTOPSIG($module, /, status)\n" +"WSTOPSIG($module, status)\n" "--\n" "\n" "Return the signal that stopped the process that provided the status value."); @@ -6447,7 +6447,7 @@ os_WSTOPSIG(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if (defined(HAVE_FSTATVFS) && defined(HAVE_SYS_STATVFS_H)) PyDoc_STRVAR(os_fstatvfs__doc__, -"fstatvfs($module, fd, /)\n" +"fstatvfs($module, __fd)\n" "--\n" "\n" "Perform an fstatvfs system call on the given fd.\n" @@ -6486,7 +6486,7 @@ os_fstatvfs(PyObject *module, PyObject *arg) #if (defined(HAVE_STATVFS) && defined(HAVE_SYS_STATVFS_H)) PyDoc_STRVAR(os_statvfs__doc__, -"statvfs($module, /, path)\n" +"statvfs($module, path)\n" "--\n" "\n" "Perform a statvfs system call on the given path.\n" @@ -6531,7 +6531,7 @@ os_statvfs(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * #if defined(MS_WINDOWS) PyDoc_STRVAR(os__getdiskusage__doc__, -"_getdiskusage($module, /, path)\n" +"_getdiskusage($module, path)\n" "--\n" "\n" "Return disk usage statistics about the given path as a (total, free) tuple."); @@ -6572,7 +6572,7 @@ os__getdiskusage(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb #if defined(HAVE_FPATHCONF) PyDoc_STRVAR(os_fpathconf__doc__, -"fpathconf($module, fd, name, /)\n" +"fpathconf($module, __fd, __name)\n" "--\n" "\n" "Return the configuration limit name for the file descriptor fd.\n" @@ -6623,7 +6623,7 @@ os_fpathconf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PATHCONF) PyDoc_STRVAR(os_pathconf__doc__, -"pathconf($module, /, path, name)\n" +"pathconf($module, path, name)\n" "--\n" "\n" "Return the configuration limit name for the file or directory path.\n" @@ -6677,7 +6677,7 @@ os_pathconf(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_CONFSTR) PyDoc_STRVAR(os_confstr__doc__, -"confstr($module, name, /)\n" +"confstr($module, __name)\n" "--\n" "\n" "Return a string-valued system configuration variable."); @@ -6708,7 +6708,7 @@ os_confstr(PyObject *module, PyObject *arg) #if defined(HAVE_SYSCONF) PyDoc_STRVAR(os_sysconf__doc__, -"sysconf($module, name, /)\n" +"sysconf($module, __name)\n" "--\n" "\n" "Return an integer-valued system configuration variable."); @@ -6742,7 +6742,7 @@ os_sysconf(PyObject *module, PyObject *arg) #endif /* defined(HAVE_SYSCONF) */ PyDoc_STRVAR(os_abort__doc__, -"abort($module, /)\n" +"abort($module)\n" "--\n" "\n" "Abort the interpreter immediately.\n" @@ -6765,7 +6765,7 @@ os_abort(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(os_startfile__doc__, -"startfile($module, /, filepath, operation=None)\n" +"startfile($module, filepath, operation=None)\n" "--\n" "\n" "startfile(filepath [, operation])\n" @@ -6821,7 +6821,7 @@ os_startfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(HAVE_GETLOADAVG) PyDoc_STRVAR(os_getloadavg__doc__, -"getloadavg($module, /)\n" +"getloadavg($module)\n" "--\n" "\n" "Return average recent system load information.\n" @@ -6845,7 +6845,7 @@ os_getloadavg(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(HAVE_GETLOADAVG) */ PyDoc_STRVAR(os_device_encoding__doc__, -"device_encoding($module, /, fd)\n" +"device_encoding($module, fd)\n" "--\n" "\n" "Return a string describing the encoding of a terminal\'s file descriptor.\n" @@ -6890,7 +6890,7 @@ os_device_encoding(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py #if defined(HAVE_SETRESUID) PyDoc_STRVAR(os_setresuid__doc__, -"setresuid($module, ruid, euid, suid, /)\n" +"setresuid($module, __ruid, __euid, __suid)\n" "--\n" "\n" "Set the current process\'s real, effective, and saved user ids."); @@ -6932,7 +6932,7 @@ os_setresuid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SETRESGID) PyDoc_STRVAR(os_setresgid__doc__, -"setresgid($module, rgid, egid, sgid, /)\n" +"setresgid($module, __rgid, __egid, __sgid)\n" "--\n" "\n" "Set the current process\'s real, effective, and saved group ids."); @@ -6974,7 +6974,7 @@ os_setresgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_GETRESUID) PyDoc_STRVAR(os_getresuid__doc__, -"getresuid($module, /)\n" +"getresuid($module)\n" "--\n" "\n" "Return a tuple of the current process\'s real, effective, and saved user ids."); @@ -6996,7 +6996,7 @@ os_getresuid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_GETRESGID) PyDoc_STRVAR(os_getresgid__doc__, -"getresgid($module, /)\n" +"getresgid($module)\n" "--\n" "\n" "Return a tuple of the current process\'s real, effective, and saved group ids."); @@ -7018,7 +7018,7 @@ os_getresgid(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(USE_XATTRS) PyDoc_STRVAR(os_getxattr__doc__, -"getxattr($module, /, path, attribute, *, follow_symlinks=True)\n" +"getxattr($module, path, attribute, *, follow_symlinks=True)\n" "--\n" "\n" "Return the value of extended attribute attribute on path.\n" @@ -7081,7 +7081,7 @@ os_getxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(USE_XATTRS) PyDoc_STRVAR(os_setxattr__doc__, -"setxattr($module, /, path, attribute, value, flags=0, *,\n" +"setxattr($module, path, attribute, value, flags=0, *,\n" " follow_symlinks=True)\n" "--\n" "\n" @@ -7176,7 +7176,7 @@ os_setxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(USE_XATTRS) PyDoc_STRVAR(os_removexattr__doc__, -"removexattr($module, /, path, attribute, *, follow_symlinks=True)\n" +"removexattr($module, path, attribute, *, follow_symlinks=True)\n" "--\n" "\n" "Remove extended attribute attribute on path.\n" @@ -7239,7 +7239,7 @@ os_removexattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje #if defined(USE_XATTRS) PyDoc_STRVAR(os_listxattr__doc__, -"listxattr($module, /, path=None, *, follow_symlinks=True)\n" +"listxattr($module, path=None, *, follow_symlinks=True)\n" "--\n" "\n" "Return a list of extended attributes on path.\n" @@ -7303,7 +7303,7 @@ os_listxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #endif /* defined(USE_XATTRS) */ PyDoc_STRVAR(os_urandom__doc__, -"urandom($module, size, /)\n" +"urandom($module, __size)\n" "--\n" "\n" "Return a bytes object containing random bytes suitable for cryptographic use."); @@ -7344,7 +7344,7 @@ os_urandom(PyObject *module, PyObject *arg) } PyDoc_STRVAR(os_cpu_count__doc__, -"cpu_count($module, /)\n" +"cpu_count($module)\n" "--\n" "\n" "Return the number of CPUs in the system; return None if indeterminable.\n" @@ -7366,7 +7366,7 @@ os_cpu_count(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(os_get_inheritable__doc__, -"get_inheritable($module, fd, /)\n" +"get_inheritable($module, __fd)\n" "--\n" "\n" "Get the close-on-exe flag of the specified file descriptor."); @@ -7404,7 +7404,7 @@ os_get_inheritable(PyObject *module, PyObject *arg) } PyDoc_STRVAR(os_set_inheritable__doc__, -"set_inheritable($module, fd, inheritable, /)\n" +"set_inheritable($module, __fd, __inheritable)\n" "--\n" "\n" "Set the inheritable flag of the specified file descriptor."); @@ -7452,7 +7452,7 @@ os_set_inheritable(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(MS_WINDOWS) PyDoc_STRVAR(os_get_handle_inheritable__doc__, -"get_handle_inheritable($module, handle, /)\n" +"get_handle_inheritable($module, __handle)\n" "--\n" "\n" "Get the close-on-exe flag of the specified file descriptor."); @@ -7488,7 +7488,7 @@ os_get_handle_inheritable(PyObject *module, PyObject *arg) #if defined(MS_WINDOWS) PyDoc_STRVAR(os_set_handle_inheritable__doc__, -"set_handle_inheritable($module, handle, inheritable, /)\n" +"set_handle_inheritable($module, __handle, __inheritable)\n" "--\n" "\n" "Set the inheritable flag of the specified handle."); @@ -7522,7 +7522,7 @@ os_set_handle_inheritable(PyObject *module, PyObject *const *args, Py_ssize_t na #if !defined(MS_WINDOWS) PyDoc_STRVAR(os_get_blocking__doc__, -"get_blocking($module, fd, /)\n" +"get_blocking($module, __fd)\n" "--\n" "\n" "Get the blocking mode of the file descriptor.\n" @@ -7566,7 +7566,7 @@ os_get_blocking(PyObject *module, PyObject *arg) #if !defined(MS_WINDOWS) PyDoc_STRVAR(os_set_blocking__doc__, -"set_blocking($module, fd, blocking, /)\n" +"set_blocking($module, __fd, __blocking)\n" "--\n" "\n" "Set the blocking mode of the specified file descriptor.\n" @@ -7617,7 +7617,7 @@ os_set_blocking(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #endif /* !defined(MS_WINDOWS) */ PyDoc_STRVAR(os_DirEntry_is_symlink__doc__, -"is_symlink($self, /)\n" +"is_symlink($self)\n" "--\n" "\n" "Return True if the entry is a symbolic link; cached per entry."); @@ -7645,7 +7645,7 @@ os_DirEntry_is_symlink(DirEntry *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(os_DirEntry_stat__doc__, -"stat($self, /, *, follow_symlinks=True)\n" +"stat($self, *, follow_symlinks=True)\n" "--\n" "\n" "Return stat_result object for the entry; cached per entry."); @@ -7685,7 +7685,7 @@ os_DirEntry_stat(DirEntry *self, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(os_DirEntry_is_dir__doc__, -"is_dir($self, /, *, follow_symlinks=True)\n" +"is_dir($self, *, follow_symlinks=True)\n" "--\n" "\n" "Return True if the entry is a directory; cached per entry."); @@ -7730,7 +7730,7 @@ os_DirEntry_is_dir(DirEntry *self, PyObject *const *args, Py_ssize_t nargs, PyOb } PyDoc_STRVAR(os_DirEntry_is_file__doc__, -"is_file($self, /, *, follow_symlinks=True)\n" +"is_file($self, *, follow_symlinks=True)\n" "--\n" "\n" "Return True if the entry is a file; cached per entry."); @@ -7775,7 +7775,7 @@ os_DirEntry_is_file(DirEntry *self, PyObject *const *args, Py_ssize_t nargs, PyO } PyDoc_STRVAR(os_DirEntry_inode__doc__, -"inode($self, /)\n" +"inode($self)\n" "--\n" "\n" "Return inode of the entry; cached per entry."); @@ -7793,7 +7793,7 @@ os_DirEntry_inode(DirEntry *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(os_DirEntry___fspath____doc__, -"__fspath__($self, /)\n" +"__fspath__($self)\n" "--\n" "\n" "Returns the path for the entry."); @@ -7811,7 +7811,7 @@ os_DirEntry___fspath__(DirEntry *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(os_scandir__doc__, -"scandir($module, /, path=None)\n" +"scandir($module, path=None)\n" "--\n" "\n" "Return an iterator of DirEntry objects for given path.\n" @@ -7859,7 +7859,7 @@ os_scandir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * } PyDoc_STRVAR(os_fspath__doc__, -"fspath($module, /, path)\n" +"fspath($module, path)\n" "--\n" "\n" "Return the file system path representation of the object.\n" @@ -7897,7 +7897,7 @@ os_fspath(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k #if defined(HAVE_GETRANDOM_SYSCALL) PyDoc_STRVAR(os_getrandom__doc__, -"getrandom($module, /, size, flags=0)\n" +"getrandom($module, size, flags=0)\n" "--\n" "\n" "Obtain a series of random bytes."); @@ -7964,7 +7964,7 @@ os_getrandom(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject #if defined(MS_WINDOWS) PyDoc_STRVAR(os__add_dll_directory__doc__, -"_add_dll_directory($module, /, path)\n" +"_add_dll_directory($module, path)\n" "--\n" "\n" "Add a path to the DLL search path.\n" @@ -8012,7 +8012,7 @@ os__add_dll_directory(PyObject *module, PyObject *const *args, Py_ssize_t nargs, #if defined(MS_WINDOWS) PyDoc_STRVAR(os__remove_dll_directory__doc__, -"_remove_dll_directory($module, /, cookie)\n" +"_remove_dll_directory($module, cookie)\n" "--\n" "\n" "Removes a path from the DLL search path.\n" @@ -8576,4 +8576,4 @@ os__remove_dll_directory(PyObject *module, PyObject *const *args, Py_ssize_t nar #ifndef OS__REMOVE_DLL_DIRECTORY_METHODDEF #define OS__REMOVE_DLL_DIRECTORY_METHODDEF #endif /* !defined(OS__REMOVE_DLL_DIRECTORY_METHODDEF) */ -/*[clinic end generated code: output=ab36ec0376a422ae input=a9049054013a1b77]*/ +/*[clinic end generated code: output=75a7a4dcce7a22a1 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/pwdmodule.c.h b/Modules/clinic/pwdmodule.c.h index cf84ec959d58cc..06d508855f24cc 100644 --- a/Modules/clinic/pwdmodule.c.h +++ b/Modules/clinic/pwdmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(pwd_getpwuid__doc__, -"getpwuid($module, uidobj, /)\n" +"getpwuid($module, __uidobj)\n" "--\n" "\n" "Return the password database entry for the given numeric user ID.\n" @@ -14,7 +14,7 @@ PyDoc_STRVAR(pwd_getpwuid__doc__, {"getpwuid", (PyCFunction)pwd_getpwuid, METH_O, pwd_getpwuid__doc__}, PyDoc_STRVAR(pwd_getpwnam__doc__, -"getpwnam($module, name, /)\n" +"getpwnam($module, __name)\n" "--\n" "\n" "Return the password database entry for the given user name.\n" @@ -50,7 +50,7 @@ pwd_getpwnam(PyObject *module, PyObject *arg) #if defined(HAVE_GETPWENT) PyDoc_STRVAR(pwd_getpwall__doc__, -"getpwall($module, /)\n" +"getpwall($module)\n" "--\n" "\n" "Return a list of all available password database entries, in arbitrary order.\n" @@ -74,4 +74,4 @@ pwd_getpwall(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef PWD_GETPWALL_METHODDEF #define PWD_GETPWALL_METHODDEF #endif /* !defined(PWD_GETPWALL_METHODDEF) */ -/*[clinic end generated code: output=f9412bdedc69706c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c57976e880ea05e1 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/pyexpat.c.h b/Modules/clinic/pyexpat.c.h index dfb27d5f111418..7ce3970914b383 100644 --- a/Modules/clinic/pyexpat.c.h +++ b/Modules/clinic/pyexpat.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(pyexpat_xmlparser_Parse__doc__, -"Parse($self, data, isfinal=False, /)\n" +"Parse($self, __data, __isfinal=False)\n" "--\n" "\n" "Parse XML data.\n" @@ -48,7 +48,7 @@ pyexpat_xmlparser_Parse(xmlparseobject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(pyexpat_xmlparser_ParseFile__doc__, -"ParseFile($self, file, /)\n" +"ParseFile($self, __file)\n" "--\n" "\n" "Parse XML data from file-like object."); @@ -57,7 +57,7 @@ PyDoc_STRVAR(pyexpat_xmlparser_ParseFile__doc__, {"ParseFile", (PyCFunction)pyexpat_xmlparser_ParseFile, METH_O, pyexpat_xmlparser_ParseFile__doc__}, PyDoc_STRVAR(pyexpat_xmlparser_SetBase__doc__, -"SetBase($self, base, /)\n" +"SetBase($self, __base)\n" "--\n" "\n" "Set the base URL for the parser."); @@ -94,7 +94,7 @@ pyexpat_xmlparser_SetBase(xmlparseobject *self, PyObject *arg) } PyDoc_STRVAR(pyexpat_xmlparser_GetBase__doc__, -"GetBase($self, /)\n" +"GetBase($self)\n" "--\n" "\n" "Return base URL string for the parser."); @@ -112,7 +112,7 @@ pyexpat_xmlparser_GetBase(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(pyexpat_xmlparser_GetInputContext__doc__, -"GetInputContext($self, /)\n" +"GetInputContext($self)\n" "--\n" "\n" "Return the untranslated text of the input that caused the current event.\n" @@ -133,7 +133,7 @@ pyexpat_xmlparser_GetInputContext(xmlparseobject *self, PyObject *Py_UNUSED(igno } PyDoc_STRVAR(pyexpat_xmlparser_ExternalEntityParserCreate__doc__, -"ExternalEntityParserCreate($self, context, encoding=None, /)\n" +"ExternalEntityParserCreate($self, __context, __encoding=None)\n" "--\n" "\n" "Create a parser for parsing an external entity based on the information passed to the ExternalEntityRefHandler."); @@ -198,7 +198,7 @@ pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyObject *con } PyDoc_STRVAR(pyexpat_xmlparser_SetParamEntityParsing__doc__, -"SetParamEntityParsing($self, flag, /)\n" +"SetParamEntityParsing($self, __flag)\n" "--\n" "\n" "Controls parsing of parameter entities (including the external DTD subset).\n" @@ -238,7 +238,7 @@ pyexpat_xmlparser_SetParamEntityParsing(xmlparseobject *self, PyObject *arg) #if (XML_COMBINED_VERSION >= 19505) PyDoc_STRVAR(pyexpat_xmlparser_UseForeignDTD__doc__, -"UseForeignDTD($self, flag=True, /)\n" +"UseForeignDTD($self, __flag=True)\n" "--\n" "\n" "Allows the application to provide an artificial external subset if one is not specified as part of the document instance.\n" @@ -279,7 +279,7 @@ pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyObject *const *args, Py_ #endif /* (XML_COMBINED_VERSION >= 19505) */ PyDoc_STRVAR(pyexpat_ParserCreate__doc__, -"ParserCreate($module, /, encoding=None, namespace_separator=None,\n" +"ParserCreate($module, encoding=None, namespace_separator=None,\n" " intern=None)\n" "--\n" "\n" @@ -366,7 +366,7 @@ pyexpat_ParserCreate(PyObject *module, PyObject *const *args, Py_ssize_t nargs, } PyDoc_STRVAR(pyexpat_ErrorString__doc__, -"ErrorString($module, code, /)\n" +"ErrorString($module, __code)\n" "--\n" "\n" "Returns string error for given number."); @@ -401,4 +401,4 @@ pyexpat_ErrorString(PyObject *module, PyObject *arg) #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ -/*[clinic end generated code: output=e48f37d326956bdd input=a9049054013a1b77]*/ +/*[clinic end generated code: output=460e65786190a9c1 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/resource.c.h b/Modules/clinic/resource.c.h index 80efb714bb6b64..c93681c566da25 100644 --- a/Modules/clinic/resource.c.h +++ b/Modules/clinic/resource.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(resource_getrusage__doc__, -"getrusage($module, who, /)\n" +"getrusage($module, __who)\n" "--\n" "\n"); @@ -35,7 +35,7 @@ resource_getrusage(PyObject *module, PyObject *arg) } PyDoc_STRVAR(resource_getrlimit__doc__, -"getrlimit($module, resource, /)\n" +"getrlimit($module, __resource)\n" "--\n" "\n"); @@ -67,7 +67,7 @@ resource_getrlimit(PyObject *module, PyObject *arg) } PyDoc_STRVAR(resource_setrlimit__doc__, -"setrlimit($module, resource, limits, /)\n" +"setrlimit($module, __resource, __limits)\n" "--\n" "\n"); @@ -149,7 +149,7 @@ resource_prlimit(PyObject *module, PyObject *args) #endif /* defined(HAVE_PRLIMIT) */ PyDoc_STRVAR(resource_getpagesize__doc__, -"getpagesize($module, /)\n" +"getpagesize($module)\n" "--\n" "\n"); @@ -178,4 +178,4 @@ resource_getpagesize(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef RESOURCE_PRLIMIT_METHODDEF #define RESOURCE_PRLIMIT_METHODDEF #endif /* !defined(RESOURCE_PRLIMIT_METHODDEF) */ -/*[clinic end generated code: output=ef3034f291156a34 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3a39fcc608b455c7 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/selectmodule.c.h b/Modules/clinic/selectmodule.c.h index 9015816f80c143..c01981d0abc194 100644 --- a/Modules/clinic/selectmodule.c.h +++ b/Modules/clinic/selectmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(select_select__doc__, -"select($module, rlist, wlist, xlist, timeout=None, /)\n" +"select($module, __rlist, __wlist, __xlist, __timeout=None)\n" "--\n" "\n" "Wait until one or more file descriptors are ready for some kind of I/O.\n" @@ -65,7 +65,7 @@ select_select(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) PyDoc_STRVAR(select_poll_register__doc__, -"register($self, fd, eventmask=POLLIN | POLLPRI | POLLOUT, /)\n" +"register($self, __fd, __eventmask=POLLIN | POLLPRI | POLLOUT)\n" "--\n" "\n" "Register a file descriptor with the polling object.\n" @@ -112,7 +112,7 @@ select_poll_register(pollObject *self, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) PyDoc_STRVAR(select_poll_modify__doc__, -"modify($self, fd, eventmask, /)\n" +"modify($self, __fd, __eventmask)\n" "--\n" "\n" "Modify an already registered file descriptor.\n" @@ -156,7 +156,7 @@ select_poll_modify(pollObject *self, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) PyDoc_STRVAR(select_poll_unregister__doc__, -"unregister($self, fd, /)\n" +"unregister($self, __fd)\n" "--\n" "\n" "Remove a file descriptor being tracked by the polling object."); @@ -187,7 +187,7 @@ select_poll_unregister(pollObject *self, PyObject *arg) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) PyDoc_STRVAR(select_poll_poll__doc__, -"poll($self, timeout=None, /)\n" +"poll($self, __timeout=None)\n" "--\n" "\n" "Polls the set of registered file descriptors.\n" @@ -226,7 +226,7 @@ select_poll_poll(pollObject *self, PyObject *const *args, Py_ssize_t nargs) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll_register__doc__, -"register($self, fd, eventmask=POLLIN | POLLPRI | POLLOUT, /)\n" +"register($self, __fd, __eventmask=POLLIN | POLLPRI | POLLOUT)\n" "--\n" "\n" "Register a file descriptor with the polling object.\n" @@ -275,7 +275,7 @@ select_devpoll_register(devpollObject *self, PyObject *const *args, Py_ssize_t n #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll_modify__doc__, -"modify($self, fd, eventmask=POLLIN | POLLPRI | POLLOUT, /)\n" +"modify($self, __fd, __eventmask=POLLIN | POLLPRI | POLLOUT)\n" "--\n" "\n" "Modify a possible already registered file descriptor.\n" @@ -324,7 +324,7 @@ select_devpoll_modify(devpollObject *self, PyObject *const *args, Py_ssize_t nar #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll_unregister__doc__, -"unregister($self, fd, /)\n" +"unregister($self, __fd)\n" "--\n" "\n" "Remove a file descriptor being tracked by the polling object."); @@ -355,7 +355,7 @@ select_devpoll_unregister(devpollObject *self, PyObject *arg) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll_poll__doc__, -"poll($self, timeout=None, /)\n" +"poll($self, __timeout=None)\n" "--\n" "\n" "Polls the set of registered file descriptors.\n" @@ -394,7 +394,7 @@ select_devpoll_poll(devpollObject *self, PyObject *const *args, Py_ssize_t nargs #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the devpoll file descriptor.\n" @@ -418,7 +418,7 @@ select_devpoll_close(devpollObject *self, PyObject *Py_UNUSED(ignored)) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n" "Return the file descriptor."); @@ -440,7 +440,7 @@ select_devpoll_fileno(devpollObject *self, PyObject *Py_UNUSED(ignored)) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) PyDoc_STRVAR(select_poll__doc__, -"poll($module, /)\n" +"poll($module)\n" "--\n" "\n" "Returns a polling object.\n" @@ -465,7 +465,7 @@ select_poll(PyObject *module, PyObject *Py_UNUSED(ignored)) #if (defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)) && defined(HAVE_SYS_DEVPOLL_H) PyDoc_STRVAR(select_devpoll__doc__, -"devpoll($module, /)\n" +"devpoll($module)\n" "--\n" "\n" "Returns a polling object.\n" @@ -562,7 +562,7 @@ select_epoll(PyTypeObject *type, PyObject *args, PyObject *kwargs) #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the epoll control file descriptor.\n" @@ -586,7 +586,7 @@ select_epoll_close(pyEpoll_Object *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n" "Return the epoll control file descriptor."); @@ -608,7 +608,7 @@ select_epoll_fileno(pyEpoll_Object *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_fromfd__doc__, -"fromfd($type, fd, /)\n" +"fromfd($type, __fd)\n" "--\n" "\n" "Create an epoll object from a given control fd."); @@ -645,7 +645,7 @@ select_epoll_fromfd(PyTypeObject *type, PyObject *arg) #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_register__doc__, -"register($self, /, fd, eventmask=EPOLLIN | EPOLLPRI | EPOLLOUT)\n" +"register($self, fd, eventmask=EPOLLIN | EPOLLPRI | EPOLLOUT)\n" "--\n" "\n" "Registers a new fd or raises an OSError if the fd is already registered.\n" @@ -706,7 +706,7 @@ select_epoll_register(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t na #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_modify__doc__, -"modify($self, /, fd, eventmask)\n" +"modify($self, fd, eventmask)\n" "--\n" "\n" "Modify event mask for a registered file descriptor.\n" @@ -760,7 +760,7 @@ select_epoll_modify(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t narg #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_unregister__doc__, -"unregister($self, /, fd)\n" +"unregister($self, fd)\n" "--\n" "\n" "Remove a registered file descriptor from the epoll object.\n" @@ -801,7 +801,7 @@ select_epoll_unregister(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll_poll__doc__, -"poll($self, /, timeout=None, maxevents=-1)\n" +"poll($self, timeout=None, maxevents=-1)\n" "--\n" "\n" "Wait for events on the epoll file descriptor.\n" @@ -867,7 +867,7 @@ select_epoll_poll(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs, #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll___enter____doc__, -"__enter__($self, /)\n" +"__enter__($self)\n" "--\n" "\n"); @@ -888,7 +888,7 @@ select_epoll___enter__(pyEpoll_Object *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_EPOLL) PyDoc_STRVAR(select_epoll___exit____doc__, -"__exit__($self, exc_type=None, exc_value=None, exc_tb=None, /)\n" +"__exit__($self, __exc_type=None, __exc_value=None, __exc_tb=None)\n" "--\n" "\n"); @@ -978,7 +978,7 @@ select_kqueue(PyTypeObject *type, PyObject *args, PyObject *kwargs) #if defined(HAVE_KQUEUE) PyDoc_STRVAR(select_kqueue_close__doc__, -"close($self, /)\n" +"close($self)\n" "--\n" "\n" "Close the kqueue control file descriptor.\n" @@ -1002,7 +1002,7 @@ select_kqueue_close(kqueue_queue_Object *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_KQUEUE) PyDoc_STRVAR(select_kqueue_fileno__doc__, -"fileno($self, /)\n" +"fileno($self)\n" "--\n" "\n" "Return the kqueue control file descriptor."); @@ -1024,7 +1024,7 @@ select_kqueue_fileno(kqueue_queue_Object *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_KQUEUE) PyDoc_STRVAR(select_kqueue_fromfd__doc__, -"fromfd($type, fd, /)\n" +"fromfd($type, __fd)\n" "--\n" "\n" "Create a kqueue object from a given control fd."); @@ -1061,7 +1061,7 @@ select_kqueue_fromfd(PyTypeObject *type, PyObject *arg) #if defined(HAVE_KQUEUE) PyDoc_STRVAR(select_kqueue_control__doc__, -"control($self, changelist, maxevents, timeout=None, /)\n" +"control($self, __changelist, __maxevents, __timeout=None)\n" "--\n" "\n" "Calls the kernel kevent function.\n" @@ -1215,4 +1215,4 @@ select_kqueue_control(kqueue_queue_Object *self, PyObject *const *args, Py_ssize #ifndef SELECT_KQUEUE_CONTROL_METHODDEF #define SELECT_KQUEUE_CONTROL_METHODDEF #endif /* !defined(SELECT_KQUEUE_CONTROL_METHODDEF) */ -/*[clinic end generated code: output=03041f3d09b04a3d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=fb09297575fba7e5 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/sha1module.c.h b/Modules/clinic/sha1module.c.h index 001c6af73782ef..0972ddda1789b6 100644 --- a/Modules/clinic/sha1module.c.h +++ b/Modules/clinic/sha1module.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(SHA1Type_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -21,7 +21,7 @@ SHA1Type_copy(SHA1object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA1Type_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -39,7 +39,7 @@ SHA1Type_digest(SHA1object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA1Type_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -57,7 +57,7 @@ SHA1Type_hexdigest(SHA1object *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA1Type_update__doc__, -"update($self, obj, /)\n" +"update($self, __obj)\n" "--\n" "\n" "Update this hash object\'s state with the provided string."); @@ -66,7 +66,7 @@ PyDoc_STRVAR(SHA1Type_update__doc__, {"update", (PyCFunction)SHA1Type_update, METH_O, SHA1Type_update__doc__}, PyDoc_STRVAR(_sha1_sha1__doc__, -"sha1($module, /, string=b\'\')\n" +"sha1($module, string=b\'\')\n" "--\n" "\n" "Return a new SHA1 hash object; optionally initialized with a string."); @@ -101,4 +101,4 @@ _sha1_sha1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject * exit: return return_value; } -/*[clinic end generated code: output=1ae7e73ec84a27d5 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=0e5102949ea718be input=a9049054013a1b77]*/ diff --git a/Modules/clinic/sha256module.c.h b/Modules/clinic/sha256module.c.h index 658abb15cf309d..387b0719ba3b35 100644 --- a/Modules/clinic/sha256module.c.h +++ b/Modules/clinic/sha256module.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(SHA256Type_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -21,7 +21,7 @@ SHA256Type_copy(SHAobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA256Type_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -39,7 +39,7 @@ SHA256Type_digest(SHAobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA256Type_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -57,7 +57,7 @@ SHA256Type_hexdigest(SHAobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA256Type_update__doc__, -"update($self, obj, /)\n" +"update($self, __obj)\n" "--\n" "\n" "Update this hash object\'s state with the provided string."); @@ -66,7 +66,7 @@ PyDoc_STRVAR(SHA256Type_update__doc__, {"update", (PyCFunction)SHA256Type_update, METH_O, SHA256Type_update__doc__}, PyDoc_STRVAR(_sha256_sha256__doc__, -"sha256($module, /, string=b\'\')\n" +"sha256($module, string=b\'\')\n" "--\n" "\n" "Return a new SHA-256 hash object; optionally initialized with a string."); @@ -103,7 +103,7 @@ _sha256_sha256(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(_sha256_sha224__doc__, -"sha224($module, /, string=b\'\')\n" +"sha224($module, string=b\'\')\n" "--\n" "\n" "Return a new SHA-224 hash object; optionally initialized with a string."); @@ -138,4 +138,4 @@ _sha256_sha224(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje exit: return return_value; } -/*[clinic end generated code: output=c54d0956ec88409d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=816b9e19da286a81 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/sha512module.c.h b/Modules/clinic/sha512module.c.h index 459a9341cfc5bc..f441cd26e3e8d5 100644 --- a/Modules/clinic/sha512module.c.h +++ b/Modules/clinic/sha512module.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(SHA512Type_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the hash object."); @@ -21,7 +21,7 @@ SHA512Type_copy(SHAobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA512Type_digest__doc__, -"digest($self, /)\n" +"digest($self)\n" "--\n" "\n" "Return the digest value as a bytes object."); @@ -39,7 +39,7 @@ SHA512Type_digest(SHAobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA512Type_hexdigest__doc__, -"hexdigest($self, /)\n" +"hexdigest($self)\n" "--\n" "\n" "Return the digest value as a string of hexadecimal digits."); @@ -57,7 +57,7 @@ SHA512Type_hexdigest(SHAobject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(SHA512Type_update__doc__, -"update($self, obj, /)\n" +"update($self, __obj)\n" "--\n" "\n" "Update this hash object\'s state with the provided string."); @@ -66,7 +66,7 @@ PyDoc_STRVAR(SHA512Type_update__doc__, {"update", (PyCFunction)SHA512Type_update, METH_O, SHA512Type_update__doc__}, PyDoc_STRVAR(_sha512_sha512__doc__, -"sha512($module, /, string=b\'\')\n" +"sha512($module, string=b\'\')\n" "--\n" "\n" "Return a new SHA-512 hash object; optionally initialized with a string."); @@ -103,7 +103,7 @@ _sha512_sha512(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(_sha512_sha384__doc__, -"sha384($module, /, string=b\'\')\n" +"sha384($module, string=b\'\')\n" "--\n" "\n" "Return a new SHA-384 hash object; optionally initialized with a string."); @@ -138,4 +138,4 @@ _sha512_sha384(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje exit: return return_value; } -/*[clinic end generated code: output=580df4b667084a7e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6ce07d7a8ce55303 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/signalmodule.c.h b/Modules/clinic/signalmodule.c.h index bc46515cb436bd..a0a8ac9e84e80e 100644 --- a/Modules/clinic/signalmodule.c.h +++ b/Modules/clinic/signalmodule.c.h @@ -5,7 +5,7 @@ preserve #if defined(HAVE_ALARM) PyDoc_STRVAR(signal_alarm__doc__, -"alarm($module, seconds, /)\n" +"alarm($module, __seconds)\n" "--\n" "\n" "Arrange for SIGALRM to arrive after the given number of seconds."); @@ -47,7 +47,7 @@ signal_alarm(PyObject *module, PyObject *arg) #if defined(HAVE_PAUSE) PyDoc_STRVAR(signal_pause__doc__, -"pause($module, /)\n" +"pause($module)\n" "--\n" "\n" "Wait until a signal arrives."); @@ -67,7 +67,7 @@ signal_pause(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(HAVE_PAUSE) */ PyDoc_STRVAR(signal_raise_signal__doc__, -"raise_signal($module, signalnum, /)\n" +"raise_signal($module, __signalnum)\n" "--\n" "\n" "Send a signal to the executing process."); @@ -100,7 +100,7 @@ signal_raise_signal(PyObject *module, PyObject *arg) } PyDoc_STRVAR(signal_signal__doc__, -"signal($module, signalnum, handler, /)\n" +"signal($module, __signalnum, __handler)\n" "--\n" "\n" "Set the action for the given signal.\n" @@ -145,7 +145,7 @@ signal_signal(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(signal_getsignal__doc__, -"getsignal($module, signalnum, /)\n" +"getsignal($module, __signalnum)\n" "--\n" "\n" "Return the current action for the given signal.\n" @@ -184,7 +184,7 @@ signal_getsignal(PyObject *module, PyObject *arg) } PyDoc_STRVAR(signal_strsignal__doc__, -"strsignal($module, signalnum, /)\n" +"strsignal($module, __signalnum)\n" "--\n" "\n" "Return the system description of the given signal.\n" @@ -222,7 +222,7 @@ signal_strsignal(PyObject *module, PyObject *arg) #if defined(HAVE_SIGINTERRUPT) PyDoc_STRVAR(signal_siginterrupt__doc__, -"siginterrupt($module, signalnum, flag, /)\n" +"siginterrupt($module, __signalnum, __flag)\n" "--\n" "\n" "Change system call restart behaviour.\n" @@ -275,7 +275,7 @@ signal_siginterrupt(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_SETITIMER) PyDoc_STRVAR(signal_setitimer__doc__, -"setitimer($module, which, seconds, interval=0.0, /)\n" +"setitimer($module, __which, __seconds, __interval=0.0)\n" "--\n" "\n" "Sets given itimer (one of ITIMER_REAL, ITIMER_VIRTUAL or ITIMER_PROF).\n" @@ -329,7 +329,7 @@ signal_setitimer(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_GETITIMER) PyDoc_STRVAR(signal_getitimer__doc__, -"getitimer($module, which, /)\n" +"getitimer($module, __which)\n" "--\n" "\n" "Returns current value of given itimer."); @@ -366,7 +366,7 @@ signal_getitimer(PyObject *module, PyObject *arg) #if defined(PYPTHREAD_SIGMASK) PyDoc_STRVAR(signal_pthread_sigmask__doc__, -"pthread_sigmask($module, how, mask, /)\n" +"pthread_sigmask($module, __how, __mask)\n" "--\n" "\n" "Fetch and/or change the signal mask of the calling thread."); @@ -410,7 +410,7 @@ signal_pthread_sigmask(PyObject *module, PyObject *const *args, Py_ssize_t nargs #if defined(HAVE_SIGPENDING) PyDoc_STRVAR(signal_sigpending__doc__, -"sigpending($module, /)\n" +"sigpending($module)\n" "--\n" "\n" "Examine pending signals.\n" @@ -435,7 +435,7 @@ signal_sigpending(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_SIGWAIT) PyDoc_STRVAR(signal_sigwait__doc__, -"sigwait($module, sigset, /)\n" +"sigwait($module, __sigset)\n" "--\n" "\n" "Wait for a signal.\n" @@ -470,7 +470,7 @@ signal_sigwait(PyObject *module, PyObject *arg) #if (defined(HAVE_SIGFILLSET) || defined(MS_WINDOWS)) PyDoc_STRVAR(signal_valid_signals__doc__, -"valid_signals($module, /)\n" +"valid_signals($module)\n" "--\n" "\n" "Return a set of valid signal numbers on this platform.\n" @@ -495,7 +495,7 @@ signal_valid_signals(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_SIGWAITINFO) PyDoc_STRVAR(signal_sigwaitinfo__doc__, -"sigwaitinfo($module, sigset, /)\n" +"sigwaitinfo($module, __sigset)\n" "--\n" "\n" "Wait synchronously until one of the signals in *sigset* is delivered.\n" @@ -528,7 +528,7 @@ signal_sigwaitinfo(PyObject *module, PyObject *arg) #if defined(HAVE_SIGTIMEDWAIT) PyDoc_STRVAR(signal_sigtimedwait__doc__, -"sigtimedwait($module, sigset, timeout, /)\n" +"sigtimedwait($module, __sigset, __timeout)\n" "--\n" "\n" "Like sigwaitinfo(), but with a timeout.\n" @@ -567,7 +567,7 @@ signal_sigtimedwait(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_PTHREAD_KILL) PyDoc_STRVAR(signal_pthread_kill__doc__, -"pthread_kill($module, thread_id, signalnum, /)\n" +"pthread_kill($module, __thread_id, __signalnum)\n" "--\n" "\n" "Send a signal to a thread."); @@ -658,4 +658,4 @@ signal_pthread_kill(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #ifndef SIGNAL_PTHREAD_KILL_METHODDEF #define SIGNAL_PTHREAD_KILL_METHODDEF #endif /* !defined(SIGNAL_PTHREAD_KILL_METHODDEF) */ -/*[clinic end generated code: output=f0d3a5703581da76 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5d2d3cdc9cb16136 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/spwdmodule.c.h b/Modules/clinic/spwdmodule.c.h index e051e6eb658992..0bd1a4524180f7 100644 --- a/Modules/clinic/spwdmodule.c.h +++ b/Modules/clinic/spwdmodule.c.h @@ -5,7 +5,7 @@ preserve #if defined(HAVE_GETSPNAM) PyDoc_STRVAR(spwd_getspnam__doc__, -"getspnam($module, arg, /)\n" +"getspnam($module, __arg)\n" "--\n" "\n" "Return the shadow password database entry for the given user name.\n" @@ -43,7 +43,7 @@ spwd_getspnam(PyObject *module, PyObject *arg_) #if defined(HAVE_GETSPENT) PyDoc_STRVAR(spwd_getspall__doc__, -"getspall($module, /)\n" +"getspall($module)\n" "--\n" "\n" "Return a list of all available shadow password database entries, in arbitrary order.\n" @@ -71,4 +71,4 @@ spwd_getspall(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SPWD_GETSPALL_METHODDEF #define SPWD_GETSPALL_METHODDEF #endif /* !defined(SPWD_GETSPALL_METHODDEF) */ -/*[clinic end generated code: output=2bbaa6bab1d9116e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1298aba24c277823 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/symtablemodule.c.h b/Modules/clinic/symtablemodule.c.h index 73e340bd462a63..7e536f62ed32d3 100644 --- a/Modules/clinic/symtablemodule.c.h +++ b/Modules/clinic/symtablemodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_symtable_symtable__doc__, -"symtable($module, str, filename, startstr, /)\n" +"symtable($module, __str, __filename, __startstr)\n" "--\n" "\n" "Return symbol and scope dictionaries used internally by compiler."); @@ -60,4 +60,4 @@ _symtable_symtable(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=be1cca59de019984 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=93da98406bc78297 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/unicodedata.c.h b/Modules/clinic/unicodedata.c.h index 8ca0881efcf8b2..db79d4d374c528 100644 --- a/Modules/clinic/unicodedata.c.h +++ b/Modules/clinic/unicodedata.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(unicodedata_UCD_decimal__doc__, -"decimal($self, chr, default=None, /)\n" +"decimal($self, __chr, __default=None)\n" "--\n" "\n" "Converts a Unicode character into its equivalent decimal value.\n" @@ -53,7 +53,7 @@ unicodedata_UCD_decimal(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicodedata_UCD_digit__doc__, -"digit($self, chr, default=None, /)\n" +"digit($self, __chr, __default=None)\n" "--\n" "\n" "Converts a Unicode character into its equivalent digit value.\n" @@ -102,7 +102,7 @@ unicodedata_UCD_digit(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicodedata_UCD_numeric__doc__, -"numeric($self, chr, default=None, /)\n" +"numeric($self, __chr, __default=None)\n" "--\n" "\n" "Converts a Unicode character into its equivalent numeric value.\n" @@ -152,7 +152,7 @@ unicodedata_UCD_numeric(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicodedata_UCD_category__doc__, -"category($self, chr, /)\n" +"category($self, __chr)\n" "--\n" "\n" "Returns the general category assigned to the character chr as string."); @@ -188,7 +188,7 @@ unicodedata_UCD_category(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicodedata_UCD_bidirectional__doc__, -"bidirectional($self, chr, /)\n" +"bidirectional($self, __chr)\n" "--\n" "\n" "Returns the bidirectional class assigned to the character chr as string.\n" @@ -226,7 +226,7 @@ unicodedata_UCD_bidirectional(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicodedata_UCD_combining__doc__, -"combining($self, chr, /)\n" +"combining($self, __chr)\n" "--\n" "\n" "Returns the canonical combining class assigned to the character chr as integer.\n" @@ -269,7 +269,7 @@ unicodedata_UCD_combining(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicodedata_UCD_mirrored__doc__, -"mirrored($self, chr, /)\n" +"mirrored($self, __chr)\n" "--\n" "\n" "Returns the mirrored property assigned to the character chr as integer.\n" @@ -313,7 +313,7 @@ unicodedata_UCD_mirrored(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicodedata_UCD_east_asian_width__doc__, -"east_asian_width($self, chr, /)\n" +"east_asian_width($self, __chr)\n" "--\n" "\n" "Returns the east asian width assigned to the character chr as string."); @@ -349,7 +349,7 @@ unicodedata_UCD_east_asian_width(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicodedata_UCD_decomposition__doc__, -"decomposition($self, chr, /)\n" +"decomposition($self, __chr)\n" "--\n" "\n" "Returns the character decomposition mapping assigned to the character chr as string.\n" @@ -387,7 +387,7 @@ unicodedata_UCD_decomposition(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicodedata_UCD_is_normalized__doc__, -"is_normalized($self, form, unistr, /)\n" +"is_normalized($self, __form, __unistr)\n" "--\n" "\n" "Return whether the Unicode string unistr is in the normal form \'form\'.\n" @@ -434,7 +434,7 @@ unicodedata_UCD_is_normalized(PyObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(unicodedata_UCD_normalize__doc__, -"normalize($self, form, unistr, /)\n" +"normalize($self, __form, __unistr)\n" "--\n" "\n" "Return the normal form \'form\' for the Unicode string unistr.\n" @@ -481,7 +481,7 @@ unicodedata_UCD_normalize(PyObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(unicodedata_UCD_name__doc__, -"name($self, chr, default=None, /)\n" +"name($self, __chr, __default=None)\n" "--\n" "\n" "Returns the name assigned to the character chr as a string.\n" @@ -529,7 +529,7 @@ unicodedata_UCD_name(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicodedata_UCD_lookup__doc__, -"lookup($self, name, /)\n" +"lookup($self, __name)\n" "--\n" "\n" "Look up character by name.\n" @@ -559,4 +559,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=0fc850fe5b6b312c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f0303db99d703567 input=a9049054013a1b77]*/ diff --git a/Modules/clinic/zipimport.c.h b/Modules/clinic/zipimport.c.h deleted file mode 100644 index aabe7a05ae9dd6..00000000000000 --- a/Modules/clinic/zipimport.c.h +++ /dev/null @@ -1,325 +0,0 @@ -/*[clinic input] -preserve -[clinic start generated code]*/ - -PyDoc_STRVAR(zipimport_zipimporter___init____doc__, -"zipimporter(archivepath, /)\n" -"--\n" -"\n" -"Create a new zipimporter instance.\n" -"\n" -" archivepath\n" -" A path-like object to a zipfile, or to a specific path inside\n" -" a zipfile.\n" -"\n" -"\'archivepath\' must be a path-like object to a zipfile, or to a specific path\n" -"inside a zipfile. For example, it can be \'/tmp/myimport.zip\', or\n" -"\'/tmp/myimport.zip/mydirectory\', if mydirectory is a valid directory inside\n" -"the archive.\n" -"\n" -"\'ZipImportError\' is raised if \'archivepath\' doesn\'t point to a valid Zip\n" -"archive.\n" -"\n" -"The \'archive\' attribute of the zipimporter object contains the name of the\n" -"zipfile targeted."); - -static int -zipimport_zipimporter___init___impl(ZipImporter *self, PyObject *path); - -static int -zipimport_zipimporter___init__(PyObject *self, PyObject *args, PyObject *kwargs) -{ - int return_value = -1; - PyObject *path; - - if ((Py_TYPE(self) == &ZipImporter_Type) && - !_PyArg_NoKeywords("zipimporter", kwargs)) { - goto exit; - } - if (!PyArg_ParseTuple(args, "O&:zipimporter", - PyUnicode_FSDecoder, &path)) { - goto exit; - } - return_value = zipimport_zipimporter___init___impl((ZipImporter *)self, path); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_find_module__doc__, -"find_module($self, fullname, path=None, /)\n" -"--\n" -"\n" -"Search for a module specified by \'fullname\'.\n" -"\n" -"\'fullname\' must be the fully qualified (dotted) module name. It returns the\n" -"zipimporter instance itself if the module was found, or None if it wasn\'t.\n" -"The optional \'path\' argument is ignored -- it\'s there for compatibility\n" -"with the importer protocol."); - -#define ZIPIMPORT_ZIPIMPORTER_FIND_MODULE_METHODDEF \ - {"find_module", (PyCFunction)(void *)zipimport_zipimporter_find_module, METH_FASTCALL, zipimport_zipimporter_find_module__doc__}, - -static PyObject * -zipimport_zipimporter_find_module_impl(ZipImporter *self, PyObject *fullname, - PyObject *path); - -static PyObject * -zipimport_zipimporter_find_module(ZipImporter *self, PyObject *const *args, Py_ssize_t nargs) -{ - PyObject *return_value = NULL; - PyObject *fullname; - PyObject *path = Py_None; - - if (!_PyArg_ParseStack(args, nargs, "U|O:find_module", - &fullname, &path)) { - goto exit; - } - return_value = zipimport_zipimporter_find_module_impl(self, fullname, path); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_find_loader__doc__, -"find_loader($self, fullname, path=None, /)\n" -"--\n" -"\n" -"Search for a module specified by \'fullname\'.\n" -"\n" -"\'fullname\' must be the fully qualified (dotted) module name. It returns the\n" -"zipimporter instance itself if the module was found, a string containing the\n" -"full path name if it\'s possibly a portion of a namespace package,\n" -"or None otherwise. The optional \'path\' argument is ignored -- it\'s\n" -"there for compatibility with the importer protocol."); - -#define ZIPIMPORT_ZIPIMPORTER_FIND_LOADER_METHODDEF \ - {"find_loader", (PyCFunction)(void *)zipimport_zipimporter_find_loader, METH_FASTCALL, zipimport_zipimporter_find_loader__doc__}, - -static PyObject * -zipimport_zipimporter_find_loader_impl(ZipImporter *self, PyObject *fullname, - PyObject *path); - -static PyObject * -zipimport_zipimporter_find_loader(ZipImporter *self, PyObject *const *args, Py_ssize_t nargs) -{ - PyObject *return_value = NULL; - PyObject *fullname; - PyObject *path = Py_None; - - if (!_PyArg_ParseStack(args, nargs, "U|O:find_loader", - &fullname, &path)) { - goto exit; - } - return_value = zipimport_zipimporter_find_loader_impl(self, fullname, path); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_load_module__doc__, -"load_module($self, fullname, /)\n" -"--\n" -"\n" -"Load the module specified by \'fullname\'.\n" -"\n" -"\'fullname\' must be the fully qualified (dotted) module name. It returns the\n" -"imported module, or raises ZipImportError if it wasn\'t found."); - -#define ZIPIMPORT_ZIPIMPORTER_LOAD_MODULE_METHODDEF \ - {"load_module", (PyCFunction)zipimport_zipimporter_load_module, METH_O, zipimport_zipimporter_load_module__doc__}, - -static PyObject * -zipimport_zipimporter_load_module_impl(ZipImporter *self, PyObject *fullname); - -static PyObject * -zipimport_zipimporter_load_module(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *fullname; - - if (!PyArg_Parse(arg, "U:load_module", &fullname)) { - goto exit; - } - return_value = zipimport_zipimporter_load_module_impl(self, fullname); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_get_filename__doc__, -"get_filename($self, fullname, /)\n" -"--\n" -"\n" -"Return the filename for the specified module."); - -#define ZIPIMPORT_ZIPIMPORTER_GET_FILENAME_METHODDEF \ - {"get_filename", (PyCFunction)zipimport_zipimporter_get_filename, METH_O, zipimport_zipimporter_get_filename__doc__}, - -static PyObject * -zipimport_zipimporter_get_filename_impl(ZipImporter *self, - PyObject *fullname); - -static PyObject * -zipimport_zipimporter_get_filename(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *fullname; - - if (!PyArg_Parse(arg, "U:get_filename", &fullname)) { - goto exit; - } - return_value = zipimport_zipimporter_get_filename_impl(self, fullname); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_is_package__doc__, -"is_package($self, fullname, /)\n" -"--\n" -"\n" -"Return True if the module specified by fullname is a package.\n" -"\n" -"Raise ZipImportError if the module couldn\'t be found."); - -#define ZIPIMPORT_ZIPIMPORTER_IS_PACKAGE_METHODDEF \ - {"is_package", (PyCFunction)zipimport_zipimporter_is_package, METH_O, zipimport_zipimporter_is_package__doc__}, - -static PyObject * -zipimport_zipimporter_is_package_impl(ZipImporter *self, PyObject *fullname); - -static PyObject * -zipimport_zipimporter_is_package(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *fullname; - - if (!PyArg_Parse(arg, "U:is_package", &fullname)) { - goto exit; - } - return_value = zipimport_zipimporter_is_package_impl(self, fullname); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_get_data__doc__, -"get_data($self, pathname, /)\n" -"--\n" -"\n" -"Return the data associated with \'pathname\'.\n" -"\n" -"Raise OSError if the file was not found."); - -#define ZIPIMPORT_ZIPIMPORTER_GET_DATA_METHODDEF \ - {"get_data", (PyCFunction)zipimport_zipimporter_get_data, METH_O, zipimport_zipimporter_get_data__doc__}, - -static PyObject * -zipimport_zipimporter_get_data_impl(ZipImporter *self, PyObject *path); - -static PyObject * -zipimport_zipimporter_get_data(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *path; - - if (!PyArg_Parse(arg, "U:get_data", &path)) { - goto exit; - } - return_value = zipimport_zipimporter_get_data_impl(self, path); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_get_code__doc__, -"get_code($self, fullname, /)\n" -"--\n" -"\n" -"Return the code object for the specified module.\n" -"\n" -"Raise ZipImportError if the module couldn\'t be found."); - -#define ZIPIMPORT_ZIPIMPORTER_GET_CODE_METHODDEF \ - {"get_code", (PyCFunction)zipimport_zipimporter_get_code, METH_O, zipimport_zipimporter_get_code__doc__}, - -static PyObject * -zipimport_zipimporter_get_code_impl(ZipImporter *self, PyObject *fullname); - -static PyObject * -zipimport_zipimporter_get_code(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *fullname; - - if (!PyArg_Parse(arg, "U:get_code", &fullname)) { - goto exit; - } - return_value = zipimport_zipimporter_get_code_impl(self, fullname); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_get_source__doc__, -"get_source($self, fullname, /)\n" -"--\n" -"\n" -"Return the source code for the specified module.\n" -"\n" -"Raise ZipImportError if the module couldn\'t be found, return None if the\n" -"archive does contain the module, but has no source for it."); - -#define ZIPIMPORT_ZIPIMPORTER_GET_SOURCE_METHODDEF \ - {"get_source", (PyCFunction)zipimport_zipimporter_get_source, METH_O, zipimport_zipimporter_get_source__doc__}, - -static PyObject * -zipimport_zipimporter_get_source_impl(ZipImporter *self, PyObject *fullname); - -static PyObject * -zipimport_zipimporter_get_source(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *fullname; - - if (!PyArg_Parse(arg, "U:get_source", &fullname)) { - goto exit; - } - return_value = zipimport_zipimporter_get_source_impl(self, fullname); - -exit: - return return_value; -} - -PyDoc_STRVAR(zipimport_zipimporter_get_resource_reader__doc__, -"get_resource_reader($self, fullname, /)\n" -"--\n" -"\n" -"Return the ResourceReader for a package in a zip file.\n" -"\n" -"If \'fullname\' is a package within the zip file, return the \'ResourceReader\'\n" -"object for the package. Otherwise return None."); - -#define ZIPIMPORT_ZIPIMPORTER_GET_RESOURCE_READER_METHODDEF \ - {"get_resource_reader", (PyCFunction)zipimport_zipimporter_get_resource_reader, METH_O, zipimport_zipimporter_get_resource_reader__doc__}, - -static PyObject * -zipimport_zipimporter_get_resource_reader_impl(ZipImporter *self, - PyObject *fullname); - -static PyObject * -zipimport_zipimporter_get_resource_reader(ZipImporter *self, PyObject *arg) -{ - PyObject *return_value = NULL; - PyObject *fullname; - - if (!PyArg_Parse(arg, "U:get_resource_reader", &fullname)) { - goto exit; - } - return_value = zipimport_zipimporter_get_resource_reader_impl(self, fullname); - -exit: - return return_value; -} -/*[clinic end generated code: output=854ce3502180dc1f input=a9049054013a1b77]*/ diff --git a/Modules/clinic/zlibmodule.c.h b/Modules/clinic/zlibmodule.c.h index aa579209108d85..f614e793cc7632 100644 --- a/Modules/clinic/zlibmodule.c.h +++ b/Modules/clinic/zlibmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(zlib_compress__doc__, -"compress($module, data, /, level=Z_DEFAULT_COMPRESSION)\n" +"compress($module, __data, level=Z_DEFAULT_COMPRESSION)\n" "--\n" "\n" "Returns a bytes object containing compressed data.\n" @@ -66,7 +66,7 @@ zlib_compress(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec } PyDoc_STRVAR(zlib_decompress__doc__, -"decompress($module, data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)\n" +"decompress($module, __data, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)\n" "--\n" "\n" "Returns a bytes object containing the uncompressed data.\n" @@ -141,7 +141,7 @@ zlib_decompress(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj } PyDoc_STRVAR(zlib_compressobj__doc__, -"compressobj($module, /, level=Z_DEFAULT_COMPRESSION, method=DEFLATED,\n" +"compressobj($module, level=Z_DEFAULT_COMPRESSION, method=DEFLATED,\n" " wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL,\n" " strategy=Z_DEFAULT_STRATEGY, zdict=None)\n" "--\n" @@ -289,7 +289,7 @@ zlib_compressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb } PyDoc_STRVAR(zlib_decompressobj__doc__, -"decompressobj($module, /, wbits=MAX_WBITS, zdict=b\'\')\n" +"decompressobj($module, wbits=MAX_WBITS, zdict=b\'\')\n" "--\n" "\n" "Return a decompressor object.\n" @@ -347,7 +347,7 @@ zlib_decompressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py } PyDoc_STRVAR(zlib_Compress_compress__doc__, -"compress($self, data, /)\n" +"compress($self, __data)\n" "--\n" "\n" "Returns a bytes object containing compressed data.\n" @@ -390,7 +390,7 @@ zlib_Compress_compress(compobject *self, PyObject *arg) } PyDoc_STRVAR(zlib_Decompress_decompress__doc__, -"decompress($self, data, /, max_length=0)\n" +"decompress($self, __data, max_length=0)\n" "--\n" "\n" "Return a bytes object containing the decompressed version of the data.\n" @@ -454,7 +454,7 @@ zlib_Decompress_decompress(compobject *self, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(zlib_Compress_flush__doc__, -"flush($self, mode=zlib.Z_FINISH, /)\n" +"flush($self, __mode=zlib.Z_FINISH)\n" "--\n" "\n" "Return a bytes object containing any remaining compressed data.\n" @@ -502,7 +502,7 @@ zlib_Compress_flush(compobject *self, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_ZLIB_COPY) PyDoc_STRVAR(zlib_Compress_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the compression object."); @@ -524,7 +524,7 @@ zlib_Compress_copy(compobject *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_ZLIB_COPY) PyDoc_STRVAR(zlib_Compress___copy____doc__, -"__copy__($self, /)\n" +"__copy__($self)\n" "--\n" "\n"); @@ -545,7 +545,7 @@ zlib_Compress___copy__(compobject *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_ZLIB_COPY) PyDoc_STRVAR(zlib_Compress___deepcopy____doc__, -"__deepcopy__($self, memo, /)\n" +"__deepcopy__($self, __memo)\n" "--\n" "\n"); @@ -557,7 +557,7 @@ PyDoc_STRVAR(zlib_Compress___deepcopy____doc__, #if defined(HAVE_ZLIB_COPY) PyDoc_STRVAR(zlib_Decompress_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of the decompression object."); @@ -579,7 +579,7 @@ zlib_Decompress_copy(compobject *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_ZLIB_COPY) PyDoc_STRVAR(zlib_Decompress___copy____doc__, -"__copy__($self, /)\n" +"__copy__($self)\n" "--\n" "\n"); @@ -600,7 +600,7 @@ zlib_Decompress___copy__(compobject *self, PyObject *Py_UNUSED(ignored)) #if defined(HAVE_ZLIB_COPY) PyDoc_STRVAR(zlib_Decompress___deepcopy____doc__, -"__deepcopy__($self, memo, /)\n" +"__deepcopy__($self, __memo)\n" "--\n" "\n"); @@ -610,7 +610,7 @@ PyDoc_STRVAR(zlib_Decompress___deepcopy____doc__, #endif /* defined(HAVE_ZLIB_COPY) */ PyDoc_STRVAR(zlib_Decompress_flush__doc__, -"flush($self, length=zlib.DEF_BUF_SIZE, /)\n" +"flush($self, __length=zlib.DEF_BUF_SIZE)\n" "--\n" "\n" "Return a bytes object containing any remaining decompressed data.\n" @@ -647,7 +647,7 @@ zlib_Decompress_flush(compobject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(zlib_adler32__doc__, -"adler32($module, data, value=1, /)\n" +"adler32($module, __data, __value=1)\n" "--\n" "\n" "Compute an Adler-32 checksum of data.\n" @@ -705,7 +705,7 @@ zlib_adler32(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(zlib_crc32__doc__, -"crc32($module, data, value=0, /)\n" +"crc32($module, __data, __value=0)\n" "--\n" "\n" "Compute a CRC-32 checksum of data.\n" @@ -785,4 +785,4 @@ zlib_crc32(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #ifndef ZLIB_DECOMPRESS___DEEPCOPY___METHODDEF #define ZLIB_DECOMPRESS___DEEPCOPY___METHODDEF #endif /* !defined(ZLIB_DECOMPRESS___DEEPCOPY___METHODDEF) */ -/*[clinic end generated code: output=feb079cebbbaacd6 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=215f87d3407acf2e input=a9049054013a1b77]*/ diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index ba8423211c2b53..8c54deb327837d 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -1071,26 +1071,26 @@ math_2(PyObject *const *args, Py_ssize_t nargs, PyDoc_STRVAR(math_##funcname##_doc, docstring); FUNC1(acos, acos, 0, - "acos($module, x, /)\n--\n\n" + "acos($module, __x)\n--\n\n" "Return the arc cosine (measured in radians) of x.") FUNC1(acosh, m_acosh, 0, - "acosh($module, x, /)\n--\n\n" + "acosh($module, __x)\n--\n\n" "Return the inverse hyperbolic cosine of x.") FUNC1(asin, asin, 0, - "asin($module, x, /)\n--\n\n" + "asin($module, __x)\n--\n\n" "Return the arc sine (measured in radians) of x.") FUNC1(asinh, m_asinh, 0, - "asinh($module, x, /)\n--\n\n" + "asinh($module, __x)\n--\n\n" "Return the inverse hyperbolic sine of x.") FUNC1(atan, atan, 0, - "atan($module, x, /)\n--\n\n" + "atan($module, __x)\n--\n\n" "Return the arc tangent (measured in radians) of x.") FUNC2(atan2, m_atan2, - "atan2($module, y, x, /)\n--\n\n" + "atan2($module, __y, __x)\n--\n\n" "Return the arc tangent (measured in radians) of y/x.\n\n" "Unlike atan(y/x), the signs of both x and y are considered.") FUNC1(atanh, m_atanh, 0, - "atanh($module, x, /)\n--\n\n" + "atanh($module, __x)\n--\n\n" "Return the inverse hyperbolic tangent of x.") /*[clinic input] @@ -1123,32 +1123,32 @@ math_ceil(PyObject *module, PyObject *number) } FUNC2(copysign, copysign, - "copysign($module, x, y, /)\n--\n\n" + "copysign($module, __x, __y)\n--\n\n" "Return a float with the magnitude (absolute value) of x but the sign of y.\n\n" "On platforms that support signed zeros, copysign(1.0, -0.0)\n" "returns -1.0.\n") FUNC1(cos, cos, 0, - "cos($module, x, /)\n--\n\n" + "cos($module, __x)\n--\n\n" "Return the cosine of x (measured in radians).") FUNC1(cosh, cosh, 1, - "cosh($module, x, /)\n--\n\n" + "cosh($module, __x)\n--\n\n" "Return the hyperbolic cosine of x.") FUNC1A(erf, m_erf, - "erf($module, x, /)\n--\n\n" + "erf($module, __x)\n--\n\n" "Error function at x.") FUNC1A(erfc, m_erfc, - "erfc($module, x, /)\n--\n\n" + "erfc($module, __x)\n--\n\n" "Complementary error function at x.") FUNC1(exp, exp, 1, - "exp($module, x, /)\n--\n\n" + "exp($module, __x)\n--\n\n" "Return e raised to the power of x.") FUNC1(expm1, m_expm1, 1, - "expm1($module, x, /)\n--\n\n" + "expm1($module, __x)\n--\n\n" "Return exp(x)-1.\n\n" "This function avoids the loss of precision involved in the direct " "evaluation of exp(x)-1 for small x.") FUNC1(fabs, fabs, 0, - "fabs($module, x, /)\n--\n\n" + "fabs($module, __x)\n--\n\n" "Return the absolute value of the float x.") /*[clinic input] @@ -1181,35 +1181,35 @@ math_floor(PyObject *module, PyObject *number) } FUNC1A(gamma, m_tgamma, - "gamma($module, x, /)\n--\n\n" + "gamma($module, __x)\n--\n\n" "Gamma function at x.") FUNC1A(lgamma, m_lgamma, - "lgamma($module, x, /)\n--\n\n" + "lgamma($module, __x)\n--\n\n" "Natural logarithm of absolute value of Gamma function at x.") FUNC1(log1p, m_log1p, 0, - "log1p($module, x, /)\n--\n\n" + "log1p($module, __x)\n--\n\n" "Return the natural logarithm of 1+x (base e).\n\n" "The result is computed in a way which is accurate for x near zero.") FUNC2(remainder, m_remainder, - "remainder($module, x, y, /)\n--\n\n" + "remainder($module, __x, __y)\n--\n\n" "Difference between x and the closest integer multiple of y.\n\n" "Return x - n*y where n*y is the closest integer multiple of y.\n" "In the case where x is exactly halfway between two multiples of\n" "y, the nearest even value of n is used. The result is always exact.") FUNC1(sin, sin, 0, - "sin($module, x, /)\n--\n\n" + "sin($module, __x)\n--\n\n" "Return the sine of x (measured in radians).") FUNC1(sinh, sinh, 1, - "sinh($module, x, /)\n--\n\n" + "sinh($module, __x)\n--\n\n" "Return the hyperbolic sine of x.") FUNC1(sqrt, sqrt, 0, - "sqrt($module, x, /)\n--\n\n" + "sqrt($module, __x)\n--\n\n" "Return the square root of x.") FUNC1(tan, tan, 0, - "tan($module, x, /)\n--\n\n" + "tan($module, __x)\n--\n\n" "Return the tangent of x (measured in radians).") FUNC1(tanh, tanh, 0, - "tanh($module, x, /)\n--\n\n" + "tanh($module, __x)\n--\n\n" "Return the hyperbolic tangent of x.") /* Precision summation function as msum() by Raymond Hettinger in diff --git a/Objects/clinic/bytearrayobject.c.h b/Objects/clinic/bytearrayobject.c.h index da1dc6a40af0a3..50755243fc6765 100644 --- a/Objects/clinic/bytearrayobject.c.h +++ b/Objects/clinic/bytearrayobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(bytearray_clear__doc__, -"clear($self, /)\n" +"clear($self)\n" "--\n" "\n" "Remove all items from the bytearray."); @@ -21,7 +21,7 @@ bytearray_clear(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(bytearray_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a copy of B."); @@ -39,7 +39,7 @@ bytearray_copy(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(bytearray_translate__doc__, -"translate($self, table, /, delete=b\'\')\n" +"translate($self, __table, delete=b\'\')\n" "--\n" "\n" "Return a copy with each character mapped by the given translation table.\n" @@ -85,7 +85,7 @@ bytearray_translate(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(bytearray_maketrans__doc__, -"maketrans(frm, to, /)\n" +"maketrans(__frm, __to)\n" "--\n" "\n" "Return a translation table useable for the bytes or bytearray translate method.\n" @@ -141,7 +141,7 @@ bytearray_maketrans(void *null, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytearray_replace__doc__, -"replace($self, old, new, count=-1, /)\n" +"replace($self, __old, __new, __count=-1)\n" "--\n" "\n" "Return a copy with all occurrences of substring old replaced by new.\n" @@ -222,7 +222,7 @@ bytearray_replace(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t nar } PyDoc_STRVAR(bytearray_split__doc__, -"split($self, /, sep=None, maxsplit=-1)\n" +"split($self, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the sections in the bytearray, using sep as the delimiter.\n" @@ -291,7 +291,7 @@ bytearray_split(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(bytearray_partition__doc__, -"partition($self, sep, /)\n" +"partition($self, __sep)\n" "--\n" "\n" "Partition the bytearray into three parts using the given separator.\n" @@ -307,7 +307,7 @@ PyDoc_STRVAR(bytearray_partition__doc__, {"partition", (PyCFunction)bytearray_partition, METH_O, bytearray_partition__doc__}, PyDoc_STRVAR(bytearray_rpartition__doc__, -"rpartition($self, sep, /)\n" +"rpartition($self, __sep)\n" "--\n" "\n" "Partition the bytearray into three parts using the given separator.\n" @@ -324,7 +324,7 @@ PyDoc_STRVAR(bytearray_rpartition__doc__, {"rpartition", (PyCFunction)bytearray_rpartition, METH_O, bytearray_rpartition__doc__}, PyDoc_STRVAR(bytearray_rsplit__doc__, -"rsplit($self, /, sep=None, maxsplit=-1)\n" +"rsplit($self, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the sections in the bytearray, using sep as the delimiter.\n" @@ -395,7 +395,7 @@ bytearray_rsplit(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(bytearray_reverse__doc__, -"reverse($self, /)\n" +"reverse($self)\n" "--\n" "\n" "Reverse the order of the values in B in place."); @@ -413,7 +413,7 @@ bytearray_reverse(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(bytearray_insert__doc__, -"insert($self, index, item, /)\n" +"insert($self, __index, __item)\n" "--\n" "\n" "Insert a single item into the bytearray before the given index.\n" @@ -466,7 +466,7 @@ bytearray_insert(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(bytearray_append__doc__, -"append($self, item, /)\n" +"append($self, __item)\n" "--\n" "\n" "Append a single item to the end of the bytearray.\n" @@ -496,7 +496,7 @@ bytearray_append(PyByteArrayObject *self, PyObject *arg) } PyDoc_STRVAR(bytearray_extend__doc__, -"extend($self, iterable_of_ints, /)\n" +"extend($self, __iterable_of_ints)\n" "--\n" "\n" "Append all the items from the iterator or sequence to the end of the bytearray.\n" @@ -508,7 +508,7 @@ PyDoc_STRVAR(bytearray_extend__doc__, {"extend", (PyCFunction)bytearray_extend, METH_O, bytearray_extend__doc__}, PyDoc_STRVAR(bytearray_pop__doc__, -"pop($self, index=-1, /)\n" +"pop($self, __index=-1)\n" "--\n" "\n" "Remove and return a single item from B.\n" @@ -562,7 +562,7 @@ bytearray_pop(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytearray_remove__doc__, -"remove($self, value, /)\n" +"remove($self, __value)\n" "--\n" "\n" "Remove the first occurrence of a value in the bytearray.\n" @@ -592,7 +592,7 @@ bytearray_remove(PyByteArrayObject *self, PyObject *arg) } PyDoc_STRVAR(bytearray_strip__doc__, -"strip($self, bytes=None, /)\n" +"strip($self, __bytes=None)\n" "--\n" "\n" "Strip leading and trailing bytes contained in the argument.\n" @@ -626,7 +626,7 @@ bytearray_strip(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(bytearray_lstrip__doc__, -"lstrip($self, bytes=None, /)\n" +"lstrip($self, __bytes=None)\n" "--\n" "\n" "Strip leading bytes contained in the argument.\n" @@ -660,7 +660,7 @@ bytearray_lstrip(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(bytearray_rstrip__doc__, -"rstrip($self, bytes=None, /)\n" +"rstrip($self, __bytes=None)\n" "--\n" "\n" "Strip trailing bytes contained in the argument.\n" @@ -694,7 +694,7 @@ bytearray_rstrip(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(bytearray_decode__doc__, -"decode($self, /, encoding=\'utf-8\', errors=\'strict\')\n" +"decode($self, encoding=\'utf-8\', errors=\'strict\')\n" "--\n" "\n" "Decode the bytearray using the codec registered for encoding.\n" @@ -772,7 +772,7 @@ bytearray_decode(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(bytearray_join__doc__, -"join($self, iterable_of_bytes, /)\n" +"join($self, __iterable_of_bytes)\n" "--\n" "\n" "Concatenate any number of bytes/bytearray objects.\n" @@ -785,7 +785,7 @@ PyDoc_STRVAR(bytearray_join__doc__, {"join", (PyCFunction)bytearray_join, METH_O, bytearray_join__doc__}, PyDoc_STRVAR(bytearray_splitlines__doc__, -"splitlines($self, /, keepends=False)\n" +"splitlines($self, keepends=False)\n" "--\n" "\n" "Return a list of the lines in the bytearray, breaking at line boundaries.\n" @@ -833,7 +833,7 @@ bytearray_splitlines(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t } PyDoc_STRVAR(bytearray_fromhex__doc__, -"fromhex($type, string, /)\n" +"fromhex($type, __string)\n" "--\n" "\n" "Create a bytearray object from a string of hexadecimal numbers.\n" @@ -868,7 +868,7 @@ bytearray_fromhex(PyTypeObject *type, PyObject *arg) } PyDoc_STRVAR(bytearray_reduce__doc__, -"__reduce__($self, /)\n" +"__reduce__($self)\n" "--\n" "\n" "Return state information for pickling."); @@ -886,7 +886,7 @@ bytearray_reduce(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(bytearray_reduce_ex__doc__, -"__reduce_ex__($self, proto=0, /)\n" +"__reduce_ex__($self, __proto=0)\n" "--\n" "\n" "Return state information for pickling."); @@ -926,7 +926,7 @@ bytearray_reduce_ex(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(bytearray_sizeof__doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Returns the size of the bytearray object in memory, in bytes."); @@ -942,4 +942,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored)) { return bytearray_sizeof_impl(self); } -/*[clinic end generated code: output=272fcb836b92da32 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=df9dac3296d4a25c input=a9049054013a1b77]*/ diff --git a/Objects/clinic/bytesobject.c.h b/Objects/clinic/bytesobject.c.h index b03078305a6006..7ed9066aa3ed94 100644 --- a/Objects/clinic/bytesobject.c.h +++ b/Objects/clinic/bytesobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(bytes_split__doc__, -"split($self, /, sep=None, maxsplit=-1)\n" +"split($self, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the sections in the bytes, using sep as the delimiter.\n" @@ -71,7 +71,7 @@ bytes_split(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(bytes_partition__doc__, -"partition($self, sep, /)\n" +"partition($self, __sep)\n" "--\n" "\n" "Partition the bytes into three parts using the given separator.\n" @@ -114,7 +114,7 @@ bytes_partition(PyBytesObject *self, PyObject *arg) } PyDoc_STRVAR(bytes_rpartition__doc__, -"rpartition($self, sep, /)\n" +"rpartition($self, __sep)\n" "--\n" "\n" "Partition the bytes into three parts using the given separator.\n" @@ -157,7 +157,7 @@ bytes_rpartition(PyBytesObject *self, PyObject *arg) } PyDoc_STRVAR(bytes_rsplit__doc__, -"rsplit($self, /, sep=None, maxsplit=-1)\n" +"rsplit($self, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the sections in the bytes, using sep as the delimiter.\n" @@ -227,7 +227,7 @@ bytes_rsplit(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObj } PyDoc_STRVAR(bytes_join__doc__, -"join($self, iterable_of_bytes, /)\n" +"join($self, __iterable_of_bytes)\n" "--\n" "\n" "Concatenate any number of bytes objects.\n" @@ -242,7 +242,7 @@ PyDoc_STRVAR(bytes_join__doc__, {"join", (PyCFunction)bytes_join, METH_O, bytes_join__doc__}, PyDoc_STRVAR(bytes_strip__doc__, -"strip($self, bytes=None, /)\n" +"strip($self, __bytes=None)\n" "--\n" "\n" "Strip leading and trailing bytes contained in the argument.\n" @@ -276,7 +276,7 @@ bytes_strip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytes_lstrip__doc__, -"lstrip($self, bytes=None, /)\n" +"lstrip($self, __bytes=None)\n" "--\n" "\n" "Strip leading bytes contained in the argument.\n" @@ -310,7 +310,7 @@ bytes_lstrip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytes_rstrip__doc__, -"rstrip($self, bytes=None, /)\n" +"rstrip($self, __bytes=None)\n" "--\n" "\n" "Strip trailing bytes contained in the argument.\n" @@ -344,7 +344,7 @@ bytes_rstrip(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytes_translate__doc__, -"translate($self, table, /, delete=b\'\')\n" +"translate($self, __table, delete=b\'\')\n" "--\n" "\n" "Return a copy with each character mapped by the given translation table.\n" @@ -390,7 +390,7 @@ bytes_translate(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, Py } PyDoc_STRVAR(bytes_maketrans__doc__, -"maketrans(frm, to, /)\n" +"maketrans(__frm, __to)\n" "--\n" "\n" "Return a translation table useable for the bytes or bytearray translate method.\n" @@ -446,7 +446,7 @@ bytes_maketrans(void *null, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytes_replace__doc__, -"replace($self, old, new, count=-1, /)\n" +"replace($self, __old, __new, __count=-1)\n" "--\n" "\n" "Return a copy with all occurrences of substring old replaced by new.\n" @@ -527,7 +527,7 @@ bytes_replace(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(bytes_decode__doc__, -"decode($self, /, encoding=\'utf-8\', errors=\'strict\')\n" +"decode($self, encoding=\'utf-8\', errors=\'strict\')\n" "--\n" "\n" "Decode the bytes using the codec registered for encoding.\n" @@ -605,7 +605,7 @@ bytes_decode(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObj } PyDoc_STRVAR(bytes_splitlines__doc__, -"splitlines($self, /, keepends=False)\n" +"splitlines($self, keepends=False)\n" "--\n" "\n" "Return a list of the lines in the bytes, breaking at line boundaries.\n" @@ -653,7 +653,7 @@ bytes_splitlines(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, P } PyDoc_STRVAR(bytes_fromhex__doc__, -"fromhex($type, string, /)\n" +"fromhex($type, __string)\n" "--\n" "\n" "Create a bytes object from a string of hexadecimal numbers.\n" @@ -686,4 +686,4 @@ bytes_fromhex(PyTypeObject *type, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=af9f51b9b185567d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=65413cf0f5ae3840 input=a9049054013a1b77]*/ diff --git a/Objects/clinic/dictobject.c.h b/Objects/clinic/dictobject.c.h index 713781ce880691..4c66cb08ac069f 100644 --- a/Objects/clinic/dictobject.c.h +++ b/Objects/clinic/dictobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(dict_fromkeys__doc__, -"fromkeys($type, iterable, value=None, /)\n" +"fromkeys($type, __iterable, __value=None)\n" "--\n" "\n" "Create a new dictionary with keys from iterable and values set to value."); @@ -37,7 +37,7 @@ dict_fromkeys(PyTypeObject *type, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(dict___contains____doc__, -"__contains__($self, key, /)\n" +"__contains__($self, __key)\n" "--\n" "\n" "True if the dictionary has the specified key, else False."); @@ -46,7 +46,7 @@ PyDoc_STRVAR(dict___contains____doc__, {"__contains__", (PyCFunction)dict___contains__, METH_O|METH_COEXIST, dict___contains____doc__}, PyDoc_STRVAR(dict_get__doc__, -"get($self, key, default=None, /)\n" +"get($self, __key, __default=None)\n" "--\n" "\n" "Return the value for key if key is in the dictionary, else default."); @@ -80,7 +80,7 @@ dict_get(PyDictObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(dict_setdefault__doc__, -"setdefault($self, key, default=None, /)\n" +"setdefault($self, __key, __default=None)\n" "--\n" "\n" "Insert key with a value of default if key is not in the dictionary.\n" @@ -117,7 +117,7 @@ dict_setdefault(PyDictObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(dict___reversed____doc__, -"__reversed__($self, /)\n" +"__reversed__($self)\n" "--\n" "\n" "Return a reverse iterator over the dict keys."); @@ -133,4 +133,4 @@ dict___reversed__(PyDictObject *self, PyObject *Py_UNUSED(ignored)) { return dict___reversed___impl(self); } -/*[clinic end generated code: output=12c21ce3552d9617 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a47b8c97edab6988 input=a9049054013a1b77]*/ diff --git a/Objects/clinic/enumobject.c.h b/Objects/clinic/enumobject.c.h index 09d4c87e155f47..29ca051ea8709f 100644 --- a/Objects/clinic/enumobject.c.h +++ b/Objects/clinic/enumobject.c.h @@ -50,7 +50,7 @@ enum_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(reversed_new__doc__, -"reversed(sequence, /)\n" +"reversed(__sequence)\n" "--\n" "\n" "Return a reverse iterator over the values of the given sequence."); @@ -77,4 +77,4 @@ reversed_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=e18c3fefcf914ec7 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5107fc30c43e0bbc input=a9049054013a1b77]*/ diff --git a/Objects/clinic/floatobject.c.h b/Objects/clinic/floatobject.c.h index 4251d63c247b9f..256f58f8f4d8f4 100644 --- a/Objects/clinic/floatobject.c.h +++ b/Objects/clinic/floatobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(float_is_integer__doc__, -"is_integer($self, /)\n" +"is_integer($self)\n" "--\n" "\n" "Return True if the float is an integer."); @@ -21,7 +21,7 @@ float_is_integer(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(float___trunc____doc__, -"__trunc__($self, /)\n" +"__trunc__($self)\n" "--\n" "\n" "Return the Integral closest to x between 0 and x."); @@ -39,7 +39,7 @@ float___trunc__(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(float___round____doc__, -"__round__($self, ndigits=None, /)\n" +"__round__($self, __ndigits=None)\n" "--\n" "\n" "Return the Integral closest to x, rounding half toward even.\n" @@ -73,7 +73,7 @@ float___round__(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(float_conjugate__doc__, -"conjugate($self, /)\n" +"conjugate($self)\n" "--\n" "\n" "Return self, the complex conjugate of any float."); @@ -91,7 +91,7 @@ float_conjugate(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(float_hex__doc__, -"hex($self, /)\n" +"hex($self)\n" "--\n" "\n" "Return a hexadecimal representation of a floating-point number.\n" @@ -114,7 +114,7 @@ float_hex(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(float_fromhex__doc__, -"fromhex($type, string, /)\n" +"fromhex($type, __string)\n" "--\n" "\n" "Create a floating-point number from a hexadecimal string.\n" @@ -128,7 +128,7 @@ PyDoc_STRVAR(float_fromhex__doc__, {"fromhex", (PyCFunction)float_fromhex, METH_O|METH_CLASS, float_fromhex__doc__}, PyDoc_STRVAR(float_as_integer_ratio__doc__, -"as_integer_ratio($self, /)\n" +"as_integer_ratio($self)\n" "--\n" "\n" "Return integer ratio.\n" @@ -158,7 +158,7 @@ float_as_integer_ratio(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(float_new__doc__, -"float(x=0, /)\n" +"float(__x=0)\n" "--\n" "\n" "Convert a string or number to a floating point number, if possible."); @@ -191,7 +191,7 @@ float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(float___getnewargs____doc__, -"__getnewargs__($self, /)\n" +"__getnewargs__($self)\n" "--\n" "\n"); @@ -208,7 +208,7 @@ float___getnewargs__(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(float___getformat____doc__, -"__getformat__($type, typestr, /)\n" +"__getformat__($type, __typestr)\n" "--\n" "\n" "You probably don\'t want to use this function.\n" @@ -254,7 +254,7 @@ float___getformat__(PyTypeObject *type, PyObject *arg) } PyDoc_STRVAR(float___set_format____doc__, -"__set_format__($type, typestr, fmt, /)\n" +"__set_format__($type, __typestr, __fmt)\n" "--\n" "\n" "You probably don\'t want to use this function.\n" @@ -321,7 +321,7 @@ float___set_format__(PyTypeObject *type, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(float___format____doc__, -"__format__($self, format_spec, /)\n" +"__format__($self, __format_spec)\n" "--\n" "\n" "Formats the float according to format_spec."); @@ -351,4 +351,4 @@ float___format__(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=c183029d87dd41fa input=a9049054013a1b77]*/ +/*[clinic end generated code: output=5891289bb8b6b26f input=a9049054013a1b77]*/ diff --git a/Objects/clinic/listobject.c.h b/Objects/clinic/listobject.c.h index 7b8e2d9905f9c2..d3aa599179ddfc 100644 --- a/Objects/clinic/listobject.c.h +++ b/Objects/clinic/listobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(list_insert__doc__, -"insert($self, index, object, /)\n" +"insert($self, __index, __object)\n" "--\n" "\n" "Insert object before index."); @@ -49,7 +49,7 @@ list_insert(PyListObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(list_clear__doc__, -"clear($self, /)\n" +"clear($self)\n" "--\n" "\n" "Remove all items from list."); @@ -67,7 +67,7 @@ list_clear(PyListObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(list_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a shallow copy of the list."); @@ -85,7 +85,7 @@ list_copy(PyListObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(list_append__doc__, -"append($self, object, /)\n" +"append($self, __object)\n" "--\n" "\n" "Append object to the end of the list."); @@ -94,7 +94,7 @@ PyDoc_STRVAR(list_append__doc__, {"append", (PyCFunction)list_append, METH_O, list_append__doc__}, PyDoc_STRVAR(list_extend__doc__, -"extend($self, iterable, /)\n" +"extend($self, __iterable)\n" "--\n" "\n" "Extend list by appending elements from the iterable."); @@ -103,7 +103,7 @@ PyDoc_STRVAR(list_extend__doc__, {"extend", (PyCFunction)list_extend, METH_O, list_extend__doc__}, PyDoc_STRVAR(list_pop__doc__, -"pop($self, index=-1, /)\n" +"pop($self, __index=-1)\n" "--\n" "\n" "Remove and return item at index (default last).\n" @@ -153,7 +153,7 @@ list_pop(PyListObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(list_sort__doc__, -"sort($self, /, *, key=None, reverse=False)\n" +"sort($self, *, key=None, reverse=False)\n" "--\n" "\n" "Stable sort *IN PLACE*."); @@ -205,7 +205,7 @@ list_sort(PyListObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(list_reverse__doc__, -"reverse($self, /)\n" +"reverse($self)\n" "--\n" "\n" "Reverse *IN PLACE*."); @@ -223,7 +223,7 @@ list_reverse(PyListObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(list_index__doc__, -"index($self, value, start=0, stop=sys.maxsize, /)\n" +"index($self, __value, __start=0, __stop=sys.maxsize)\n" "--\n" "\n" "Return first index of value.\n" @@ -269,7 +269,7 @@ list_index(PyListObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(list_count__doc__, -"count($self, value, /)\n" +"count($self, __value)\n" "--\n" "\n" "Return number of occurrences of value."); @@ -278,7 +278,7 @@ PyDoc_STRVAR(list_count__doc__, {"count", (PyCFunction)list_count, METH_O, list_count__doc__}, PyDoc_STRVAR(list_remove__doc__, -"remove($self, value, /)\n" +"remove($self, __value)\n" "--\n" "\n" "Remove first occurrence of value.\n" @@ -289,7 +289,7 @@ PyDoc_STRVAR(list_remove__doc__, {"remove", (PyCFunction)list_remove, METH_O, list_remove__doc__}, PyDoc_STRVAR(list___init____doc__, -"list(iterable=(), /)\n" +"list(__iterable=())\n" "--\n" "\n" "Built-in mutable sequence.\n" @@ -325,7 +325,7 @@ list___init__(PyObject *self, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(list___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Return the size of the list in memory, in bytes."); @@ -343,7 +343,7 @@ list___sizeof__(PyListObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(list___reversed____doc__, -"__reversed__($self, /)\n" +"__reversed__($self)\n" "--\n" "\n" "Return a reverse iterator over the list."); @@ -359,4 +359,4 @@ list___reversed__(PyListObject *self, PyObject *Py_UNUSED(ignored)) { return list___reversed___impl(self); } -/*[clinic end generated code: output=d1d5078edb7d3cf4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=33dfcd8a48447ddf input=a9049054013a1b77]*/ diff --git a/Objects/clinic/longobject.c.h b/Objects/clinic/longobject.c.h index 453edba481dfb5..1af42fb3efd292 100644 --- a/Objects/clinic/longobject.c.h +++ b/Objects/clinic/longobject.c.h @@ -40,7 +40,7 @@ long_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(int___getnewargs____doc__, -"__getnewargs__($self, /)\n" +"__getnewargs__($self)\n" "--\n" "\n"); @@ -57,7 +57,7 @@ int___getnewargs__(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(int___format____doc__, -"__format__($self, format_spec, /)\n" +"__format__($self, __format_spec)\n" "--\n" "\n"); @@ -88,7 +88,7 @@ int___format__(PyObject *self, PyObject *arg) } PyDoc_STRVAR(int___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Returns size in memory, in bytes."); @@ -116,7 +116,7 @@ int___sizeof__(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(int_bit_length__doc__, -"bit_length($self, /)\n" +"bit_length($self)\n" "--\n" "\n" "Number of bits necessary to represent self in binary.\n" @@ -139,7 +139,7 @@ int_bit_length(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(int_as_integer_ratio__doc__, -"as_integer_ratio($self, /)\n" +"as_integer_ratio($self)\n" "--\n" "\n" "Return integer ratio.\n" @@ -167,7 +167,7 @@ int_as_integer_ratio(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(int_to_bytes__doc__, -"to_bytes($self, /, length, byteorder, *, signed=False)\n" +"to_bytes($self, length, byteorder, *, signed=False)\n" "--\n" "\n" "Return an array of bytes representing an integer.\n" @@ -249,7 +249,7 @@ int_to_bytes(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject * } PyDoc_STRVAR(int_from_bytes__doc__, -"from_bytes($type, /, bytes, byteorder, *, signed=False)\n" +"from_bytes($type, bytes, byteorder, *, signed=False)\n" "--\n" "\n" "Return the integer represented by the given array of bytes.\n" @@ -313,4 +313,4 @@ int_from_bytes(PyTypeObject *type, PyObject *const *args, Py_ssize_t nargs, PyOb exit: return return_value; } -/*[clinic end generated code: output=709503897c55bca1 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6be504f257f0a01d input=a9049054013a1b77]*/ diff --git a/Objects/clinic/odictobject.c.h b/Objects/clinic/odictobject.c.h index f43bc14ce1b623..c61da07132e018 100644 --- a/Objects/clinic/odictobject.c.h +++ b/Objects/clinic/odictobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(OrderedDict_fromkeys__doc__, -"fromkeys($type, /, iterable, value=None)\n" +"fromkeys($type, iterable, value=None)\n" "--\n" "\n" "Create a new ordered dictionary with keys from iterable and values set to value."); @@ -42,7 +42,7 @@ OrderedDict_fromkeys(PyTypeObject *type, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(OrderedDict_setdefault__doc__, -"setdefault($self, /, key, default=None)\n" +"setdefault($self, key, default=None)\n" "--\n" "\n" "Insert key with a value of default if key is not in the dictionary.\n" @@ -84,7 +84,7 @@ OrderedDict_setdefault(PyODictObject *self, PyObject *const *args, Py_ssize_t na } PyDoc_STRVAR(OrderedDict_popitem__doc__, -"popitem($self, /, last=True)\n" +"popitem($self, last=True)\n" "--\n" "\n" "Remove and return a (key, value) pair from the dictionary.\n" @@ -126,7 +126,7 @@ OrderedDict_popitem(PyODictObject *self, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(OrderedDict_move_to_end__doc__, -"move_to_end($self, /, key, last=True)\n" +"move_to_end($self, key, last=True)\n" "--\n" "\n" "Move an existing element to the end (or beginning if last is false).\n" @@ -168,4 +168,4 @@ OrderedDict_move_to_end(PyODictObject *self, PyObject *const *args, Py_ssize_t n exit: return return_value; } -/*[clinic end generated code: output=8eb1296df9142908 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ad1f3c172f8ecc33 input=a9049054013a1b77]*/ diff --git a/Objects/clinic/tupleobject.c.h b/Objects/clinic/tupleobject.c.h index fe2fae42eeafc0..bdcdb96164c270 100644 --- a/Objects/clinic/tupleobject.c.h +++ b/Objects/clinic/tupleobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(tuple_index__doc__, -"index($self, value, start=0, stop=sys.maxsize, /)\n" +"index($self, __value, __start=0, __stop=sys.maxsize)\n" "--\n" "\n" "Return first index of value.\n" @@ -49,7 +49,7 @@ tuple_index(PyTupleObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(tuple_count__doc__, -"count($self, value, /)\n" +"count($self, __value)\n" "--\n" "\n" "Return number of occurrences of value."); @@ -58,7 +58,7 @@ PyDoc_STRVAR(tuple_count__doc__, {"count", (PyCFunction)tuple_count, METH_O, tuple_count__doc__}, PyDoc_STRVAR(tuple_new__doc__, -"tuple(iterable=(), /)\n" +"tuple(__iterable=())\n" "--\n" "\n" "Built-in immutable sequence.\n" @@ -96,7 +96,7 @@ tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) } PyDoc_STRVAR(tuple___getnewargs____doc__, -"__getnewargs__($self, /)\n" +"__getnewargs__($self)\n" "--\n" "\n"); @@ -111,4 +111,4 @@ tuple___getnewargs__(PyTupleObject *self, PyObject *Py_UNUSED(ignored)) { return tuple___getnewargs___impl(self); } -/*[clinic end generated code: output=56fab9b7368aba49 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=144f34ea6c725933 input=a9049054013a1b77]*/ diff --git a/Objects/clinic/typeobject.c.h b/Objects/clinic/typeobject.c.h index fbe1261fb5a062..63f104d09d48f0 100644 --- a/Objects/clinic/typeobject.c.h +++ b/Objects/clinic/typeobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(type___instancecheck____doc__, -"__instancecheck__($self, instance, /)\n" +"__instancecheck__($self, __instance)\n" "--\n" "\n" "Check if an object is an instance."); @@ -31,7 +31,7 @@ type___instancecheck__(PyTypeObject *self, PyObject *instance) } PyDoc_STRVAR(type___subclasscheck____doc__, -"__subclasscheck__($self, subclass, /)\n" +"__subclasscheck__($self, __subclass)\n" "--\n" "\n" "Check if a class is a subclass."); @@ -59,7 +59,7 @@ type___subclasscheck__(PyTypeObject *self, PyObject *subclass) } PyDoc_STRVAR(type_mro__doc__, -"mro($self, /)\n" +"mro($self)\n" "--\n" "\n" "Return a type\'s method resolution order."); @@ -77,7 +77,7 @@ type_mro(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(type___subclasses____doc__, -"__subclasses__($self, /)\n" +"__subclasses__($self)\n" "--\n" "\n" "Return a list of immediate subclasses."); @@ -95,7 +95,7 @@ type___subclasses__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(type___dir____doc__, -"__dir__($self, /)\n" +"__dir__($self)\n" "--\n" "\n" "Specialized __dir__ implementation for types."); @@ -113,7 +113,7 @@ type___dir__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(type___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Return memory consumption of the type object."); @@ -131,7 +131,7 @@ type___sizeof__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(object___reduce____doc__, -"__reduce__($self, /)\n" +"__reduce__($self)\n" "--\n" "\n" "Helper for pickle."); @@ -149,7 +149,7 @@ object___reduce__(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(object___reduce_ex____doc__, -"__reduce_ex__($self, protocol, /)\n" +"__reduce_ex__($self, __protocol)\n" "--\n" "\n" "Helper for pickle."); @@ -182,7 +182,7 @@ object___reduce_ex__(PyObject *self, PyObject *arg) } PyDoc_STRVAR(object___format____doc__, -"__format__($self, format_spec, /)\n" +"__format__($self, __format_spec)\n" "--\n" "\n" "Default object formatter."); @@ -214,7 +214,7 @@ object___format__(PyObject *self, PyObject *arg) } PyDoc_STRVAR(object___sizeof____doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Size of object in memory, in bytes."); @@ -232,7 +232,7 @@ object___sizeof__(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(object___dir____doc__, -"__dir__($self, /)\n" +"__dir__($self)\n" "--\n" "\n" "Default dir() implementation."); @@ -248,4 +248,4 @@ object___dir__(PyObject *self, PyObject *Py_UNUSED(ignored)) { return object___dir___impl(self); } -/*[clinic end generated code: output=ea5734413064fa7e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=16381baca5064849 input=a9049054013a1b77]*/ diff --git a/Objects/clinic/unicodeobject.c.h b/Objects/clinic/unicodeobject.c.h index 647507dea61a48..a89306d044f95a 100644 --- a/Objects/clinic/unicodeobject.c.h +++ b/Objects/clinic/unicodeobject.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(unicode_title__doc__, -"title($self, /)\n" +"title($self)\n" "--\n" "\n" "Return a version of the string where each word is titlecased.\n" @@ -24,7 +24,7 @@ unicode_title(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_capitalize__doc__, -"capitalize($self, /)\n" +"capitalize($self)\n" "--\n" "\n" "Return a capitalized version of the string.\n" @@ -45,7 +45,7 @@ unicode_capitalize(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_casefold__doc__, -"casefold($self, /)\n" +"casefold($self)\n" "--\n" "\n" "Return a version of the string suitable for caseless comparisons."); @@ -63,7 +63,7 @@ unicode_casefold(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_center__doc__, -"center($self, width, fillchar=\' \', /)\n" +"center($self, __width, __fillchar=\' \')\n" "--\n" "\n" "Return a centered string of length width.\n" @@ -117,7 +117,7 @@ unicode_center(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_encode__doc__, -"encode($self, /, encoding=\'utf-8\', errors=\'strict\')\n" +"encode($self, encoding=\'utf-8\', errors=\'strict\')\n" "--\n" "\n" "Encode the string using the codec registered for encoding.\n" @@ -194,7 +194,7 @@ unicode_encode(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(unicode_expandtabs__doc__, -"expandtabs($self, /, tabsize=8)\n" +"expandtabs($self, tabsize=8)\n" "--\n" "\n" "Return a copy where all tab characters are expanded using spaces.\n" @@ -241,7 +241,7 @@ unicode_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyOb } PyDoc_STRVAR(unicode_isascii__doc__, -"isascii($self, /)\n" +"isascii($self)\n" "--\n" "\n" "Return True if all characters in the string are ASCII, False otherwise.\n" @@ -262,7 +262,7 @@ unicode_isascii(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_islower__doc__, -"islower($self, /)\n" +"islower($self)\n" "--\n" "\n" "Return True if the string is a lowercase string, False otherwise.\n" @@ -283,7 +283,7 @@ unicode_islower(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isupper__doc__, -"isupper($self, /)\n" +"isupper($self)\n" "--\n" "\n" "Return True if the string is an uppercase string, False otherwise.\n" @@ -304,7 +304,7 @@ unicode_isupper(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_istitle__doc__, -"istitle($self, /)\n" +"istitle($self)\n" "--\n" "\n" "Return True if the string is a title-cased string, False otherwise.\n" @@ -325,7 +325,7 @@ unicode_istitle(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isspace__doc__, -"isspace($self, /)\n" +"isspace($self)\n" "--\n" "\n" "Return True if the string is a whitespace string, False otherwise.\n" @@ -346,7 +346,7 @@ unicode_isspace(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isalpha__doc__, -"isalpha($self, /)\n" +"isalpha($self)\n" "--\n" "\n" "Return True if the string is an alphabetic string, False otherwise.\n" @@ -367,7 +367,7 @@ unicode_isalpha(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isalnum__doc__, -"isalnum($self, /)\n" +"isalnum($self)\n" "--\n" "\n" "Return True if the string is an alpha-numeric string, False otherwise.\n" @@ -388,7 +388,7 @@ unicode_isalnum(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isdecimal__doc__, -"isdecimal($self, /)\n" +"isdecimal($self)\n" "--\n" "\n" "Return True if the string is a decimal string, False otherwise.\n" @@ -409,7 +409,7 @@ unicode_isdecimal(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isdigit__doc__, -"isdigit($self, /)\n" +"isdigit($self)\n" "--\n" "\n" "Return True if the string is a digit string, False otherwise.\n" @@ -430,7 +430,7 @@ unicode_isdigit(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isnumeric__doc__, -"isnumeric($self, /)\n" +"isnumeric($self)\n" "--\n" "\n" "Return True if the string is a numeric string, False otherwise.\n" @@ -451,7 +451,7 @@ unicode_isnumeric(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isidentifier__doc__, -"isidentifier($self, /)\n" +"isidentifier($self)\n" "--\n" "\n" "Return True if the string is a valid Python identifier, False otherwise.\n" @@ -472,7 +472,7 @@ unicode_isidentifier(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_isprintable__doc__, -"isprintable($self, /)\n" +"isprintable($self)\n" "--\n" "\n" "Return True if the string is printable, False otherwise.\n" @@ -493,7 +493,7 @@ unicode_isprintable(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_join__doc__, -"join($self, iterable, /)\n" +"join($self, __iterable)\n" "--\n" "\n" "Concatenate any number of strings.\n" @@ -507,7 +507,7 @@ PyDoc_STRVAR(unicode_join__doc__, {"join", (PyCFunction)unicode_join, METH_O, unicode_join__doc__}, PyDoc_STRVAR(unicode_ljust__doc__, -"ljust($self, width, fillchar=\' \', /)\n" +"ljust($self, __width, __fillchar=\' \')\n" "--\n" "\n" "Return a left-justified string of length width.\n" @@ -561,7 +561,7 @@ unicode_ljust(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_lower__doc__, -"lower($self, /)\n" +"lower($self)\n" "--\n" "\n" "Return a copy of the string converted to lowercase."); @@ -579,7 +579,7 @@ unicode_lower(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_strip__doc__, -"strip($self, chars=None, /)\n" +"strip($self, __chars=None)\n" "--\n" "\n" "Return a copy of the string with leading and trailing whitespace remove.\n" @@ -613,7 +613,7 @@ unicode_strip(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_lstrip__doc__, -"lstrip($self, chars=None, /)\n" +"lstrip($self, __chars=None)\n" "--\n" "\n" "Return a copy of the string with leading whitespace removed.\n" @@ -647,7 +647,7 @@ unicode_lstrip(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_rstrip__doc__, -"rstrip($self, chars=None, /)\n" +"rstrip($self, __chars=None)\n" "--\n" "\n" "Return a copy of the string with trailing whitespace removed.\n" @@ -681,7 +681,7 @@ unicode_rstrip(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_replace__doc__, -"replace($self, old, new, count=-1, /)\n" +"replace($self, __old, __new, __count=-1)\n" "--\n" "\n" "Return a copy with all occurrences of substring old replaced by new.\n" @@ -755,7 +755,7 @@ unicode_replace(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_rjust__doc__, -"rjust($self, width, fillchar=\' \', /)\n" +"rjust($self, __width, __fillchar=\' \')\n" "--\n" "\n" "Return a right-justified string of length width.\n" @@ -809,7 +809,7 @@ unicode_rjust(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_split__doc__, -"split($self, /, sep=None, maxsplit=-1)\n" +"split($self, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the words in the string, using sep as the delimiter string.\n" @@ -877,7 +877,7 @@ unicode_split(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(unicode_partition__doc__, -"partition($self, sep, /)\n" +"partition($self, __sep)\n" "--\n" "\n" "Partition the string into three parts using the given separator.\n" @@ -893,7 +893,7 @@ PyDoc_STRVAR(unicode_partition__doc__, {"partition", (PyCFunction)unicode_partition, METH_O, unicode_partition__doc__}, PyDoc_STRVAR(unicode_rpartition__doc__, -"rpartition($self, sep, /)\n" +"rpartition($self, __sep)\n" "--\n" "\n" "Partition the string into three parts using the given separator.\n" @@ -909,7 +909,7 @@ PyDoc_STRVAR(unicode_rpartition__doc__, {"rpartition", (PyCFunction)unicode_rpartition, METH_O, unicode_rpartition__doc__}, PyDoc_STRVAR(unicode_rsplit__doc__, -"rsplit($self, /, sep=None, maxsplit=-1)\n" +"rsplit($self, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the words in the string, using sep as the delimiter string.\n" @@ -979,7 +979,7 @@ unicode_rsplit(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(unicode_splitlines__doc__, -"splitlines($self, /, keepends=False)\n" +"splitlines($self, keepends=False)\n" "--\n" "\n" "Return a list of the lines in the string, breaking at line boundaries.\n" @@ -1027,7 +1027,7 @@ unicode_splitlines(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyOb } PyDoc_STRVAR(unicode_swapcase__doc__, -"swapcase($self, /)\n" +"swapcase($self)\n" "--\n" "\n" "Convert uppercase characters to lowercase and lowercase characters to uppercase."); @@ -1045,7 +1045,7 @@ unicode_swapcase(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_maketrans__doc__, -"maketrans(x, y=None, z=None, /)\n" +"maketrans(__x, __y=None, __z=None)\n" "--\n" "\n" "Return a translation table usable for str.translate().\n" @@ -1106,7 +1106,7 @@ unicode_maketrans(void *null, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(unicode_translate__doc__, -"translate($self, table, /)\n" +"translate($self, __table)\n" "--\n" "\n" "Replace each character in the string using the given translation table.\n" @@ -1123,7 +1123,7 @@ PyDoc_STRVAR(unicode_translate__doc__, {"translate", (PyCFunction)unicode_translate, METH_O, unicode_translate__doc__}, PyDoc_STRVAR(unicode_upper__doc__, -"upper($self, /)\n" +"upper($self)\n" "--\n" "\n" "Return a copy of the string converted to uppercase."); @@ -1141,7 +1141,7 @@ unicode_upper(PyObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(unicode_zfill__doc__, -"zfill($self, width, /)\n" +"zfill($self, __width)\n" "--\n" "\n" "Pad a numeric string with zeros on the left, to fill a field of the given width.\n" @@ -1184,7 +1184,7 @@ unicode_zfill(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicode___format____doc__, -"__format__($self, format_spec, /)\n" +"__format__($self, __format_spec)\n" "--\n" "\n" "Return a formatted version of the string as described by format_spec."); @@ -1216,7 +1216,7 @@ unicode___format__(PyObject *self, PyObject *arg) } PyDoc_STRVAR(unicode_sizeof__doc__, -"__sizeof__($self, /)\n" +"__sizeof__($self)\n" "--\n" "\n" "Return the size of the string in memory, in bytes."); @@ -1232,4 +1232,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored)) { return unicode_sizeof_impl(self); } -/*[clinic end generated code: output=d1541724cb4a0070 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=54b99d59ffcd5000 input=a9049054013a1b77]*/ diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index 6bbb413c3c106a..b2a9fefc5f94ff 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -3079,11 +3079,11 @@ static PyGetSetDef memory_getsetlist[] = { }; PyDoc_STRVAR(memory_release_doc, -"release($self, /)\n--\n\ +"release($self)\n--\n\ \n\ Release the underlying buffer exposed by the memoryview object."); PyDoc_STRVAR(memory_tobytes_doc, -"tobytes($self, /, order=None)\n--\n\ +"tobytes($self, order=None)\n--\n\ \n\ Return the data in the buffer as a byte string. Order can be {'C', 'F', 'A'}.\n\ When order is 'C' or 'F', the data of the original array is converted to C or\n\ @@ -3091,19 +3091,19 @@ Fortran order. For contiguous views, 'A' returns an exact copy of the physical\n memory. In particular, in-memory Fortran order is preserved. For non-contiguous\n\ views, the data is converted to C first. order=None is the same as order='C'."); PyDoc_STRVAR(memory_hex_doc, -"hex($self, /)\n--\n\ +"hex($self)\n--\n\ \n\ Return the data in the buffer as a string of hexadecimal numbers."); PyDoc_STRVAR(memory_tolist_doc, -"tolist($self, /)\n--\n\ +"tolist($self)\n--\n\ \n\ Return the data in the buffer as a list of elements."); PyDoc_STRVAR(memory_cast_doc, -"cast($self, /, format, *, shape)\n--\n\ +"cast($self, format, *, shape)\n--\n\ \n\ Cast a memoryview to a new format or shape."); PyDoc_STRVAR(memory_toreadonly_doc, -"toreadonly($self, /)\n--\n\ +"toreadonly($self)\n--\n\ \n\ Return a readonly version of the memoryview."); diff --git a/Objects/stringlib/clinic/transmogrify.h.h b/Objects/stringlib/clinic/transmogrify.h.h index 0c53a75b1bf834..f5da66cc85a0ce 100644 --- a/Objects/stringlib/clinic/transmogrify.h.h +++ b/Objects/stringlib/clinic/transmogrify.h.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(stringlib_expandtabs__doc__, -"expandtabs($self, /, tabsize=8)\n" +"expandtabs($self, tabsize=8)\n" "--\n" "\n" "Return a copy where all tab characters are expanded using spaces.\n" @@ -50,7 +50,7 @@ stringlib_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, Py } PyDoc_STRVAR(stringlib_ljust__doc__, -"ljust($self, width, fillchar=b\' \', /)\n" +"ljust($self, __width, __fillchar=b\' \')\n" "--\n" "\n" "Return a left-justified string of length width.\n" @@ -111,7 +111,7 @@ stringlib_ljust(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(stringlib_rjust__doc__, -"rjust($self, width, fillchar=b\' \', /)\n" +"rjust($self, __width, __fillchar=b\' \')\n" "--\n" "\n" "Return a right-justified string of length width.\n" @@ -172,7 +172,7 @@ stringlib_rjust(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(stringlib_center__doc__, -"center($self, width, fillchar=b\' \', /)\n" +"center($self, __width, __fillchar=b\' \')\n" "--\n" "\n" "Return a centered string of length width.\n" @@ -233,7 +233,7 @@ stringlib_center(PyObject *self, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(stringlib_zfill__doc__, -"zfill($self, width, /)\n" +"zfill($self, __width)\n" "--\n" "\n" "Pad a numeric string with zeros on the left, to fill a field of the given width.\n" @@ -274,4 +274,4 @@ stringlib_zfill(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=96cbb19b238d0e84 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=67f04933a67c05fd input=a9049054013a1b77]*/ diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 4c3909c098c411..c3851e6e26c33c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6897,22 +6897,22 @@ typedef struct wrapperbase slotdef; ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, DOC) #define UNSLOT(NAME, SLOT, FUNCTION, WRAPPER, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, \ - NAME "($self, /)\n--\n\n" DOC) + NAME "($self)\n--\n\n" DOC) #define IBSLOT(NAME, SLOT, FUNCTION, WRAPPER, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, WRAPPER, \ - NAME "($self, value, /)\n--\n\nReturn self" DOC "value.") + NAME "($self, __value)\n--\n\nReturn self" DOC "value.") #define BINSLOT(NAME, SLOT, FUNCTION, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \ - NAME "($self, value, /)\n--\n\nReturn self" DOC "value.") + NAME "($self, __value)\n--\n\nReturn self" DOC "value.") #define RBINSLOT(NAME, SLOT, FUNCTION, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_r, \ - NAME "($self, value, /)\n--\n\nReturn value" DOC "self.") + NAME "($self, __value)\n--\n\nReturn value" DOC "self.") #define BINSLOTNOTINFIX(NAME, SLOT, FUNCTION, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_l, \ - NAME "($self, value, /)\n--\n\n" DOC) + NAME "($self, __value)\n--\n\n" DOC) #define RBINSLOTNOTINFIX(NAME, SLOT, FUNCTION, DOC) \ ETSLOT(NAME, as_number.SLOT, FUNCTION, wrap_binaryfunc_r, \ - NAME "($self, value, /)\n--\n\n" DOC) + NAME "($self, __value)\n--\n\n" DOC) static slotdef slotdefs[] = { TPSLOT("__getattribute__", tp_getattr, NULL, NULL, ""), @@ -6920,60 +6920,60 @@ static slotdef slotdefs[] = { TPSLOT("__setattr__", tp_setattr, NULL, NULL, ""), TPSLOT("__delattr__", tp_setattr, NULL, NULL, ""), TPSLOT("__repr__", tp_repr, slot_tp_repr, wrap_unaryfunc, - "__repr__($self, /)\n--\n\nReturn repr(self)."), + "__repr__($self)\n--\n\nReturn repr(self)."), TPSLOT("__hash__", tp_hash, slot_tp_hash, wrap_hashfunc, - "__hash__($self, /)\n--\n\nReturn hash(self)."), + "__hash__($self)\n--\n\nReturn hash(self)."), FLSLOT("__call__", tp_call, slot_tp_call, (wrapperfunc)(void(*)(void))wrap_call, - "__call__($self, /, *args, **kwargs)\n--\n\nCall self as a function.", + "__call__($self, *args, **kwargs)\n--\n\nCall self as a function.", PyWrapperFlag_KEYWORDS), TPSLOT("__str__", tp_str, slot_tp_str, wrap_unaryfunc, - "__str__($self, /)\n--\n\nReturn str(self)."), + "__str__($self)\n--\n\nReturn str(self)."), TPSLOT("__getattribute__", tp_getattro, slot_tp_getattr_hook, wrap_binaryfunc, - "__getattribute__($self, name, /)\n--\n\nReturn getattr(self, name)."), + "__getattribute__($self, __name)\n--\n\nReturn getattr(self, name)."), TPSLOT("__getattr__", tp_getattro, slot_tp_getattr_hook, NULL, ""), TPSLOT("__setattr__", tp_setattro, slot_tp_setattro, wrap_setattr, - "__setattr__($self, name, value, /)\n--\n\nImplement setattr(self, name, value)."), + "__setattr__($self, __name, __value)\n--\n\nImplement setattr(self, name, value)."), TPSLOT("__delattr__", tp_setattro, slot_tp_setattro, wrap_delattr, - "__delattr__($self, name, /)\n--\n\nImplement delattr(self, name)."), + "__delattr__($self, __name)\n--\n\nImplement delattr(self, name)."), TPSLOT("__lt__", tp_richcompare, slot_tp_richcompare, richcmp_lt, - "__lt__($self, value, /)\n--\n\nReturn selfvalue."), + "__gt__($self, __value)\n--\n\nReturn self>value."), TPSLOT("__ge__", tp_richcompare, slot_tp_richcompare, richcmp_ge, - "__ge__($self, value, /)\n--\n\nReturn self>=value."), + "__ge__($self, __value)\n--\n\nReturn self>=value."), TPSLOT("__iter__", tp_iter, slot_tp_iter, wrap_unaryfunc, - "__iter__($self, /)\n--\n\nImplement iter(self)."), + "__iter__($self)\n--\n\nImplement iter(self)."), TPSLOT("__next__", tp_iternext, slot_tp_iternext, wrap_next, - "__next__($self, /)\n--\n\nImplement next(self)."), + "__next__($self)\n--\n\nImplement next(self)."), TPSLOT("__get__", tp_descr_get, slot_tp_descr_get, wrap_descr_get, - "__get__($self, instance, owner, /)\n--\n\nReturn an attribute of instance, which is of type owner."), + "__get__($self, __instance, __owner)\n--\n\nReturn an attribute of instance, which is of type owner."), TPSLOT("__set__", tp_descr_set, slot_tp_descr_set, wrap_descr_set, - "__set__($self, instance, value, /)\n--\n\nSet an attribute of instance to value."), + "__set__($self, __instance, __value)\n--\n\nSet an attribute of instance to value."), TPSLOT("__delete__", tp_descr_set, slot_tp_descr_set, wrap_descr_delete, - "__delete__($self, instance, /)\n--\n\nDelete an attribute of instance."), + "__delete__($self, __instance)\n--\n\nDelete an attribute of instance."), FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)(void(*)(void))wrap_init, - "__init__($self, /, *args, **kwargs)\n--\n\n" + "__init__($self, *args, **kwargs)\n--\n\n" "Initialize self. See help(type(self)) for accurate signature.", PyWrapperFlag_KEYWORDS), TPSLOT("__new__", tp_new, slot_tp_new, NULL, - "__new__(type, /, *args, **kwargs)\n--\n\n" + "__new__(__type, *args, **kwargs)\n--\n\n" "Create and return new object. See help(type) for accurate signature."), TPSLOT("__del__", tp_finalize, slot_tp_finalize, (wrapperfunc)wrap_del, ""), AMSLOT("__await__", am_await, slot_am_await, wrap_unaryfunc, - "__await__($self, /)\n--\n\nReturn an iterator to be used in await expression."), + "__await__($self)\n--\n\nReturn an iterator to be used in await expression."), AMSLOT("__aiter__", am_aiter, slot_am_aiter, wrap_unaryfunc, - "__aiter__($self, /)\n--\n\nReturn an awaitable, that resolves in asynchronous iterator."), + "__aiter__($self)\n--\n\nReturn an awaitable, that resolves in asynchronous iterator."), AMSLOT("__anext__", am_anext, slot_am_anext, wrap_unaryfunc, - "__anext__($self, /)\n--\n\nReturn a value or raise StopAsyncIteration."), + "__anext__($self)\n--\n\nReturn a value or raise StopAsyncIteration."), BINSLOT("__add__", nb_add, slot_nb_add, "+"), @@ -6996,9 +6996,9 @@ static slotdef slotdefs[] = { RBINSLOTNOTINFIX("__rdivmod__", nb_divmod, slot_nb_divmod, "Return divmod(value, self)."), NBSLOT("__pow__", nb_power, slot_nb_power, wrap_ternaryfunc, - "__pow__($self, value, mod=None, /)\n--\n\nReturn pow(self, value, mod)."), + "__pow__($self, __value, __mod=None)\n--\n\nReturn pow(self, value, mod)."), NBSLOT("__rpow__", nb_power, slot_nb_power, wrap_ternaryfunc_r, - "__rpow__($self, value, mod=None, /)\n--\n\nReturn pow(value, self, mod)."), + "__rpow__($self, __value, __mod=None)\n--\n\nReturn pow(value, self, mod)."), UNSLOT("__neg__", nb_negative, slot_nb_negative, wrap_unaryfunc, "-self"), UNSLOT("__pos__", nb_positive, slot_nb_positive, wrap_unaryfunc, "+self"), UNSLOT("__abs__", nb_absolute, slot_nb_absolute, wrap_unaryfunc, @@ -7049,7 +7049,7 @@ static slotdef slotdefs[] = { IBSLOT("__itruediv__", nb_inplace_true_divide, slot_nb_inplace_true_divide, wrap_binaryfunc, "/="), NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc, - "__index__($self, /)\n--\n\n" + "__index__($self)\n--\n\n" "Return self converted to an integer, if self is suitable " "for use as an index into a list."), BINSLOT("__matmul__", nb_matrix_multiply, slot_nb_matrix_multiply, @@ -7059,44 +7059,44 @@ static slotdef slotdefs[] = { IBSLOT("__imatmul__", nb_inplace_matrix_multiply, slot_nb_inplace_matrix_multiply, wrap_binaryfunc, "@="), MPSLOT("__len__", mp_length, slot_mp_length, wrap_lenfunc, - "__len__($self, /)\n--\n\nReturn len(self)."), + "__len__($self)\n--\n\nReturn len(self)."), MPSLOT("__getitem__", mp_subscript, slot_mp_subscript, wrap_binaryfunc, - "__getitem__($self, key, /)\n--\n\nReturn self[key]."), + "__getitem__($self, __key)\n--\n\nReturn self[key]."), MPSLOT("__setitem__", mp_ass_subscript, slot_mp_ass_subscript, wrap_objobjargproc, - "__setitem__($self, key, value, /)\n--\n\nSet self[key] to value."), + "__setitem__($self, __key, __value)\n--\n\nSet self[key] to value."), MPSLOT("__delitem__", mp_ass_subscript, slot_mp_ass_subscript, wrap_delitem, - "__delitem__($self, key, /)\n--\n\nDelete self[key]."), + "__delitem__($self, __key)\n--\n\nDelete self[key]."), SQSLOT("__len__", sq_length, slot_sq_length, wrap_lenfunc, - "__len__($self, /)\n--\n\nReturn len(self)."), + "__len__($self)\n--\n\nReturn len(self)."), /* Heap types defining __add__/__mul__ have sq_concat/sq_repeat == NULL. The logic in abstract.c always falls back to nb_add/nb_multiply in this case. Defining both the nb_* and the sq_* slots to call the user-defined methods has unexpected side-effects, as shown by test_descr.notimplemented() */ SQSLOT("__add__", sq_concat, NULL, wrap_binaryfunc, - "__add__($self, value, /)\n--\n\nReturn self+value."), + "__add__($self, __value)\n--\n\nReturn self+value."), SQSLOT("__mul__", sq_repeat, NULL, wrap_indexargfunc, - "__mul__($self, value, /)\n--\n\nReturn self*value."), + "__mul__($self, __value)\n--\n\nReturn self*value."), SQSLOT("__rmul__", sq_repeat, NULL, wrap_indexargfunc, - "__rmul__($self, value, /)\n--\n\nReturn value*self."), + "__rmul__($self, __value)\n--\n\nReturn value*self."), SQSLOT("__getitem__", sq_item, slot_sq_item, wrap_sq_item, - "__getitem__($self, key, /)\n--\n\nReturn self[key]."), + "__getitem__($self, __key)\n--\n\nReturn self[key]."), SQSLOT("__setitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_setitem, - "__setitem__($self, key, value, /)\n--\n\nSet self[key] to value."), + "__setitem__($self, __key, __value)\n--\n\nSet self[key] to value."), SQSLOT("__delitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_delitem, - "__delitem__($self, key, /)\n--\n\nDelete self[key]."), + "__delitem__($self, __key)\n--\n\nDelete self[key]."), SQSLOT("__contains__", sq_contains, slot_sq_contains, wrap_objobjproc, - "__contains__($self, key, /)\n--\n\nReturn key in self."), + "__contains__($self, __key)\n--\n\nReturn key in self."), SQSLOT("__iadd__", sq_inplace_concat, NULL, wrap_binaryfunc, - "__iadd__($self, value, /)\n--\n\nImplement self+=value."), + "__iadd__($self, __value)\n--\n\nImplement self+=value."), SQSLOT("__imul__", sq_inplace_repeat, NULL, wrap_indexargfunc, - "__imul__($self, value, /)\n--\n\nImplement self*=value."), + "__imul__($self, __value)\n--\n\nImplement self*=value."), {NULL} }; diff --git a/PC/clinic/_testconsole.c.h b/PC/clinic/_testconsole.c.h index a37d1235a02a9e..26425eae4934e7 100644 --- a/PC/clinic/_testconsole.c.h +++ b/PC/clinic/_testconsole.c.h @@ -5,7 +5,7 @@ preserve #if defined(MS_WINDOWS) PyDoc_STRVAR(_testconsole_write_input__doc__, -"write_input($module, /, file, s)\n" +"write_input($module, file, s)\n" "--\n" "\n" "Writes UTF-16-LE encoded bytes to the console as if typed by a user."); @@ -48,7 +48,7 @@ _testconsole_write_input(PyObject *module, PyObject *const *args, Py_ssize_t nar #if defined(MS_WINDOWS) PyDoc_STRVAR(_testconsole_read_output__doc__, -"read_output($module, /, file)\n" +"read_output($module, file)\n" "--\n" "\n" "Reads a str from the console as written to stdout."); @@ -88,4 +88,4 @@ _testconsole_read_output(PyObject *module, PyObject *const *args, Py_ssize_t nar #ifndef _TESTCONSOLE_READ_OUTPUT_METHODDEF #define _TESTCONSOLE_READ_OUTPUT_METHODDEF #endif /* !defined(_TESTCONSOLE_READ_OUTPUT_METHODDEF) */ -/*[clinic end generated code: output=ef452d5fb9287fc2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=19f7fb593e4aac35 input=a9049054013a1b77]*/ diff --git a/PC/clinic/msvcrtmodule.c.h b/PC/clinic/msvcrtmodule.c.h index d8e77d5f328dda..edc7c415327247 100644 --- a/PC/clinic/msvcrtmodule.c.h +++ b/PC/clinic/msvcrtmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(msvcrt_heapmin__doc__, -"heapmin($module, /)\n" +"heapmin($module)\n" "--\n" "\n" "Minimize the malloc() heap.\n" @@ -24,7 +24,7 @@ msvcrt_heapmin(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(msvcrt_locking__doc__, -"locking($module, fd, mode, nbytes, /)\n" +"locking($module, __fd, __mode, __nbytes)\n" "--\n" "\n" "Lock part of a file based on file descriptor fd from the C runtime.\n" @@ -87,7 +87,7 @@ msvcrt_locking(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(msvcrt_setmode__doc__, -"setmode($module, fd, mode, /)\n" +"setmode($module, __fd, __mode)\n" "--\n" "\n" "Set the line-end translation mode for the file descriptor fd.\n" @@ -143,7 +143,7 @@ msvcrt_setmode(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(msvcrt_open_osfhandle__doc__, -"open_osfhandle($module, handle, flags, /)\n" +"open_osfhandle($module, __handle, __flags)\n" "--\n" "\n" "Create a C runtime file descriptor from the file handle handle.\n" @@ -181,7 +181,7 @@ msvcrt_open_osfhandle(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(msvcrt_get_osfhandle__doc__, -"get_osfhandle($module, fd, /)\n" +"get_osfhandle($module, __fd)\n" "--\n" "\n" "Return the file handle for the file descriptor fd.\n" @@ -221,7 +221,7 @@ msvcrt_get_osfhandle(PyObject *module, PyObject *arg) } PyDoc_STRVAR(msvcrt_kbhit__doc__, -"kbhit($module, /)\n" +"kbhit($module)\n" "--\n" "\n" "Return true if a keypress is waiting to be read."); @@ -249,7 +249,7 @@ msvcrt_kbhit(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(msvcrt_getch__doc__, -"getch($module, /)\n" +"getch($module)\n" "--\n" "\n" "Read a keypress and return the resulting character as a byte string.\n" @@ -279,7 +279,7 @@ msvcrt_getch(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(msvcrt_getwch__doc__, -"getwch($module, /)\n" +"getwch($module)\n" "--\n" "\n" "Wide char variant of getch(), returning a Unicode value."); @@ -303,7 +303,7 @@ msvcrt_getwch(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(msvcrt_getche__doc__, -"getche($module, /)\n" +"getche($module)\n" "--\n" "\n" "Similar to getch(), but the keypress will be echoed if possible."); @@ -327,7 +327,7 @@ msvcrt_getche(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(msvcrt_getwche__doc__, -"getwche($module, /)\n" +"getwche($module)\n" "--\n" "\n" "Wide char variant of getche(), returning a Unicode value."); @@ -351,7 +351,7 @@ msvcrt_getwche(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(msvcrt_putch__doc__, -"putch($module, char, /)\n" +"putch($module, __char)\n" "--\n" "\n" "Print the byte string char to the console without buffering."); @@ -385,7 +385,7 @@ msvcrt_putch(PyObject *module, PyObject *arg) } PyDoc_STRVAR(msvcrt_putwch__doc__, -"putwch($module, unicode_char, /)\n" +"putwch($module, __unicode_char)\n" "--\n" "\n" "Wide char variant of putch(), accepting a Unicode value."); @@ -421,7 +421,7 @@ msvcrt_putwch(PyObject *module, PyObject *arg) } PyDoc_STRVAR(msvcrt_ungetch__doc__, -"ungetch($module, char, /)\n" +"ungetch($module, __char)\n" "--\n" "\n" "Opposite of getch.\n" @@ -459,7 +459,7 @@ msvcrt_ungetch(PyObject *module, PyObject *arg) } PyDoc_STRVAR(msvcrt_ungetwch__doc__, -"ungetwch($module, unicode_char, /)\n" +"ungetwch($module, __unicode_char)\n" "--\n" "\n" "Wide char variant of ungetch(), accepting a Unicode value."); @@ -497,7 +497,7 @@ msvcrt_ungetwch(PyObject *module, PyObject *arg) #if defined(_DEBUG) PyDoc_STRVAR(msvcrt_CrtSetReportFile__doc__, -"CrtSetReportFile($module, type, file, /)\n" +"CrtSetReportFile($module, __type, __file)\n" "--\n" "\n" "Wrapper around _CrtSetReportFile.\n" @@ -537,7 +537,7 @@ msvcrt_CrtSetReportFile(PyObject *module, PyObject *const *args, Py_ssize_t narg #if defined(_DEBUG) PyDoc_STRVAR(msvcrt_CrtSetReportMode__doc__, -"CrtSetReportMode($module, type, mode, /)\n" +"CrtSetReportMode($module, __type, __mode)\n" "--\n" "\n" "Wrapper around _CrtSetReportMode.\n" @@ -594,7 +594,7 @@ msvcrt_CrtSetReportMode(PyObject *module, PyObject *const *args, Py_ssize_t narg #if defined(_DEBUG) PyDoc_STRVAR(msvcrt_set_error_mode__doc__, -"set_error_mode($module, mode, /)\n" +"set_error_mode($module, __mode)\n" "--\n" "\n" "Wrapper around _set_error_mode.\n" @@ -636,7 +636,7 @@ msvcrt_set_error_mode(PyObject *module, PyObject *arg) #endif /* defined(_DEBUG) */ PyDoc_STRVAR(msvcrt_SetErrorMode__doc__, -"SetErrorMode($module, mode, /)\n" +"SetErrorMode($module, __mode)\n" "--\n" "\n" "Wrapper around SetErrorMode."); @@ -679,4 +679,4 @@ msvcrt_SetErrorMode(PyObject *module, PyObject *arg) #ifndef MSVCRT_SET_ERROR_MODE_METHODDEF #define MSVCRT_SET_ERROR_MODE_METHODDEF #endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */ -/*[clinic end generated code: output=816bc4f993893cea input=a9049054013a1b77]*/ +/*[clinic end generated code: output=d6bdb3d4ff5b2868 input=a9049054013a1b77]*/ diff --git a/PC/clinic/winreg.c.h b/PC/clinic/winreg.c.h index 50210250ed1967..b0230d964bc233 100644 --- a/PC/clinic/winreg.c.h +++ b/PC/clinic/winreg.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(winreg_HKEYType_Close__doc__, -"Close($self, /)\n" +"Close($self)\n" "--\n" "\n" "Closes the underlying Windows handle.\n" @@ -23,7 +23,7 @@ winreg_HKEYType_Close(PyHKEYObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(winreg_HKEYType_Detach__doc__, -"Detach($self, /)\n" +"Detach($self)\n" "--\n" "\n" "Detaches the Windows handle from the handle object.\n" @@ -49,7 +49,7 @@ winreg_HKEYType_Detach(PyHKEYObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(winreg_HKEYType___enter____doc__, -"__enter__($self, /)\n" +"__enter__($self)\n" "--\n" "\n"); @@ -72,7 +72,7 @@ winreg_HKEYType___enter__(PyHKEYObject *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(winreg_HKEYType___exit____doc__, -"__exit__($self, /, exc_type, exc_value, traceback)\n" +"__exit__($self, exc_type, exc_value, traceback)\n" "--\n" "\n"); @@ -108,7 +108,7 @@ winreg_HKEYType___exit__(PyHKEYObject *self, PyObject *const *args, Py_ssize_t n } PyDoc_STRVAR(winreg_CloseKey__doc__, -"CloseKey($module, hkey, /)\n" +"CloseKey($module, __hkey)\n" "--\n" "\n" "Closes a previously opened registry key.\n" @@ -123,7 +123,7 @@ PyDoc_STRVAR(winreg_CloseKey__doc__, {"CloseKey", (PyCFunction)winreg_CloseKey, METH_O, winreg_CloseKey__doc__}, PyDoc_STRVAR(winreg_ConnectRegistry__doc__, -"ConnectRegistry($module, computer_name, key, /)\n" +"ConnectRegistry($module, __computer_name, __key)\n" "--\n" "\n" "Establishes a connection to the registry on another computer.\n" @@ -167,7 +167,7 @@ winreg_ConnectRegistry(PyObject *module, PyObject *const *args, Py_ssize_t nargs } PyDoc_STRVAR(winreg_CreateKey__doc__, -"CreateKey($module, key, sub_key, /)\n" +"CreateKey($module, __key, __sub_key)\n" "--\n" "\n" "Creates or opens the specified key.\n" @@ -214,8 +214,7 @@ winreg_CreateKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_CreateKeyEx__doc__, -"CreateKeyEx($module, /, key, sub_key, reserved=0,\n" -" access=winreg.KEY_WRITE)\n" +"CreateKeyEx($module, key, sub_key, reserved=0, access=winreg.KEY_WRITE)\n" "--\n" "\n" "Creates or opens the specified key.\n" @@ -273,7 +272,7 @@ winreg_CreateKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py } PyDoc_STRVAR(winreg_DeleteKey__doc__, -"DeleteKey($module, key, sub_key, /)\n" +"DeleteKey($module, __key, __sub_key)\n" "--\n" "\n" "Deletes the specified key.\n" @@ -314,7 +313,7 @@ winreg_DeleteKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_DeleteKeyEx__doc__, -"DeleteKeyEx($module, /, key, sub_key, access=winreg.KEY_WOW64_64KEY,\n" +"DeleteKeyEx($module, key, sub_key, access=winreg.KEY_WOW64_64KEY,\n" " reserved=0)\n" "--\n" "\n" @@ -368,7 +367,7 @@ winreg_DeleteKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py } PyDoc_STRVAR(winreg_DeleteValue__doc__, -"DeleteValue($module, key, value, /)\n" +"DeleteValue($module, __key, __value)\n" "--\n" "\n" "Removes a named value from a registry key.\n" @@ -402,7 +401,7 @@ winreg_DeleteValue(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_EnumKey__doc__, -"EnumKey($module, key, index, /)\n" +"EnumKey($module, __key, __index)\n" "--\n" "\n" "Enumerates subkeys of an open registry key.\n" @@ -451,7 +450,7 @@ winreg_EnumKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_EnumValue__doc__, -"EnumValue($module, key, index, /)\n" +"EnumValue($module, __key, __index)\n" "--\n" "\n" "Enumerates values of an open registry key.\n" @@ -509,7 +508,7 @@ winreg_EnumValue(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_ExpandEnvironmentStrings__doc__, -"ExpandEnvironmentStrings($module, string, /)\n" +"ExpandEnvironmentStrings($module, __string)\n" "--\n" "\n" "Expand environment vars."); @@ -537,7 +536,7 @@ winreg_ExpandEnvironmentStrings(PyObject *module, PyObject *arg) } PyDoc_STRVAR(winreg_FlushKey__doc__, -"FlushKey($module, key, /)\n" +"FlushKey($module, __key)\n" "--\n" "\n" "Writes all the attributes of a key to the registry.\n" @@ -577,7 +576,7 @@ winreg_FlushKey(PyObject *module, PyObject *arg) } PyDoc_STRVAR(winreg_LoadKey__doc__, -"LoadKey($module, key, sub_key, file_name, /)\n" +"LoadKey($module, __key, __sub_key, __file_name)\n" "--\n" "\n" "Insert data into the registry from a file.\n" @@ -630,7 +629,7 @@ winreg_LoadKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_OpenKey__doc__, -"OpenKey($module, /, key, sub_key, reserved=0, access=winreg.KEY_READ)\n" +"OpenKey($module, key, sub_key, reserved=0, access=winreg.KEY_READ)\n" "--\n" "\n" "Opens the specified key.\n" @@ -682,7 +681,7 @@ winreg_OpenKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje } PyDoc_STRVAR(winreg_OpenKeyEx__doc__, -"OpenKeyEx($module, /, key, sub_key, reserved=0, access=winreg.KEY_READ)\n" +"OpenKeyEx($module, key, sub_key, reserved=0, access=winreg.KEY_READ)\n" "--\n" "\n" "Opens the specified key.\n" @@ -734,7 +733,7 @@ winreg_OpenKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb } PyDoc_STRVAR(winreg_QueryInfoKey__doc__, -"QueryInfoKey($module, key, /)\n" +"QueryInfoKey($module, __key)\n" "--\n" "\n" "Returns information about a key.\n" @@ -770,7 +769,7 @@ winreg_QueryInfoKey(PyObject *module, PyObject *arg) } PyDoc_STRVAR(winreg_QueryValue__doc__, -"QueryValue($module, key, sub_key, /)\n" +"QueryValue($module, __key, __sub_key)\n" "--\n" "\n" "Retrieves the unnamed value for a key.\n" @@ -813,7 +812,7 @@ winreg_QueryValue(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_QueryValueEx__doc__, -"QueryValueEx($module, key, name, /)\n" +"QueryValueEx($module, __key, __name)\n" "--\n" "\n" "Retrieves the type and value of a specified sub-key.\n" @@ -852,7 +851,7 @@ winreg_QueryValueEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_SaveKey__doc__, -"SaveKey($module, key, file_name, /)\n" +"SaveKey($module, __key, __file_name)\n" "--\n" "\n" "Saves the specified key, and all its subkeys to the specified file.\n" @@ -896,7 +895,7 @@ winreg_SaveKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_SetValue__doc__, -"SetValue($module, key, sub_key, type, value, /)\n" +"SetValue($module, __key, __sub_key, __type, __value)\n" "--\n" "\n" "Associates a value with a specified key.\n" @@ -950,7 +949,7 @@ winreg_SetValue(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_SetValueEx__doc__, -"SetValueEx($module, key, value_name, reserved, type, value, /)\n" +"SetValueEx($module, __key, __value_name, __reserved, __type, __value)\n" "--\n" "\n" "Stores data in the value field of an open registry key.\n" @@ -1021,7 +1020,7 @@ winreg_SetValueEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(winreg_DisableReflectionKey__doc__, -"DisableReflectionKey($module, key, /)\n" +"DisableReflectionKey($module, __key)\n" "--\n" "\n" "Disables registry reflection for 32bit processes running on a 64bit OS.\n" @@ -1057,7 +1056,7 @@ winreg_DisableReflectionKey(PyObject *module, PyObject *arg) } PyDoc_STRVAR(winreg_EnableReflectionKey__doc__, -"EnableReflectionKey($module, key, /)\n" +"EnableReflectionKey($module, __key)\n" "--\n" "\n" "Restores registry reflection for the specified disabled key.\n" @@ -1091,7 +1090,7 @@ winreg_EnableReflectionKey(PyObject *module, PyObject *arg) } PyDoc_STRVAR(winreg_QueryReflectionKey__doc__, -"QueryReflectionKey($module, key, /)\n" +"QueryReflectionKey($module, __key)\n" "--\n" "\n" "Returns the reflection state for the specified key as a bool.\n" @@ -1121,4 +1120,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=1204d20c543b5b4a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=8cbf7bf223fb59a0 input=a9049054013a1b77]*/ diff --git a/PC/clinic/winsound.c.h b/PC/clinic/winsound.c.h index b37db4c6cbc492..3463b0bce939e5 100644 --- a/PC/clinic/winsound.c.h +++ b/PC/clinic/winsound.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(winsound_PlaySound__doc__, -"PlaySound($module, /, sound, flags)\n" +"PlaySound($module, sound, flags)\n" "--\n" "\n" "A wrapper around the Windows PlaySound API.\n" @@ -50,7 +50,7 @@ winsound_PlaySound(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py } PyDoc_STRVAR(winsound_Beep__doc__, -"Beep($module, /, frequency, duration)\n" +"Beep($module, frequency, duration)\n" "--\n" "\n" "A wrapper around the Windows Beep API.\n" @@ -106,7 +106,7 @@ winsound_Beep(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec } PyDoc_STRVAR(winsound_MessageBeep__doc__, -"MessageBeep($module, /, type=MB_OK)\n" +"MessageBeep($module, type=MB_OK)\n" "--\n" "\n" "Call Windows MessageBeep(x).\n" @@ -151,4 +151,4 @@ winsound_MessageBeep(PyObject *module, PyObject *const *args, Py_ssize_t nargs, exit: return return_value; } -/*[clinic end generated code: output=28d1cd033282723d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7b97be1f78165787 input=a9049054013a1b77]*/ diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 7a2b259cbd89c8..9fdf00015fd883 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2222,7 +2222,7 @@ reverse flag can be set to request the result in descending order. [end disabled clinic input]*/ PyDoc_STRVAR(builtin_sorted__doc__, -"sorted($module, iterable, /, *, key=None, reverse=False)\n" +"sorted($module, __iterable, *, key=None, reverse=False)\n" "--\n" "\n" "Return a new list containing all items from the iterable in ascending order.\n" diff --git a/Python/ceval.c b/Python/ceval.c index 28e923219d389c..ec18aa75ca3b43 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3764,6 +3764,16 @@ too_many_positional(PyCodeObject *co, Py_ssize_t given, Py_ssize_t defcount, Py_DECREF(kwonly_sig); } +/* Check if the name starts from the double underscores. */ + +static int +is_dunder(PyObject *name) +{ + return (PyUnicode_GET_LENGTH(name) >= 2 + && PyUnicode_READ_CHAR(name, 0) == '_' + && PyUnicode_READ_CHAR(name, 1) == '_'); +} + /* This is gonna seem *real weird*, but if you put some other code between PyEval_EvalFrame() and _PyEval_EvalFrameDefault() you will need to adjust the test in the if statements in Misc/gdbinit (pystack and pystackv). */ @@ -3855,29 +3865,31 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals, goto fail; } - /* Speed hack: do raw pointer compares. As names are - normally interned this should almost always hit. */ - co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; - for (j = 0; j < total_args; j++) { - PyObject *name = co_varnames[j]; - if (name == keyword) { - goto kw_found; + if (!is_dunder(keyword)) { + /* Speed hack: do raw pointer compares. As names are + normally interned this should almost always hit. */ + co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; + for (j = 0; j < total_args; j++) { + PyObject *name = co_varnames[j]; + if (name == keyword) { + goto kw_found; + } } - } - /* Slow fallback, just in case */ - for (j = 0; j < total_args; j++) { - PyObject *name = co_varnames[j]; - int cmp = PyObject_RichCompareBool( keyword, name, Py_EQ); - if (cmp > 0) { - goto kw_found; - } - else if (cmp < 0) { - goto fail; + /* Slow fallback, just in case */ + for (j = 0; j < total_args; j++) { + PyObject *name = co_varnames[j]; + int cmp = PyObject_RichCompareBool( keyword, name, Py_EQ); + if (cmp > 0) { + goto kw_found; + } + else if (cmp < 0) { + goto fail; + } } + assert(j >= total_args); } - assert(j >= total_args); if (kwdict == NULL) { PyErr_Format(PyExc_TypeError, "%U() got an unexpected keyword argument '%S'", diff --git a/Python/clinic/_warnings.c.h b/Python/clinic/_warnings.c.h index 67ab0e3d9de525..a6a1f88bd2dbe5 100644 --- a/Python/clinic/_warnings.c.h +++ b/Python/clinic/_warnings.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(warnings_warn__doc__, -"warn($module, /, message, category=None, stacklevel=1, source=None)\n" +"warn($module, message, category=None, stacklevel=1, source=None)\n" "--\n" "\n" "Issue a warning, or maybe ignore it or raise an exception."); @@ -71,4 +71,4 @@ warnings_warn(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec exit: return return_value; } -/*[clinic end generated code: output=b7bb54c73b5433ec input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e2e813fa8a69f05a input=a9049054013a1b77]*/ diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index 0ed11bceeb87e2..40b54a90169c01 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(builtin_abs__doc__, -"abs($module, x, /)\n" +"abs($module, __x)\n" "--\n" "\n" "Return the absolute value of the argument."); @@ -12,7 +12,7 @@ PyDoc_STRVAR(builtin_abs__doc__, {"abs", (PyCFunction)builtin_abs, METH_O, builtin_abs__doc__}, PyDoc_STRVAR(builtin_all__doc__, -"all($module, iterable, /)\n" +"all($module, __iterable)\n" "--\n" "\n" "Return True if bool(x) is True for all values x in the iterable.\n" @@ -23,7 +23,7 @@ PyDoc_STRVAR(builtin_all__doc__, {"all", (PyCFunction)builtin_all, METH_O, builtin_all__doc__}, PyDoc_STRVAR(builtin_any__doc__, -"any($module, iterable, /)\n" +"any($module, __iterable)\n" "--\n" "\n" "Return True if bool(x) is True for any x in the iterable.\n" @@ -34,7 +34,7 @@ PyDoc_STRVAR(builtin_any__doc__, {"any", (PyCFunction)builtin_any, METH_O, builtin_any__doc__}, PyDoc_STRVAR(builtin_ascii__doc__, -"ascii($module, obj, /)\n" +"ascii($module, __obj)\n" "--\n" "\n" "Return an ASCII-only representation of an object.\n" @@ -48,7 +48,7 @@ PyDoc_STRVAR(builtin_ascii__doc__, {"ascii", (PyCFunction)builtin_ascii, METH_O, builtin_ascii__doc__}, PyDoc_STRVAR(builtin_bin__doc__, -"bin($module, number, /)\n" +"bin($module, __number)\n" "--\n" "\n" "Return the binary representation of an integer.\n" @@ -60,7 +60,7 @@ PyDoc_STRVAR(builtin_bin__doc__, {"bin", (PyCFunction)builtin_bin, METH_O, builtin_bin__doc__}, PyDoc_STRVAR(builtin_callable__doc__, -"callable($module, obj, /)\n" +"callable($module, __obj)\n" "--\n" "\n" "Return whether the object is callable (i.e., some kind of function).\n" @@ -72,7 +72,7 @@ PyDoc_STRVAR(builtin_callable__doc__, {"callable", (PyCFunction)builtin_callable, METH_O, builtin_callable__doc__}, PyDoc_STRVAR(builtin_format__doc__, -"format($module, value, format_spec=\'\', /)\n" +"format($module, __value, __format_spec=\'\')\n" "--\n" "\n" "Return value.__format__(format_spec)\n" @@ -117,7 +117,7 @@ builtin_format(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_chr__doc__, -"chr($module, i, /)\n" +"chr($module, __i)\n" "--\n" "\n" "Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff."); @@ -150,8 +150,8 @@ builtin_chr(PyObject *module, PyObject *arg) } PyDoc_STRVAR(builtin_compile__doc__, -"compile($module, /, source, filename, mode, flags=0,\n" -" dont_inherit=False, optimize=-1, feature_version=-1)\n" +"compile($module, source, filename, mode, flags=0, dont_inherit=False,\n" +" optimize=-1, feature_version=-1)\n" "--\n" "\n" "Compile source into a code object that can be executed by exec() or eval().\n" @@ -274,7 +274,7 @@ builtin_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj } PyDoc_STRVAR(builtin_divmod__doc__, -"divmod($module, x, y, /)\n" +"divmod($module, __x, __y)\n" "--\n" "\n" "Return the tuple (x//y, x%y). Invariant: div*y + mod == x."); @@ -304,7 +304,7 @@ builtin_divmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_eval__doc__, -"eval($module, source, globals=None, locals=None, /)\n" +"eval($module, __source, __globals=None, __locals=None)\n" "--\n" "\n" "Evaluate the given source in the context of globals and locals.\n" @@ -350,7 +350,7 @@ builtin_eval(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_exec__doc__, -"exec($module, source, globals=None, locals=None, /)\n" +"exec($module, __source, __globals=None, __locals=None)\n" "--\n" "\n" "Execute the given source in the context of globals and locals.\n" @@ -396,7 +396,7 @@ builtin_exec(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_globals__doc__, -"globals($module, /)\n" +"globals($module)\n" "--\n" "\n" "Return the dictionary containing the current scope\'s global variables.\n" @@ -417,7 +417,7 @@ builtin_globals(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(builtin_hasattr__doc__, -"hasattr($module, obj, name, /)\n" +"hasattr($module, __obj, __name)\n" "--\n" "\n" "Return whether the object has an attribute with the given name.\n" @@ -449,7 +449,7 @@ builtin_hasattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_id__doc__, -"id($module, obj, /)\n" +"id($module, __obj)\n" "--\n" "\n" "Return the identity of an object.\n" @@ -461,7 +461,7 @@ PyDoc_STRVAR(builtin_id__doc__, {"id", (PyCFunction)builtin_id, METH_O, builtin_id__doc__}, PyDoc_STRVAR(builtin_setattr__doc__, -"setattr($module, obj, name, value, /)\n" +"setattr($module, __obj, __name, __value)\n" "--\n" "\n" "Sets the named attribute on the given object to the specified value.\n" @@ -496,7 +496,7 @@ builtin_setattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_delattr__doc__, -"delattr($module, obj, name, /)\n" +"delattr($module, __obj, __name)\n" "--\n" "\n" "Deletes the named attribute from the given object.\n" @@ -528,7 +528,7 @@ builtin_delattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_hash__doc__, -"hash($module, obj, /)\n" +"hash($module, __obj)\n" "--\n" "\n" "Return the hash value for the given object.\n" @@ -540,7 +540,7 @@ PyDoc_STRVAR(builtin_hash__doc__, {"hash", (PyCFunction)builtin_hash, METH_O, builtin_hash__doc__}, PyDoc_STRVAR(builtin_hex__doc__, -"hex($module, number, /)\n" +"hex($module, __number)\n" "--\n" "\n" "Return the hexadecimal representation of an integer.\n" @@ -552,7 +552,7 @@ PyDoc_STRVAR(builtin_hex__doc__, {"hex", (PyCFunction)builtin_hex, METH_O, builtin_hex__doc__}, PyDoc_STRVAR(builtin_len__doc__, -"len($module, obj, /)\n" +"len($module, __obj)\n" "--\n" "\n" "Return the number of items in a container."); @@ -561,7 +561,7 @@ PyDoc_STRVAR(builtin_len__doc__, {"len", (PyCFunction)builtin_len, METH_O, builtin_len__doc__}, PyDoc_STRVAR(builtin_locals__doc__, -"locals($module, /)\n" +"locals($module)\n" "--\n" "\n" "Return a dictionary containing the current scope\'s local variables.\n" @@ -583,7 +583,7 @@ builtin_locals(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(builtin_oct__doc__, -"oct($module, number, /)\n" +"oct($module, __number)\n" "--\n" "\n" "Return the octal representation of an integer.\n" @@ -595,7 +595,7 @@ PyDoc_STRVAR(builtin_oct__doc__, {"oct", (PyCFunction)builtin_oct, METH_O, builtin_oct__doc__}, PyDoc_STRVAR(builtin_ord__doc__, -"ord($module, c, /)\n" +"ord($module, __c)\n" "--\n" "\n" "Return the Unicode code point for a one-character string."); @@ -604,7 +604,7 @@ PyDoc_STRVAR(builtin_ord__doc__, {"ord", (PyCFunction)builtin_ord, METH_O, builtin_ord__doc__}, PyDoc_STRVAR(builtin_pow__doc__, -"pow($module, x, y, z=None, /)\n" +"pow($module, __x, __y, __z=None)\n" "--\n" "\n" "Equivalent to x**y (with two arguments) or x**y % z (with three arguments)\n" @@ -643,7 +643,7 @@ builtin_pow(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_input__doc__, -"input($module, prompt=None, /)\n" +"input($module, __prompt=None)\n" "--\n" "\n" "Read a string from standard input. The trailing newline is stripped.\n" @@ -681,7 +681,7 @@ builtin_input(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_repr__doc__, -"repr($module, obj, /)\n" +"repr($module, __obj)\n" "--\n" "\n" "Return the canonical string representation of the object.\n" @@ -692,7 +692,7 @@ PyDoc_STRVAR(builtin_repr__doc__, {"repr", (PyCFunction)builtin_repr, METH_O, builtin_repr__doc__}, PyDoc_STRVAR(builtin_round__doc__, -"round($module, /, number, ndigits=None)\n" +"round($module, number, ndigits=None)\n" "--\n" "\n" "Round a number to a given precision in decimal digits.\n" @@ -734,7 +734,7 @@ builtin_round(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec } PyDoc_STRVAR(builtin_sum__doc__, -"sum($module, iterable, /, start=0)\n" +"sum($module, __iterable, start=0)\n" "--\n" "\n" "Return the sum of a \'start\' value (default: 0) plus an iterable of numbers\n" @@ -777,7 +777,7 @@ builtin_sum(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject } PyDoc_STRVAR(builtin_isinstance__doc__, -"isinstance($module, obj, class_or_tuple, /)\n" +"isinstance($module, __obj, __class_or_tuple)\n" "--\n" "\n" "Return whether an object is an instance of a class or of a subclass thereof.\n" @@ -812,7 +812,7 @@ builtin_isinstance(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(builtin_issubclass__doc__, -"issubclass($module, cls, class_or_tuple, /)\n" +"issubclass($module, __cls, __class_or_tuple)\n" "--\n" "\n" "Return whether \'cls\' is a derived from another class or is the same class.\n" @@ -845,4 +845,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=3f690311ac556c31 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=de3d28afa8e6956a input=a9049054013a1b77]*/ diff --git a/Python/clinic/context.c.h b/Python/clinic/context.c.h index eedfc88654b624..24ea2f375bd3f6 100644 --- a/Python/clinic/context.c.h +++ b/Python/clinic/context.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_contextvars_Context_get__doc__, -"get($self, key, default=None, /)\n" +"get($self, __key, __default=None)\n" "--\n" "\n" "Return the value for `key` if `key` has the value in the context object.\n" @@ -41,7 +41,7 @@ _contextvars_Context_get(PyContext *self, PyObject *const *args, Py_ssize_t narg } PyDoc_STRVAR(_contextvars_Context_items__doc__, -"items($self, /)\n" +"items($self)\n" "--\n" "\n" "Return all variables and their values in the context object.\n" @@ -61,7 +61,7 @@ _contextvars_Context_items(PyContext *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_contextvars_Context_keys__doc__, -"keys($self, /)\n" +"keys($self)\n" "--\n" "\n" "Return a list of all variables in the context object."); @@ -79,7 +79,7 @@ _contextvars_Context_keys(PyContext *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_contextvars_Context_values__doc__, -"values($self, /)\n" +"values($self)\n" "--\n" "\n" "Return a list of all variables\' values in the context object."); @@ -97,7 +97,7 @@ _contextvars_Context_values(PyContext *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_contextvars_Context_copy__doc__, -"copy($self, /)\n" +"copy($self)\n" "--\n" "\n" "Return a shallow copy of the context object."); @@ -115,7 +115,7 @@ _contextvars_Context_copy(PyContext *self, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_contextvars_ContextVar_get__doc__, -"get($self, default=None, /)\n" +"get($self, __default=None)\n" "--\n" "\n" "Return a value for the context variable for the current context.\n" @@ -153,7 +153,7 @@ _contextvars_ContextVar_get(PyContextVar *self, PyObject *const *args, Py_ssize_ } PyDoc_STRVAR(_contextvars_ContextVar_set__doc__, -"set($self, value, /)\n" +"set($self, __value)\n" "--\n" "\n" "Call to set a new value for the context variable in the current context.\n" @@ -167,7 +167,7 @@ PyDoc_STRVAR(_contextvars_ContextVar_set__doc__, {"set", (PyCFunction)_contextvars_ContextVar_set, METH_O, _contextvars_ContextVar_set__doc__}, PyDoc_STRVAR(_contextvars_ContextVar_reset__doc__, -"reset($self, token, /)\n" +"reset($self, __token)\n" "--\n" "\n" "Reset the context variable.\n" @@ -177,4 +177,4 @@ PyDoc_STRVAR(_contextvars_ContextVar_reset__doc__, #define _CONTEXTVARS_CONTEXTVAR_RESET_METHODDEF \ {"reset", (PyCFunction)_contextvars_ContextVar_reset, METH_O, _contextvars_ContextVar_reset__doc__}, -/*[clinic end generated code: output=a86b66e1516c25d4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9370634c92be04b0 input=a9049054013a1b77]*/ diff --git a/Python/clinic/import.c.h b/Python/clinic/import.c.h index 05e3106bb39af0..3b513ad08fbcc5 100644 --- a/Python/clinic/import.c.h +++ b/Python/clinic/import.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(_imp_lock_held__doc__, -"lock_held($module, /)\n" +"lock_held($module)\n" "--\n" "\n" "Return True if the import lock is currently held, else False.\n" @@ -23,7 +23,7 @@ _imp_lock_held(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_imp_acquire_lock__doc__, -"acquire_lock($module, /)\n" +"acquire_lock($module)\n" "--\n" "\n" "Acquires the interpreter\'s import lock for the current thread.\n" @@ -44,7 +44,7 @@ _imp_acquire_lock(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_imp_release_lock__doc__, -"release_lock($module, /)\n" +"release_lock($module)\n" "--\n" "\n" "Release the interpreter\'s import lock.\n" @@ -64,7 +64,7 @@ _imp_release_lock(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_imp__fix_co_filename__doc__, -"_fix_co_filename($module, code, path, /)\n" +"_fix_co_filename($module, __code, __path)\n" "--\n" "\n" "Changes code.co_filename to specify the passed-in file path.\n" @@ -111,7 +111,7 @@ _imp__fix_co_filename(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(_imp_create_builtin__doc__, -"create_builtin($module, spec, /)\n" +"create_builtin($module, __spec)\n" "--\n" "\n" "Create an extension module."); @@ -120,7 +120,7 @@ PyDoc_STRVAR(_imp_create_builtin__doc__, {"create_builtin", (PyCFunction)_imp_create_builtin, METH_O, _imp_create_builtin__doc__}, PyDoc_STRVAR(_imp_extension_suffixes__doc__, -"extension_suffixes($module, /)\n" +"extension_suffixes($module)\n" "--\n" "\n" "Returns the list of file suffixes used to identify extension modules."); @@ -138,7 +138,7 @@ _imp_extension_suffixes(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(_imp_init_frozen__doc__, -"init_frozen($module, name, /)\n" +"init_frozen($module, __name)\n" "--\n" "\n" "Initializes a frozen module."); @@ -170,7 +170,7 @@ _imp_init_frozen(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_imp_get_frozen_object__doc__, -"get_frozen_object($module, name, /)\n" +"get_frozen_object($module, __name)\n" "--\n" "\n" "Create a code object for a frozen module."); @@ -202,7 +202,7 @@ _imp_get_frozen_object(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_imp_is_frozen_package__doc__, -"is_frozen_package($module, name, /)\n" +"is_frozen_package($module, __name)\n" "--\n" "\n" "Returns True if the module name is of a frozen package."); @@ -234,7 +234,7 @@ _imp_is_frozen_package(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_imp_is_builtin__doc__, -"is_builtin($module, name, /)\n" +"is_builtin($module, __name)\n" "--\n" "\n" "Returns True if the module name corresponds to a built-in module."); @@ -266,7 +266,7 @@ _imp_is_builtin(PyObject *module, PyObject *arg) } PyDoc_STRVAR(_imp_is_frozen__doc__, -"is_frozen($module, name, /)\n" +"is_frozen($module, __name)\n" "--\n" "\n" "Returns True if the module name corresponds to a frozen module."); @@ -300,7 +300,7 @@ _imp_is_frozen(PyObject *module, PyObject *arg) #if defined(HAVE_DYNAMIC_LOADING) PyDoc_STRVAR(_imp_create_dynamic__doc__, -"create_dynamic($module, spec, file=None, /)\n" +"create_dynamic($module, __spec, __file=None)\n" "--\n" "\n" "Create an extension module."); @@ -338,7 +338,7 @@ _imp_create_dynamic(PyObject *module, PyObject *const *args, Py_ssize_t nargs) #if defined(HAVE_DYNAMIC_LOADING) PyDoc_STRVAR(_imp_exec_dynamic__doc__, -"exec_dynamic($module, mod, /)\n" +"exec_dynamic($module, __mod)\n" "--\n" "\n" "Initialize an extension module."); @@ -368,7 +368,7 @@ _imp_exec_dynamic(PyObject *module, PyObject *mod) #endif /* defined(HAVE_DYNAMIC_LOADING) */ PyDoc_STRVAR(_imp_exec_builtin__doc__, -"exec_builtin($module, mod, /)\n" +"exec_builtin($module, __mod)\n" "--\n" "\n" "Initialize a built-in module."); @@ -396,7 +396,7 @@ _imp_exec_builtin(PyObject *module, PyObject *mod) } PyDoc_STRVAR(_imp_source_hash__doc__, -"source_hash($module, /, key, source)\n" +"source_hash($module, key, source)\n" "--\n" "\n"); @@ -454,4 +454,4 @@ _imp_source_hash(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb #ifndef _IMP_EXEC_DYNAMIC_METHODDEF #define _IMP_EXEC_DYNAMIC_METHODDEF #endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */ -/*[clinic end generated code: output=b51244770fdcf4b8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=0f64817b6faa617e input=a9049054013a1b77]*/ diff --git a/Python/clinic/marshal.c.h b/Python/clinic/marshal.c.h index ab4575340e2565..19e660f319f94b 100644 --- a/Python/clinic/marshal.c.h +++ b/Python/clinic/marshal.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(marshal_dump__doc__, -"dump($module, value, file, version=version, /)\n" +"dump($module, __value, __file, __version=version)\n" "--\n" "\n" "Write the value on the open file.\n" @@ -59,7 +59,7 @@ marshal_dump(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(marshal_load__doc__, -"load($module, file, /)\n" +"load($module, __file)\n" "--\n" "\n" "Read one value from the open file and return it.\n" @@ -78,7 +78,7 @@ PyDoc_STRVAR(marshal_load__doc__, {"load", (PyCFunction)marshal_load, METH_O, marshal_load__doc__}, PyDoc_STRVAR(marshal_dumps__doc__, -"dumps($module, value, version=version, /)\n" +"dumps($module, __value, __version=version)\n" "--\n" "\n" "Return the bytes object that would be written to a file by dump(value, file).\n" @@ -128,7 +128,7 @@ marshal_dumps(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(marshal_loads__doc__, -"loads($module, bytes, /)\n" +"loads($module, __bytes)\n" "--\n" "\n" "Convert the bytes-like object to a value.\n" @@ -165,4 +165,4 @@ marshal_loads(PyObject *module, PyObject *arg) return return_value; } -/*[clinic end generated code: output=ae2bca1aa239e095 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=4c093d877c849942 input=a9049054013a1b77]*/ diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h index c70b721983c1c4..9513dac7a79ea0 100644 --- a/Python/clinic/sysmodule.c.h +++ b/Python/clinic/sysmodule.c.h @@ -3,7 +3,7 @@ preserve [clinic start generated code]*/ PyDoc_STRVAR(sys_displayhook__doc__, -"displayhook($module, object, /)\n" +"displayhook($module, __object)\n" "--\n" "\n" "Print an object to sys.stdout and also save it in builtins._"); @@ -12,7 +12,7 @@ PyDoc_STRVAR(sys_displayhook__doc__, {"displayhook", (PyCFunction)sys_displayhook, METH_O, sys_displayhook__doc__}, PyDoc_STRVAR(sys_excepthook__doc__, -"excepthook($module, exctype, value, traceback, /)\n" +"excepthook($module, __exctype, __value, __traceback)\n" "--\n" "\n" "Handle an exception by displaying it with a traceback on sys.stderr."); @@ -45,7 +45,7 @@ sys_excepthook(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(sys_exc_info__doc__, -"exc_info($module, /)\n" +"exc_info($module)\n" "--\n" "\n" "Return current exception information: (type, value, traceback).\n" @@ -66,7 +66,7 @@ sys_exc_info(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_exit__doc__, -"exit($module, status=None, /)\n" +"exit($module, __status=None)\n" "--\n" "\n" "Exit the interpreter by raising SystemExit(status).\n" @@ -103,7 +103,7 @@ sys_exit(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(sys_getdefaultencoding__doc__, -"getdefaultencoding($module, /)\n" +"getdefaultencoding($module)\n" "--\n" "\n" "Return the current default encoding used by the Unicode implementation."); @@ -121,7 +121,7 @@ sys_getdefaultencoding(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_getfilesystemencoding__doc__, -"getfilesystemencoding($module, /)\n" +"getfilesystemencoding($module)\n" "--\n" "\n" "Return the encoding used to convert Unicode filenames to OS filenames."); @@ -139,7 +139,7 @@ sys_getfilesystemencoding(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_getfilesystemencodeerrors__doc__, -"getfilesystemencodeerrors($module, /)\n" +"getfilesystemencodeerrors($module)\n" "--\n" "\n" "Return the error mode used Unicode to OS filename conversion."); @@ -157,7 +157,7 @@ sys_getfilesystemencodeerrors(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_intern__doc__, -"intern($module, string, /)\n" +"intern($module, __string)\n" "--\n" "\n" "``Intern\'\' the given string.\n" @@ -193,7 +193,7 @@ sys_intern(PyObject *module, PyObject *arg) } PyDoc_STRVAR(sys_gettrace__doc__, -"gettrace($module, /)\n" +"gettrace($module)\n" "--\n" "\n" "Return the global debug tracing function set with sys.settrace.\n" @@ -213,7 +213,7 @@ sys_gettrace(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_getprofile__doc__, -"getprofile($module, /)\n" +"getprofile($module)\n" "--\n" "\n" "Return the profiling function set with sys.setprofile.\n" @@ -233,7 +233,7 @@ sys_getprofile(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_setcheckinterval__doc__, -"setcheckinterval($module, n, /)\n" +"setcheckinterval($module, __n)\n" "--\n" "\n" "Set the async event check interval to n instructions.\n" @@ -271,7 +271,7 @@ sys_setcheckinterval(PyObject *module, PyObject *arg) } PyDoc_STRVAR(sys_getcheckinterval__doc__, -"getcheckinterval($module, /)\n" +"getcheckinterval($module)\n" "--\n" "\n" "Return the current check interval; see sys.setcheckinterval()."); @@ -289,7 +289,7 @@ sys_getcheckinterval(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_setswitchinterval__doc__, -"setswitchinterval($module, interval, /)\n" +"setswitchinterval($module, __interval)\n" "--\n" "\n" "Set the ideal thread switching delay inside the Python interpreter.\n" @@ -324,7 +324,7 @@ sys_setswitchinterval(PyObject *module, PyObject *arg) } PyDoc_STRVAR(sys_getswitchinterval__doc__, -"getswitchinterval($module, /)\n" +"getswitchinterval($module)\n" "--\n" "\n" "Return the current thread switch interval; see sys.setswitchinterval()."); @@ -352,7 +352,7 @@ sys_getswitchinterval(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_setrecursionlimit__doc__, -"setrecursionlimit($module, limit, /)\n" +"setrecursionlimit($module, __limit)\n" "--\n" "\n" "Set the maximum depth of the Python interpreter stack to n.\n" @@ -389,7 +389,7 @@ sys_setrecursionlimit(PyObject *module, PyObject *arg) } PyDoc_STRVAR(sys_set_coroutine_origin_tracking_depth__doc__, -"set_coroutine_origin_tracking_depth($module, /, depth)\n" +"set_coroutine_origin_tracking_depth($module, depth)\n" "--\n" "\n" "Enable or disable origin tracking for coroutine objects in this thread.\n" @@ -434,7 +434,7 @@ sys_set_coroutine_origin_tracking_depth(PyObject *module, PyObject *const *args, } PyDoc_STRVAR(sys_get_coroutine_origin_tracking_depth__doc__, -"get_coroutine_origin_tracking_depth($module, /)\n" +"get_coroutine_origin_tracking_depth($module)\n" "--\n" "\n" "Check status of origin tracking for coroutine objects in this thread."); @@ -462,7 +462,7 @@ sys_get_coroutine_origin_tracking_depth(PyObject *module, PyObject *Py_UNUSED(ig } PyDoc_STRVAR(sys_set_coroutine_wrapper__doc__, -"set_coroutine_wrapper($module, wrapper, /)\n" +"set_coroutine_wrapper($module, __wrapper)\n" "--\n" "\n" "Set a wrapper for coroutine objects."); @@ -471,7 +471,7 @@ PyDoc_STRVAR(sys_set_coroutine_wrapper__doc__, {"set_coroutine_wrapper", (PyCFunction)sys_set_coroutine_wrapper, METH_O, sys_set_coroutine_wrapper__doc__}, PyDoc_STRVAR(sys_get_coroutine_wrapper__doc__, -"get_coroutine_wrapper($module, /)\n" +"get_coroutine_wrapper($module)\n" "--\n" "\n" "Return the wrapper for coroutines set by sys.set_coroutine_wrapper."); @@ -489,7 +489,7 @@ sys_get_coroutine_wrapper(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_get_asyncgen_hooks__doc__, -"get_asyncgen_hooks($module, /)\n" +"get_asyncgen_hooks($module)\n" "--\n" "\n" "Return the installed asynchronous generators hooks.\n" @@ -509,7 +509,7 @@ sys_get_asyncgen_hooks(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_getrecursionlimit__doc__, -"getrecursionlimit($module, /)\n" +"getrecursionlimit($module)\n" "--\n" "\n" "Return the current value of the recursion limit.\n" @@ -533,7 +533,7 @@ sys_getrecursionlimit(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(sys_getwindowsversion__doc__, -"getwindowsversion($module, /)\n" +"getwindowsversion($module)\n" "--\n" "\n" "Return info about the running version of Windows as a named tuple.\n" @@ -565,7 +565,7 @@ sys_getwindowsversion(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(MS_WINDOWS) PyDoc_STRVAR(sys__enablelegacywindowsfsencoding__doc__, -"_enablelegacywindowsfsencoding($module, /)\n" +"_enablelegacywindowsfsencoding($module)\n" "--\n" "\n" "Changes the default filesystem encoding to mbcs:replace.\n" @@ -593,7 +593,7 @@ sys__enablelegacywindowsfsencoding(PyObject *module, PyObject *Py_UNUSED(ignored #if defined(HAVE_DLOPEN) PyDoc_STRVAR(sys_setdlopenflags__doc__, -"setdlopenflags($module, flags, /)\n" +"setdlopenflags($module, __flags)\n" "--\n" "\n" "Set the flags used by the interpreter for dlopen calls.\n" @@ -638,7 +638,7 @@ sys_setdlopenflags(PyObject *module, PyObject *arg) #if defined(HAVE_DLOPEN) PyDoc_STRVAR(sys_getdlopenflags__doc__, -"getdlopenflags($module, /)\n" +"getdlopenflags($module)\n" "--\n" "\n" "Return the current value of the flags that are used for dlopen calls.\n" @@ -662,7 +662,7 @@ sys_getdlopenflags(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(USE_MALLOPT) PyDoc_STRVAR(sys_mdebug__doc__, -"mdebug($module, flag, /)\n" +"mdebug($module, __flag)\n" "--\n" "\n"); @@ -696,7 +696,7 @@ sys_mdebug(PyObject *module, PyObject *arg) #endif /* defined(USE_MALLOPT) */ PyDoc_STRVAR(sys_getrefcount__doc__, -"getrefcount($module, object, /)\n" +"getrefcount($module, __object)\n" "--\n" "\n" "Return the reference count of object.\n" @@ -730,7 +730,7 @@ sys_getrefcount(PyObject *module, PyObject *object) #if defined(Py_REF_DEBUG) PyDoc_STRVAR(sys_gettotalrefcount__doc__, -"gettotalrefcount($module, /)\n" +"gettotalrefcount($module)\n" "--\n" "\n"); @@ -759,7 +759,7 @@ sys_gettotalrefcount(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(Py_REF_DEBUG) */ PyDoc_STRVAR(sys_getallocatedblocks__doc__, -"getallocatedblocks($module, /)\n" +"getallocatedblocks($module)\n" "--\n" "\n" "Return the number of memory blocks currently allocated."); @@ -789,7 +789,7 @@ sys_getallocatedblocks(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(COUNT_ALLOCS) PyDoc_STRVAR(sys_getcounts__doc__, -"getcounts($module, /)\n" +"getcounts($module)\n" "--\n" "\n"); @@ -808,7 +808,7 @@ sys_getcounts(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(COUNT_ALLOCS) */ PyDoc_STRVAR(sys__getframe__doc__, -"_getframe($module, depth=0, /)\n" +"_getframe($module, __depth=0)\n" "--\n" "\n" "Return a frame object from the call stack.\n" @@ -856,7 +856,7 @@ sys__getframe(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(sys__current_frames__doc__, -"_current_frames($module, /)\n" +"_current_frames($module)\n" "--\n" "\n" "Return a dict mapping each thread\'s thread id to its current stack frame.\n" @@ -876,7 +876,7 @@ sys__current_frames(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_call_tracing__doc__, -"call_tracing($module, func, args, /)\n" +"call_tracing($module, __func, __args)\n" "--\n" "\n" "Call func(*args), while tracing is enabled.\n" @@ -914,7 +914,7 @@ sys_call_tracing(PyObject *module, PyObject *const *args, Py_ssize_t nargs) } PyDoc_STRVAR(sys_callstats__doc__, -"callstats($module, /)\n" +"callstats($module)\n" "--\n" "\n" "Return a tuple of function call statistics.\n" @@ -951,7 +951,7 @@ sys_callstats(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys__debugmallocstats__doc__, -"_debugmallocstats($module, /)\n" +"_debugmallocstats($module)\n" "--\n" "\n" "Print summary info to stderr about the state of pymalloc\'s structures.\n" @@ -972,7 +972,7 @@ sys__debugmallocstats(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys__clear_type_cache__doc__, -"_clear_type_cache($module, /)\n" +"_clear_type_cache($module)\n" "--\n" "\n" "Clear the internal type lookup cache."); @@ -990,7 +990,7 @@ sys__clear_type_cache(PyObject *module, PyObject *Py_UNUSED(ignored)) } PyDoc_STRVAR(sys_is_finalizing__doc__, -"is_finalizing($module, /)\n" +"is_finalizing($module)\n" "--\n" "\n" "Return True if Python is exiting."); @@ -1010,7 +1010,7 @@ sys_is_finalizing(PyObject *module, PyObject *Py_UNUSED(ignored)) #if defined(ANDROID_API_LEVEL) PyDoc_STRVAR(sys_getandroidapilevel__doc__, -"getandroidapilevel($module, /)\n" +"getandroidapilevel($module)\n" "--\n" "\n" "Return the build time API version of Android as an integer."); @@ -1060,4 +1060,4 @@ sys_getandroidapilevel(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SYS_GETANDROIDAPILEVEL_METHODDEF #define SYS_GETANDROIDAPILEVEL_METHODDEF #endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */ -/*[clinic end generated code: output=3ba4c194d00f1866 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=89a406548da450de input=a9049054013a1b77]*/ diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index cb2ded4649dce2..a1921ca113bf0c 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -4657,23 +4657,6 @@ def fix_right_bracket_count(desired): right_bracket_count -= 1 return s - need_slash = False - added_slash = False - need_a_trailing_slash = False - - # we only need a trailing slash: - # * if this is not a "docstring_only" signature - # * and if the last *shown* parameter is - # positional only - if not f.docstring_only: - for p in reversed(parameters): - if not p.converter.show_in_signature: - continue - if p.is_positional_only(): - need_a_trailing_slash = True - break - - added_star = False first_parameter = True @@ -4707,12 +4690,6 @@ def add_parameter(text): # so let's not print the "self" parameter continue - if p.is_positional_only(): - need_slash = not f.docstring_only - elif need_slash and not (added_slash or p.is_positional_only()): - added_slash = True - add_parameter('/,') - if p.is_keyword_only() and not added_star: added_star = True add_parameter('*,') @@ -4737,6 +4714,8 @@ def add_parameter(text): # (or __new__), then this signature is for # calling the class to construct a new instance. p_add('$') + elif p.is_positional_only() and not f.docstring_only: + p_add('__') name = p.converter.signature_name or p.name p_add(name) @@ -4748,14 +4727,12 @@ def add_parameter(text): value = repr(p.converter.default) p_add(value) - if (p != last_p) or need_a_trailing_slash: + if p != last_p: p_add(',') add_parameter(p_output()) add(fix_right_bracket_count(0)) - if need_a_trailing_slash: - add_parameter('/') add(')') # PEP 8 says: