mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
Change Py_BuildValue to generate Unicode objects for
's' and 'c' codes. Change pickle to dump bytes objects using the 'S' code, and to load the 'S' code as byte objects. Change datetime and array to generate and expect bytes objects in reduce/unreduce.
This commit is contained in:
parent
6f2df4d5e1
commit
10a60b3ec0
8 changed files with 166 additions and 45 deletions
|
@ -1126,7 +1126,7 @@ array_reduce(arrayobject *array)
|
|||
Py_INCREF(dict);
|
||||
}
|
||||
if (array->ob_size > 0) {
|
||||
result = Py_BuildValue("O(cs#)O",
|
||||
result = Py_BuildValue("O(cy#)O",
|
||||
array->ob_type,
|
||||
array->ob_descr->typecode,
|
||||
array->ob_item,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue