Make the Unicode database version used available

This commit is contained in:
Kovid Goyal
2022-11-17 20:11:50 +05:30
parent 38547c9e7a
commit e5e8cc72c6
10 changed files with 30 additions and 4 deletions

View File

@@ -142,3 +142,8 @@ wcswidth_std(PyObject UNUSED *self, PyObject *str) {
}
return PyLong_FromSize_t(ans);
}
PyObject*
unicode_database_version(PyObject *self UNUSED, PyObject *args UNUSED) {
return Py_BuildValue("iii", UNICODE_MAJOR_VERSION, UNICODE_MINOR_VERSION, UNICODE_PATCH_VERSION);
}