A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115295.html below:

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

[Python-Dev] cpython: Add a new PyUnicode_Fill() function [Python-Dev] cpython: Add a new PyUnicode_Fill() functionVictor Stinner victor.stinner at gmail.com
Wed Jan 4 04:30:16 CET 2012
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 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 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 Py_ssize_t, 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4