Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa2281 commit 52e2cc8Copy full SHA for 52e2cc8
1 file changed
Include/unicodeobject.h
@@ -445,13 +445,12 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type;
445
#define PyUnicode_IS_COMPACT_ASCII(op) \
446
(((PyASCIIObject*)op)->state.ascii && PyUnicode_IS_COMPACT(op))
447
448
+enum PyUnicode_Kind {
449
/* String contains only wstr byte characters. This is only possible
450
when the string was created with a legacy API and _PyUnicode_Ready()
451
has not been called yet. */
-#define PyUnicode_WCHAR_KIND 0
452
-
453
-/* Return values of the PyUnicode_KIND() macro */
454
-enum PyUnicode_Kind {
+ PyUnicode_WCHAR_KIND = 0,
+/* Return values of the PyUnicode_KIND() macro: */
455
PyUnicode_1BYTE_KIND = 1,
456
PyUnicode_2BYTE_KIND = 2,
457
PyUnicode_4BYTE_KIND = 4
0 commit comments