Kaydet (Commit) 004d64f3 authored tarafından Guido van Rossum's avatar Guido van Rossum

Marc-Andre Lemburg:

Changed PyUnicode_Splitlines() maxsplit argument to keepends.
The maxsplit functionality was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
üst f0b7b04a
...@@ -674,7 +674,7 @@ extern DL_IMPORT(PyObject*) PyUnicode_Split( ...@@ -674,7 +674,7 @@ extern DL_IMPORT(PyObject*) PyUnicode_Split(
extern DL_IMPORT(PyObject*) PyUnicode_Splitlines( extern DL_IMPORT(PyObject*) PyUnicode_Splitlines(
PyObject *s, /* String to split */ PyObject *s, /* String to split */
int maxsplit /* Maxsplit count */ int keepends /* If true, line end markers are included */
); );
/* Translate a string by applying a character mapping table to it and /* Translate a string by applying a character mapping table to it and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment