Re: [Python-Dev] cpython: Add a new PyUnicode_Fill() function

2012-01-04 Thread Victor Stinner
Oops, it's a typo in the doc (copy/paste failure). It's now fixed, thanks. Victor 2012/1/4 Antoine Pitrou solip...@pitrou.net: +.. c:function:: int PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \ +                        Py_ssize_t length, Py_UCS4 fill_char) + +   Fill a string with a

Re: [Python-Dev] cpython: Add a new PyUnicode_Fill() function

2012-01-03 Thread Antoine Pitrou
+.. c:function:: int PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \ +Py_ssize_t length, Py_UCS4 fill_char) + + Fill a string with a character: write *fill_char* into + ``unicode[start:start+length]``. + + Fail if *fill_char* is bigger than the string