This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients loewis, serhiy.storchaka, vstinner
Date 2012-11-05.09:22:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <201211051121.46585.storchaka@gmail.com>
In-reply-to <1352073069.42.0.996016548186.issue16281@psf.upfronthosting.co.za>
Content
> Oh, PyUnicode_Tailmatch() documentation doesn't mention that the function
> can fail.

But it does.

.. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \
                        Py_ssize_t start, Py_ssize_t end, int direction)

   Return 1 if *substr* matches ``str[start:end]`` at the given tail end
   (*direction* == -1 means to do a prefix match, *direction* == 1 a suffix match),
   0 otherwise. Return ``-1`` if an error occurred.
History
Date User Action Args
2012-11-05 09:22:00serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, vstinner
2012-11-05 09:22:00serhiy.storchakalinkissue16281 messages
2012-11-05 09:22:00serhiy.storchakacreate