Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 072a8cd

Browse files
author
Anselm Kruis
committed
merge branch 3.5 and run clinic.py --make
2 parents d5a8b57 + 8b2e8b6 commit 072a8cd

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

Modules/cjkcodecs/clinic/multibytecodec.c.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ _multibytecodec_MultibyteCodec_decode(MultibyteCodecObject *self, PyObject *args
7979
}
8080

8181
PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_encode__doc__,
82-
"encode($self, /, input, final=0)\n"
82+
"encode($self, /, input, final=False)\n"
8383
"--\n"
8484
"\n");
8585

@@ -126,7 +126,7 @@ _multibytecodec_MultibyteIncrementalEncoder_reset(MultibyteIncrementalEncoderObj
126126
}
127127

128128
PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_decode__doc__,
129-
"decode($self, /, input, final=0)\n"
129+
"decode($self, /, input, final=False)\n"
130130
"--\n"
131131
"\n");
132132

@@ -317,4 +317,4 @@ PyDoc_STRVAR(_multibytecodec___create_codec__doc__,
317317

318318
#define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \
319319
{"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__},
320-
/*[clinic end generated code: output=c104f5fd548c1ac5 input=a9049054013a1b77]*/
320+
/*[clinic end generated code: output=eebb21e18c3043d1 input=a9049054013a1b77]*/

Modules/cjkcodecs/multibytecodec.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -884,14 +884,14 @@ decoder_feed_buffer(MultibyteStatefulDecoderContext *ctx,
884884
_multibytecodec.MultibyteIncrementalEncoder.encode
885885
886886
input: object
887-
final: int = 0
887+
final: int(c_default="0") = False
888888
[clinic start generated code]*/
889889

890890
static PyObject *
891891
_multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self,
892892
PyObject *input,
893893
int final)
894-
/*[clinic end generated code: output=123361b6c505e2c1 input=456b76d73e464661]*/
894+
/*[clinic end generated code: output=123361b6c505e2c1 input=a345c688fa664f92]*/
895895
{
896896
return encoder_encode_stateful(STATEFUL_ECTX(self), input, final);
897897
}
@@ -1041,14 +1041,14 @@ static PyTypeObject MultibyteIncrementalEncoder_Type = {
10411041
_multibytecodec.MultibyteIncrementalDecoder.decode
10421042
10431043
input: Py_buffer
1044-
final: int = 0
1044+
final: int(c_default="0") = False
10451045
[clinic start generated code]*/
10461046

10471047
static PyObject *
10481048
_multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self,
10491049
Py_buffer *input,
10501050
int final)
1051-
/*[clinic end generated code: output=b9b9090e8a9ce2ba input=eb18c2f6e83589e1]*/
1051+
/*[clinic end generated code: output=b9b9090e8a9ce2ba input=576631c61906d39d]*/
10521052
{
10531053
MultibyteDecodeBuffer buf;
10541054
char *data, *wdata = NULL;

Modules/clinic/pyexpat.c.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ preserve
33
[clinic start generated code]*/
44

55
PyDoc_STRVAR(pyexpat_xmlparser_Parse__doc__,
6-
"Parse($self, data, isFinal=0, /)\n"
6+
"Parse($self, data, isfinal=False, /)\n"
77
"--\n"
88
"\n"
99
"Parse XML data.\n"
@@ -15,19 +15,19 @@ PyDoc_STRVAR(pyexpat_xmlparser_Parse__doc__,
1515

1616
static PyObject *
1717
pyexpat_xmlparser_Parse_impl(xmlparseobject *self, PyObject *data,
18-
int isFinal);
18+
int isfinal);
1919

2020
static PyObject *
2121
pyexpat_xmlparser_Parse(xmlparseobject *self, PyObject *args)
2222
{
2323
PyObject *return_value = NULL;
2424
PyObject *data;
25-
int isFinal = 0;
25+
int isfinal = 0;
2626

2727
if (!PyArg_ParseTuple(args, "O|i:Parse",
28-
&data, &isFinal))
28+
&data, &isfinal))
2929
goto exit;
30-
return_value = pyexpat_xmlparser_Parse_impl(self, data, isFinal);
30+
return_value = pyexpat_xmlparser_Parse_impl(self, data, isfinal);
3131

3232
exit:
3333
return return_value;
@@ -281,4 +281,4 @@ pyexpat_ErrorString(PyModuleDef *module, PyObject *arg)
281281
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
282282
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
283283
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
284-
/*[clinic end generated code: output=958c0faa1b855fc7 input=a9049054013a1b77]*/
284+
/*[clinic end generated code: output=bf4d99c9702d8a6c input=a9049054013a1b77]*/

Modules/pyexpat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ get_parse_result(xmlparseobject *self, int rv)
707707
pyexpat.xmlparser.Parse
708708
709709
data: object
710-
isFinal: int = 0
710+
isfinal: int(c_default="0") = False
711711
/
712712
713713
Parse XML data.
@@ -717,8 +717,8 @@ Parse XML data.
717717

718718
static PyObject *
719719
pyexpat_xmlparser_Parse_impl(xmlparseobject *self, PyObject *data,
720-
int isFinal)
721-
/*[clinic end generated code: output=37e105d55645b0f2 input=e37b81b8948ca7e0]*/
720+
int isfinal)
721+
/*[clinic end generated code: output=f4db843dd1f4ed4b input=199d9e8e92ebbb4b]*/
722722
{
723723
const char *s;
724724
Py_ssize_t slen;
@@ -748,7 +748,7 @@ pyexpat_xmlparser_Parse_impl(xmlparseobject *self, PyObject *data,
748748
slen -= MAX_CHUNK_SIZE;
749749
}
750750
assert(MAX_CHUNK_SIZE < INT_MAX && slen < INT_MAX);
751-
rc = XML_Parse(self->itself, s, (int)slen, isFinal);
751+
rc = XML_Parse(self->itself, s, (int)slen, isfinal);
752752

753753
done:
754754
if (view.buf != NULL)

Objects/bytearrayobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2773,7 +2773,7 @@ bytearray_join(PyByteArrayObject *self, PyObject *iterable_of_bytes)
27732773
/*[clinic input]
27742774
bytearray.splitlines
27752775
2776-
keepends: int(py_default="False") = 0
2776+
keepends: int(c_default="0") = False
27772777
27782778
Return a list of the lines in the bytearray, breaking at line boundaries.
27792779
@@ -2783,7 +2783,7 @@ true.
27832783

27842784
static PyObject *
27852785
bytearray_splitlines_impl(PyByteArrayObject *self, int keepends)
2786-
/*[clinic end generated code: output=4223c94b895f6ad9 input=36f0b25bc792f6c0]*/
2786+
/*[clinic end generated code: output=4223c94b895f6ad9 input=8ccade941e5ea0bd]*/
27872787
{
27882788
return stringlib_splitlines(
27892789
(PyObject*) self, PyByteArray_AS_STRING(self),

Objects/bytesobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,7 +2942,7 @@ bytes_decode_impl(PyBytesObject*self, const char *encoding,
29422942
/*[clinic input]
29432943
bytes.splitlines
29442944
2945-
keepends: int(py_default="False") = 0
2945+
keepends: int(c_default="0") = False
29462946
29472947
Return a list of the lines in the bytes, breaking at line boundaries.
29482948
@@ -2952,7 +2952,7 @@ true.
29522952

29532953
static PyObject *
29542954
bytes_splitlines_impl(PyBytesObject*self, int keepends)
2955-
/*[clinic end generated code: output=995c3598f7833cad input=ddb93e3351080c8c]*/
2955+
/*[clinic end generated code: output=995c3598f7833cad input=7f4aac67144f9944]*/
29562956
{
29572957
return stringlib_splitlines(
29582958
(PyObject*) self, PyBytes_AS_STRING(self),

Python/bltinmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ compile as builtin_compile
639639
filename: object(converter="PyUnicode_FSDecoder")
640640
mode: str
641641
flags: int = 0
642-
dont_inherit: int = 0
642+
dont_inherit: int(c_default="0") = False
643643
optimize: int = -1
644644
645645
Compile source into a code object that can be executed by exec() or eval().
@@ -650,17 +650,17 @@ The mode must be 'exec' to compile a module, 'single' to compile a
650650
single (interactive) statement, or 'eval' to compile an expression.
651651
The flags argument, if present, controls which future statements influence
652652
the compilation of the code.
653-
The dont_inherit argument, if non-zero, stops the compilation inheriting
653+
The dont_inherit argument, if true, stops the compilation inheriting
654654
the effects of any future statements in effect in the code calling
655-
compile; if absent or zero these statements do influence the compilation,
655+
compile; if absent or false these statements do influence the compilation,
656656
in addition to any features explicitly specified.
657657
[clinic start generated code]*/
658658

659659
static PyObject *
660660
builtin_compile_impl(PyModuleDef *module, PyObject *source,
661661
PyObject *filename, const char *mode, int flags,
662662
int dont_inherit, int optimize)
663-
/*[clinic end generated code: output=31881762c1bb90c4 input=7faa105f669fefcf]*/
663+
/*[clinic end generated code: output=31881762c1bb90c4 input=9d53e8cfb3c86414]*/
664664
{
665665
Py_buffer view = {NULL, NULL};
666666
const char *str;

Python/clinic/bltinmodule.c.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ builtin_chr(PyModuleDef *module, PyObject *arg)
129129
}
130130

131131
PyDoc_STRVAR(builtin_compile__doc__,
132-
"compile($module, /, source, filename, mode, flags=0, dont_inherit=0,\n"
133-
" optimize=-1)\n"
132+
"compile($module, /, source, filename, mode, flags=0,\n"
133+
" dont_inherit=False, optimize=-1)\n"
134134
"--\n"
135135
"\n"
136136
"Compile source into a code object that can be executed by exec() or eval().\n"
@@ -141,9 +141,9 @@ PyDoc_STRVAR(builtin_compile__doc__,
141141
"single (interactive) statement, or \'eval\' to compile an expression.\n"
142142
"The flags argument, if present, controls which future statements influence\n"
143143
"the compilation of the code.\n"
144-
"The dont_inherit argument, if non-zero, stops the compilation inheriting\n"
144+
"The dont_inherit argument, if true, stops the compilation inheriting\n"
145145
"the effects of any future statements in effect in the code calling\n"
146-
"compile; if absent or zero these statements do influence the compilation,\n"
146+
"compile; if absent or false these statements do influence the compilation,\n"
147147
"in addition to any features explicitly specified.");
148148

149149
#define BUILTIN_COMPILE_METHODDEF \
@@ -666,4 +666,4 @@ builtin_issubclass(PyModuleDef *module, PyObject *args)
666666
exit:
667667
return return_value;
668668
}
669-
/*[clinic end generated code: output=23817cf340c52788 input=a9049054013a1b77]*/
669+
/*[clinic end generated code: output=8386001b0214bbff input=a9049054013a1b77]*/

0 commit comments

Comments
 (0)