Message368582
| 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 */ |
|