[Patches] list/tuple error consistency

Michael Hudson mwh21@cam.ac.uk
Tue, 6 Jun 2000 17:30:57 +0100 (BST)


After Skip's pointing out that my error message for
listobject.c:list_concat was bogus, it was changed; this TOLP changes
tupleboject.c to be consistent.

Cheers,
Michael

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.

Index: Objects/tupleobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/tupleobject.c,v
retrieving revision 2.34
diff -u -r2.34 tupleobject.c
--- Objects/tupleobject.c	2000/06/01 03:12:13	2.34
+++ Objects/tupleobject.c	2000/06/06 16:30:39
@@ -362,7 +362,7 @@
 	PyTupleObject *np;
 	if (!PyTuple_Check(bb)) {
 		PyErr_Format(PyExc_TypeError,
-       		     "can only append tuple (not \"%.200s\") to tuple",
+       		     "can only concatenate tuple (not \"%.200s\") to tuple",
 			     bb->ob_type->tp_name);
 		return NULL;
 	}