mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Revert r56044 (which changed the %c format specifier to accept a
unicode char into an int variable) and add %C which does this.
This commit is contained in:
parent
8934fc26c1
commit
d09413012c
4 changed files with 21 additions and 2 deletions
|
@ -1785,7 +1785,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
if (type == &Arraytype && !_PyArg_NoKeywords("array.array()", kwds))
|
||||
return NULL;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "c|O:array", &c, &initial))
|
||||
if (!PyArg_ParseTuple(args, "C|O:array", &c, &initial))
|
||||
return NULL;
|
||||
|
||||
if (!(initial == NULL || PyList_Check(initial)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue