mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Specify default values of semantic booleans in Argument Clinic generated signatures as booleans.
This commit is contained in:
parent
7e810a6e3d
commit
8b2e8b6cce
8 changed files with 30 additions and 30 deletions
|
@ -79,7 +79,7 @@ exit:
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_encode__doc__,
|
||||
"encode($self, /, input, final=0)\n"
|
||||
"encode($self, /, input, final=False)\n"
|
||||
"--\n"
|
||||
"\n");
|
||||
|
||||
|
@ -126,7 +126,7 @@ _multibytecodec_MultibyteIncrementalEncoder_reset(MultibyteIncrementalEncoderObj
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_decode__doc__,
|
||||
"decode($self, /, input, final=0)\n"
|
||||
"decode($self, /, input, final=False)\n"
|
||||
"--\n"
|
||||
"\n");
|
||||
|
||||
|
@ -317,4 +317,4 @@ PyDoc_STRVAR(_multibytecodec___create_codec__doc__,
|
|||
|
||||
#define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \
|
||||
{"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__},
|
||||
/*[clinic end generated code: output=c104f5fd548c1ac5 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=eebb21e18c3043d1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -884,14 +884,14 @@ decoder_feed_buffer(MultibyteStatefulDecoderContext *ctx,
|
|||
_multibytecodec.MultibyteIncrementalEncoder.encode
|
||||
|
||||
input: object
|
||||
final: int = 0
|
||||
final: int(c_default="0") = False
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self,
|
||||
PyObject *input,
|
||||
int final)
|
||||
/*[clinic end generated code: output=123361b6c505e2c1 input=456b76d73e464661]*/
|
||||
/*[clinic end generated code: output=123361b6c505e2c1 input=a345c688fa664f92]*/
|
||||
{
|
||||
return encoder_encode_stateful(STATEFUL_ECTX(self), input, final);
|
||||
}
|
||||
|
@ -1041,14 +1041,14 @@ static PyTypeObject MultibyteIncrementalEncoder_Type = {
|
|||
_multibytecodec.MultibyteIncrementalDecoder.decode
|
||||
|
||||
input: Py_buffer
|
||||
final: int = 0
|
||||
final: int(c_default="0") = False
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self,
|
||||
Py_buffer *input,
|
||||
int final)
|
||||
/*[clinic end generated code: output=b9b9090e8a9ce2ba input=eb18c2f6e83589e1]*/
|
||||
/*[clinic end generated code: output=b9b9090e8a9ce2ba input=576631c61906d39d]*/
|
||||
{
|
||||
MultibyteDecodeBuffer buf;
|
||||
char *data, *wdata = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue