diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-07-18 02:28:27 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-07-18 02:28:27 (GMT) |
commit | 10a60b3ec0cdf7eeac98258fc53a33b7026f8ff3 (patch) | |
tree | 533e2a67c2c082cd9534c70293977f9245425188 /Modules/arraymodule.c | |
parent | 6f2df4d5e193d54244b0c2de91ef0ab1604b9243 (diff) | |
download | cpython-10a60b3ec0cdf7eeac98258fc53a33b7026f8ff3.zip cpython-10a60b3ec0cdf7eeac98258fc53a33b7026f8ff3.tar.gz cpython-10a60b3ec0cdf7eeac98258fc53a33b7026f8ff3.tar.bz2 |
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.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 11819e2..7ddc7e8 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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, |