Python 3.5.
(Contributed by Berker Peksag in :issue:`31844`.)
+* Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal
+ PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was
+ moved to the internal C API.
+ (Contributed by Victor Stinner in :issue:`42157`.)
+
Porting to Python 3.10
======================
(Contributed by Inada Naoki in :issue:`36346`.)
* The private ``_PyUnicode_Name_CAPI`` structure of the PyCapsule API
- ``unicodedata.ucnhash_CAPI`` moves to the internal C API.
+ ``unicodedata.ucnhash_CAPI`` has been moved to the internal C API.
(Contributed by Victor Stinner in :issue:`42157`.)
Deprecated
/* revised ucnhash CAPI interface (exported through a "wrapper") */
-#define PyUnicodeData_CAPSULE_NAME "unicodedata.ucnhash_CAPI"
+#define PyUnicodeData_CAPSULE_NAME "unicodedata._ucnhash_CAPI"
typedef struct {
The private ``_PyUnicode_Name_CAPI`` structure of the PyCapsule API
-``unicodedata.ucnhash_CAPI`` moves to the internal C API.
+``unicodedata.ucnhash_CAPI`` has been moved to the internal C API.
Patch by Victor Stinner.
--- /dev/null
+Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal
+PyCapsule object. The related private ``_PyUnicode_Name_CAPI`` structure was
+moved to the internal C API. Patch by Victor Stinner.
return -1;
}
- /* Previous versions */
+ // Unicode database version 3.2.0 used by the IDNA encoding
PyObject *v;
v = new_previous_version(ucd_type, "3.2.0",
get_change_3_2_0, normalization_3_2_0);
if (v == NULL) {
return -1;
}
- if (PyModule_AddObject(module, "ucnhash_CAPI", v) < 0) {
+ if (PyModule_AddObject(module, "_ucnhash_CAPI", v) < 0) {
Py_DECREF(v);
return -1;
}