File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1815,8 +1815,6 @@ Utility functions
18151815 termination character. An integer can be passed as second argument which allows
18161816 to specify the size of the array if the length of the bytes should not be used.
18171817
1818- If the first parameter is a string, it is converted into a bytes object
1819- according to ctypes conversion rules.
18201818
18211819
18221820.. function :: create_unicode_buffer(init_or_size, size=None)
@@ -1833,8 +1831,6 @@ Utility functions
18331831 allows to specify the size of the array if the length of the string should not
18341832 be used.
18351833
1836- If the first parameter is a bytes object, it is converted into an unicode string
1837- according to ctypes conversion rules.
18381834
18391835
18401836.. function :: DllCanUnloadNow()
Original file line number Diff line number Diff line change @@ -402,6 +402,9 @@ Tests
402402Extension Modules
403403-----------------
404404
405+ - Issue #13840: The error message produced by ctypes.create_string_buffer
406+ when given a Unicode string has been fixed.
407+
405408- Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by
406409 Vilmos Nebehaj.
407410
Original file line number Diff line number Diff line change @@ -1096,7 +1096,7 @@ CharArray_set_value(CDataObject *self, PyObject *value)
10961096
10971097 if (!PyBytes_Check (value )) {
10981098 PyErr_Format (PyExc_TypeError ,
1099- "str/ bytes expected instead of %s instance" ,
1099+ "bytes expected instead of %s instance" ,
11001100 Py_TYPE (value )-> tp_name );
11011101 return -1 ;
11021102 } else
You can’t perform that action at this time.
0 commit comments