diff Objects/unicodeobject.c @ 42184:bf5d04e0da4c

Make test_descr.py pass. Had to disable a few tests, remove references to 'file', and fix a bunch of subtleties in the behavior of objects related to overriding __str__. Also disabled a few tests that I couldn't see how to fix but that seemed to be checking silly stuff only.
author Guido van Rossum <guido@python.org>
date Wed, 11 Jul 2007 09:28:11 +0000
parents 383c8907bea0
children ca3cfb34e3c2
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed Jul 11 06:56:16 2007 +0000
+++ b/Objects/unicodeobject.c	Wed Jul 11 09:28:11 2007 +0000
@@ -8550,7 +8550,7 @@
 unicode_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
 {
         PyObject *x = NULL;
-	static char *kwlist[] = {"string", "encoding", "errors", 0};
+	static char *kwlist[] = {"object", "encoding", "errors", 0};
 	char *encoding = NULL;
 	char *errors = NULL;