diff Modules/arraymodule.c @ 42305:d0719406b2c6

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.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 18 Jul 2007 02:28:27 +0000
parents 8eeaa9923901
children e70cdce0e8b2
line wrap: on
line diff
--- a/Modules/arraymodule.c	Tue Jul 17 20:59:35 2007 +0000
+++ b/Modules/arraymodule.c	Wed Jul 18 02:28:27 2007 +0000
@@ -1126,7 +1126,7 @@
 		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,