bpo-24037: Add Argument Clinic converter bool(accept={int}). (#485)

This commit is contained in:
Serhiy Storchaka 2017-03-12 10:10:47 +02:00 committed by GitHub
parent 0767ad40bf
commit 202fda55c2
17 changed files with 81 additions and 73 deletions

View file

@ -1968,14 +1968,14 @@ list.sort
*
key as keyfunc: object = None
reverse: int(c_default="0") = False
reverse: bool(accept={int}) = False
Stable sort *IN PLACE*.
[clinic start generated code]*/
static PyObject *
list_sort_impl(PyListObject *self, PyObject *keyfunc, int reverse)
/*[clinic end generated code: output=57b9f9c5e23fbe42 input=5029c13c9209d86a]*/
/*[clinic end generated code: output=57b9f9c5e23fbe42 input=b0fcf743982c5b90]*/
{
MergeState ms;
Py_ssize_t nremaining;