[Python-Dev] cpython: Add a new PyUnicode_Fill() function (original) (raw)
Victor Stinner victor.stinner at gmail.com
Wed Jan 4 04:30:16 CET 2012
- Previous message: [Python-Dev] cpython: Add a new PyUnicode_Fill() function
- Next message: [Python-Dev] Proposed PEP on concurrent programming support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Oops, it's a typo in the doc (copy/paste failure). It's now fixed, thanks.
Victor
2012/1/4 Antoine Pitrou <solipsis at pitrou.net>:
_+.. c:function:: int PyUnicodeFill(PyObject *unicode, Pyssizet start, _ + Pyssizet length, PyUCS4 fillchar) + + Fill a string with a character: write fillchar into +
unicode[start:start+length]
. + + Fail if fillchar is bigger than the string maximum character, or if the + string has more than 1 reference. + + Return the number of written character, or return-1
and raise an + exception on error. The return type should then be Pyssizet, not int. Regards Antoine.
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/victor.stinner%40haypocalc.com
- Previous message: [Python-Dev] cpython: Add a new PyUnicode_Fill() function
- Next message: [Python-Dev] Proposed PEP on concurrent programming support
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]