mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Make array.typecode a unicode string.
This commit is contained in:
parent
2233d27a3f
commit
93b30b5b82
1 changed files with 2 additions and 2 deletions
|
@ -1377,7 +1377,7 @@ PyDoc_STRVAR(fromstring_doc,
|
|||
"fromstring(string)\n\
|
||||
\n\
|
||||
Appends items from the string, interpreting it as an array of machine\n\
|
||||
values,as if it had been read from a file using the fromfile() method).");
|
||||
values, as if it had been read from a file using the fromfile() method).");
|
||||
|
||||
|
||||
static PyObject *
|
||||
|
@ -1461,7 +1461,7 @@ static PyObject *
|
|||
array_get_typecode(arrayobject *a, void *closure)
|
||||
{
|
||||
char tc = a->ob_descr->typecode;
|
||||
return PyString_FromStringAndSize(&tc, 1);
|
||||
return PyUnicode_FromStringAndSize(&tc, 1);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue