mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
bpo-24037: Add Argument Clinic converter bool(accept={int})
. (#485)
This commit is contained in:
parent
0767ad40bf
commit
202fda55c2
17 changed files with 81 additions and 73 deletions
|
@ -883,14 +883,14 @@ decoder_feed_buffer(MultibyteStatefulDecoderContext *ctx,
|
|||
_multibytecodec.MultibyteIncrementalEncoder.encode
|
||||
|
||||
input: object
|
||||
final: int(c_default="0") = False
|
||||
final: bool(accept={int}) = False
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self,
|
||||
PyObject *input,
|
||||
int final)
|
||||
/*[clinic end generated code: output=123361b6c505e2c1 input=a345c688fa664f92]*/
|
||||
/*[clinic end generated code: output=123361b6c505e2c1 input=093a1ddbb2fc6721]*/
|
||||
{
|
||||
return encoder_encode_stateful(STATEFUL_ECTX(self), input, final);
|
||||
}
|
||||
|
@ -1040,14 +1040,14 @@ static PyTypeObject MultibyteIncrementalEncoder_Type = {
|
|||
_multibytecodec.MultibyteIncrementalDecoder.decode
|
||||
|
||||
input: Py_buffer
|
||||
final: int(c_default="0") = False
|
||||
final: bool(accept={int}) = 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=576631c61906d39d]*/
|
||||
/*[clinic end generated code: output=b9b9090e8a9ce2ba input=c9132b24d503eb1d]*/
|
||||
{
|
||||
MultibyteDecodeBuffer buf;
|
||||
char *data, *wdata = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue