Author vstinner
Recipients alexandre.vassalotti, berker.peksag, docs@python, donlorenzo, furkanonder, georg.brandl, lemburg, martin.panter, serhiy.storchaka, vstinner
Date 2020-05-10.10:10:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589105452.02.0.122243077367.issue1944@roundup.psfhosted.org>
In-reply-to
Content
"""
Following functions likely should be wrapped with "#ifndef Py_LIMITED_API":

_PyUnicode_ClearStaticStrings
_PyUnicode_EQ
_PyUnicode_FromId
"""

It's already the case since at least Python 3.7. Extract of Python 3.7 Include/unicodeobject.h:

#ifndef Py_LIMITED_API
/* Return an interned Unicode object for an Identifier; may fail if there is no memory.*/
PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*);
/* Clear all static strings. */
PyAPI_FUNC(void) _PyUnicode_ClearStaticStrings(void);

/* Fast equality check when the inputs are known to be exact unicode types
   and where the hash values are equal (i.e. a very probable match) */
PyAPI_FUNC(int) _PyUnicode_EQ(PyObject *, PyObject *);
#endif /* !Py_LIMITED_API */
History
Date User Action Args
2020-05-10 10:10:52vstinnersetrecipients: + vstinner, lemburg, georg.brandl, alexandre.vassalotti, donlorenzo, docs@python, berker.peksag, martin.panter, serhiy.storchaka, furkanonder
2020-05-10 10:10:52vstinnersetmessageid: <1589105452.02.0.122243077367.issue1944@roundup.psfhosted.org>
2020-05-10 10:10:52vstinnerlinkissue1944 messages
2020-05-10 10:10:51vstinnercreate