Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ed0acc

Browse files
author
Thomas Heller
committed
Must create heaptypes with unicode names.
1 parent ace8ba8 commit 3ed0acc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3985,11 +3985,7 @@ CreateArrayType(PyObject *itemtype, Py_ssize_t length)
39853985
#endif
39863986

39873987
result = PyObject_CallFunction((PyObject *)&ArrayType_Type,
3988-
#if (PY_VERSION_HEX < 0x02050000)
3989-
"s(O){s:i,s:O}",
3990-
#else
3991-
"s(O){s:n,s:O}",
3992-
#endif
3988+
"U(O){s:n,s:O}",
39933989
name,
39943990
&Array_Type,
39953991
"_length_",

0 commit comments

Comments
 (0)