[Python-Dev] cpython: Implement PEP 393.
Georg Brandl
g.brandl at gmx.net
Wed Sep 28 08:51:52 CEST 2011
Am 28.09.2011 08:35, schrieb martin.v.loewis:
> http://hg.python.org/cpython/rev/8beaa9a37387
> changeset: 72475:8beaa9a37387
> user: Martin v. Löwis <martin at v.loewis.de>
> date: Wed Sep 28 07:41:54 2011 +0200
> summary:
> Implement PEP 393.
>
[...]
>
> diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
> --- a/Doc/c-api/unicode.rst
> +++ b/Doc/c-api/unicode.rst
> @@ -1072,6 +1072,15 @@
> occurred and an exception has been set.
>
>
> +.. c:function:: Py_ssize_t PyUnicode_FindChar(PyObject *str, Py_UCS4 ch, Py_ssize_t start, Py_ssize_t end, int direction)
> +
> + Return the first position of the character *ch* in ``str[start:end]`` using
> + the given *direction* (*direction* == 1 means to do a forward search,
> + *direction* == -1 a backward search). The return value is the index of the
> + first match; a value of ``-1`` indicates that no match was found, and ``-2``
> + indicates that an error occurred and an exception has been set.
> +
> +
> .. c:function:: Py_ssize_t PyUnicode_Count(PyObject *str, PyObject *substr, Py_ssize_t start, Py_ssize_t end)
>
> Return the number of non-overlapping occurrences of *substr* in
This is the only doc change for this change (and it doesn't have a versionadded).
Surely there must be more new APIs and changes that need documenting?
Georg
More information about the Python-Dev
mailing list