mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +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
|
@ -2293,7 +2293,7 @@ bytes_decode_impl(PyBytesObject *self, const char *encoding,
|
|||
/*[clinic input]
|
||||
bytes.splitlines
|
||||
|
||||
keepends: int(c_default="0") = False
|
||||
keepends: bool(accept={int}) = False
|
||||
|
||||
Return a list of the lines in the bytes, breaking at line boundaries.
|
||||
|
||||
|
@ -2303,7 +2303,7 @@ true.
|
|||
|
||||
static PyObject *
|
||||
bytes_splitlines_impl(PyBytesObject *self, int keepends)
|
||||
/*[clinic end generated code: output=3484149a5d880ffb input=7f4aac67144f9944]*/
|
||||
/*[clinic end generated code: output=3484149a5d880ffb input=a8b32eb01ff5a5ed]*/
|
||||
{
|
||||
return stringlib_splitlines(
|
||||
(PyObject*) self, PyBytes_AS_STRING(self),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue